• Tags
  • Documentation
  • Order
  • Register
  • Login
Duet3D Logo Duet3D
  • Tags
  • Documentation
  • Order
  • Register
  • Login

DuetLapse3

Scheduled Pinned Locked Moved
Third-party software
20
296
30.1k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • undefined
    stuartofmt
    last edited by stuartofmt 2 Aug 2023, 15:32 8 Feb 2023, 15:29

    @osterac

    I'm not able to see the same issue on my test system (using Motioneye). It all works fine for me.
    I think there may be an edge condition associated with the use of -extratime as this is where the program encountered issues. Unfortunately, if it was a Python issue (syntax or similar), it cannot be captured in the logs. It would only be visible in the , now, long gone console output. 😞

    It may also be associated with the polling of Duet as I saw a situation (in your log) that I have never seen before. In any case, the program got itself into a bind.

    I am also not sure exactly what's happening at your end . I can see you used Terminate but I also see 8 instances of M117 DuetLapse2.completed command. This suggests either you are isuing the commands from DWC or from one or more print jobs ? Can you help by explaining what happened ?

    I have a couple of ideas I need to think through but feel confident that I can avoid this condition.

    If you have some time on your hands; you could try another run (without - extratime). Just set the program running (no print job needed), let it run until the UI Video tab tells you there are enough images to create a video) and then use Terminate-->Graceful. This should work just fine and if it does (or does not) will narrow the scope of what's happening in your case.

    undefined 1 Reply Last reply 8 Feb 2023, 17:33 Reply Quote 0
    • undefined
      osterac @stuartofmt
      last edited by 8 Feb 2023, 17:33

      @stuartofmt
      As for the multiple stop commands, it may be because I printed several things after duetlapse got stuck so commands were sent to duetlapse from that. In my end gcode I use this command:

      M98 P"DuetLapse3Stop.g" ;stop timelapse
      

      Which calls a .g file that contains this command:

      M117 DuetLapse3.completed ;Stop DuetLapse3
      G4 S10 ;Wait 10 seconds
      

      I have several of those files, one for start, pause, continue, and stop. I have references to them in my start and stop gcode, and in my pause.g, resume.g, and cancel.g.
      I tried doing a run without extratime and I was able to get a video. here's the log file.

      2081_1_YACS_vertical.log.txt

      It may look a little odd because I started recording and then started a print and duetlapse caught on to that. I ended the recording before the print was done.

      undefined 1 Reply Last reply 9 Feb 2023, 16:34 Reply Quote 0
      • undefined
        osterac @osterac
        last edited by 9 Feb 2023, 16:34

        @osterac
        So will I be able to use extratime at some point in the future?

        undefined 2 Replies Last reply 9 Feb 2023, 22:20 Reply Quote 0
        • undefined
          stuartofmt @osterac
          last edited by 9 Feb 2023, 22:20

          @osterac said in DuetLapse3:

          @osterac
          So will I be able to use extratime at some point in the future?

          Yes, absolutely. Hopefully over the weekend.

          undefined 1 Reply Last reply 15 Feb 2023, 00:07 Reply Quote 0
          • undefined
            stuartofmt @stuartofmt
            last edited by stuartofmt 15 Feb 2023, 00:07

            Release Version 5.1.0

            Continuing on the journey towards a plugin ....

            Version 5.1.0

            [1] Removed the use of M117 messages and replace with M291 messages as this gives much better control. Also there is no need for a delay after the message (as there was with M117).
            [2] Set new default, minimum values for -seconds (20) and -poll (10) along with some logic changes to avoid an occassional race condition.
            [3] Fixed a code error associated with -extratime
            [4] Some minor bug UI / Typo fixes

            Details on using M291 are here:
            https://github.com/stuartofmt/DuetLapse3/tree/main/Documents

            1 Reply Last reply Reply Quote 1
            • undefined
              stuartofmt @osterac
              last edited by 15 Feb 2023, 04:42

              @osterac

              See the post above. You will need to change M117 control messages to the M291 equivalent.
              Note that there is no need for a delay after each message

              undefined 1 Reply Last reply 15 Feb 2023, 22:49 Reply Quote 0
              • undefined
                osterac @stuartofmt
                last edited by 15 Feb 2023, 22:49

                @stuartofmt said in DuetLapse3:

                @osterac

                Note that there is no need for a delay after each message

                Sweet! Appreciate your work. Great stuff.

                1 Reply Last reply Reply Quote 0
                • undefined T3P3Tony referenced this topic 22 Feb 2023, 13:40
                • undefined
                  stuartofmt
                  last edited by 1 Apr 2023, 22:22

                  First of all, many thanks to @chrishamm @Falcounet @MintyTrebor and @T3P3Tony for all helping in progressing this plugin. Withouth their combined efforts it would still be where I left it late last year i.e. abandoned.

                  I'm very pleased to announce the pluging version of DuetLapse3.

                  The plugin uses the same source as the standalone version of DuetLapse3 but is easier to install than the standalone version. Other than that the standalone and plugin version have the same functionality.

                  https://github.com/stuartofmt/DuetLapse3/tree/main/plugin

                  The instructions for installing DuetLapse3 as a plugin are here:
                  https://github.com/stuartofmt/DuetLapse3/blob/main/plugin/plugin installation guide.md

                  1 Reply Last reply Reply Quote 3
                  • undefined
                    stuartofmt
                    last edited by stuartofmt 4 Jan 2023, 22:44 1 Apr 2023, 22:38

                    VERSION - 5.2.0 Released

                    [1] Fixed snapshot when called from gcode
                    [2] Process all M291 messages without delay
                    [3] Refactored loop control to prevent thread blocking
                    [4] Prevent first layer capture if -pause yes
                    [5] Added -password option to support passwords
                    [6] Released as a plugin for SBC

                    undefined 1 Reply Last reply 17 Apr 2023, 15:29 Reply Quote 1
                    • undefined
                      LuniLAB @stuartofmt
                      last edited by 17 Apr 2023, 15:29

                      @stuartofmt

                      https://i.postimg.cc/5tGyZb6j/duetlapse.png SBC installation doesnt work.

                      undefined 1 Reply Last reply 17 Apr 2023, 16:50 Reply Quote 0
                      • undefined
                        stuartofmt @LuniLAB
                        last edited by 17 Apr 2023, 16:50

                        @LuniLAB said in DuetLapse3:

                        @stuartofmt

                        https://i.postimg.cc/5tGyZb6j/duetlapse.png SBC installation doesnt work.

                        It's currently set to require R3.4.5 because that is the latest stable release and the release I tested on.

                        I'm not sure if it would even work on the 3.5 beta releases. I'll rebuild it (likely tonight) with a requirement of > 3.4.5 and make a note on the tested release.

                        I'll let you know when its done.

                        jay_s_ukundefined undefined 2 Replies Last reply 17 Apr 2023, 17:30 Reply Quote 1
                        • jay_s_ukundefined
                          jay_s_uk @stuartofmt
                          last edited by 17 Apr 2023, 17:30

                          @stuartofmt I think things have changed a fair bit between 3.4.5 and 3.5. @MintyTrebor can probably comment more

                          Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                          1 Reply Last reply Reply Quote 0
                          • undefined
                            MintyTrebor @stuartofmt
                            last edited by 17 Apr 2023, 18:04

                            @stuartofmt You will probably have to re-compile based on the 3.5 src at the very least - there were significant changes from 3.4.5 to 3.5. You may also have to make some changes to your code to make it 3.5 compatible, and it's likely the 3.5 version you make will not be backwards compatible with 3.4.5.

                            NodeDSF - Native Node-Red integration with Duet boards.
                            BtnCmd - Customise DWC with user defined buttons/layouts/panels (DWC Plugin)
                            ReleaseMgr - Duet update info inside DWC.
                            Repo

                            undefined 1 Reply Last reply 17 Apr 2023, 19:01 Reply Quote 1
                            • undefined
                              stuartofmt @MintyTrebor
                              last edited by 17 Apr 2023, 19:01

                              @MintyTrebor said in DuetLapse3:

                              @stuartofmt You will probably have to re-compile based on the 3.5 src at the very least - there were significant changes from 3.4.5 to 3.5. You may also have to make some changes to your code to make it 3.5 compatible, and it's likely the 3.5 version you make will not be backwards compatible with 3.4.5.

                              Thanks - I'll leave the current verson as-is and upgrade to a beta version when I can.

                              @LuniLAB Its unlikely that I can get to this for a while. You can run DuetLapse3 independently i.e. not as a plugin if you like.

                              1 Reply Last reply Reply Quote 1
                              • undefined
                                stuartofmt
                                last edited by 28 Apr 2023, 19:33

                                DuetLapse3 plugin is now available for 3.5.0.beta.3.
                                This due to the generous assistance of @MintyTrebor

                                https://github.com/stuartofmt/DuetLapse3/tree/main/plugin

                                Note that the plugins are specific to the DWC version and are not interchangeable.

                                1 Reply Last reply Reply Quote 1
                                • undefined
                                  JonasBaleine
                                  last edited by 16 Aug 2023, 19:28

                                  Hi, if I understand correctly, the plugin is only compatible with Duet board with SBC? Not the standalone boards?

                                  undefined 1 Reply Last reply 17 Aug 2023, 19:06 Reply Quote 0
                                  • undefined
                                    stuartofmt @JonasBaleine
                                    last edited by 17 Aug 2023, 19:06

                                    @JonasBaleine said in DuetLapse3:

                                    Hi, if I understand correctly, the plugin is only compatible with Duet board with SBC? Not the standalone boards?

                                    DuetLapse3 can be used either standalone or as a plugin. The code is common to both. The functionality is the same.

                                    See the documentation here:
                                    https://github.com/stuartofmt/DuetLapse3/blob/main/Documents/Getting Started.md

                                    Standalone
                                    DuetLapse3 can be installed (not as a plugin) on a linux or windows machine. DuetLapse uses python and its not possible / practical to run as a plugin on a standalone board.

                                    I recently changed a few file locations for better identification of versions. I just noticed that I have not updated a couple of links in the documentation.

                                    For standale on version 3.4.5 DuetLapse3 is here:
                                    https://github.com/stuartofmt/DuetLapse3/tree/main/Release 3.4.5
                                    For standalone on version 3.5.0-beta.4, DuetLapse3 is here:
                                    https://github.com/stuartofmt/DuetLapse3/tree/main/plugin/3.5.0-beta.4/dsf

                                    undefined 1 Reply Last reply 18 Aug 2023, 14:31 Reply Quote 0
                                    • undefined
                                      stuartofmt @stuartofmt
                                      last edited by 18 Aug 2023, 14:31

                                      @JonasBaleine

                                      Also - if you are using the beta.4 version as standalone, you should copy this macro into your /sys folder

                                      https://github.com/stuartofmt/DuetLapse3/tree/main/plugin/3.5.0-beta.4/sd/sys

                                      undefined 1 Reply Last reply 19 Aug 2023, 12:03 Reply Quote 0
                                      • undefined
                                        JonasBaleine @stuartofmt
                                        last edited by 19 Aug 2023, 12:03

                                        @stuartofmt Hi, thanks for the reply. I saw that there are 2 versions, the plugin and standalone version. What I meant was: does the plugin version only works when using the duet board in SBC mode? That's what the documentation would lead me to believe. Just wanted to make sure I understood correctly.

                                        undefined 1 Reply Last reply 19 Aug 2023, 15:49 Reply Quote 0
                                        • undefined
                                          stuartofmt @JonasBaleine
                                          last edited by 19 Aug 2023, 15:49

                                          @JonasBaleine said in DuetLapse3:

                                          does the plugin version only works when using the duet board in SBC mode?

                                          The plugin version only works for SBC. The reason is that the "heavy lifting" of DuetLapse3 is all done with Python code. Its not possible / practical to run that code on a standalone board. For standalone, you need to install DuetLapse3 on some computer with network access to the printer. I used to run it this way when I had a Duet2 using a Pi to run DuetLapse3.

                                          You can install not-as-a-plugin with either standalone or SBC. The main advantage of using the plugin (if you are running SBC) is that it simplifies the installation and integrates the UI with DWC. Otherwise the functionality is identical.

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA