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

    DuetLapse available for Alpha testing

    Scheduled Pinned Locked Moved
    Third-party software
    26
    239
    23.7k
    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.
    • luckyflyerundefined
      luckyflyer
      last edited by

      I looked at them on the pi and they look good.

      1 Reply Last reply Reply Quote 0
      • luckyflyerundefined
        luckyflyer
        last edited by luckyflyer

        I started over from scratch with the latest Duet image, burnt it to a sd card, did all of the updates, reinstalled all of my .g files and macros. I then reinstalled Duet lapse only this time I installed all of the corequisite items first and then all of the other files. It had an error at first, rebooted and now it seems to be working as it should. The jpg's are in temp, when the print is finished I'll try vlc for a movie. Wheew!

        1 Reply Last reply Reply Quote 0
        • luckyflyerundefined
          luckyflyer
          last edited by luckyflyer

          Downloaded vlc to Duet pi but when I playback the video is blank, the vlc hazard cone stays on the screen. Is there a setting in ffmpeg that needs to be changed?
          Is there a better/simpler way to transfer files from pi to pc than samba?

          1 Reply Last reply Reply Quote 0
          • arhiundefined
            arhi
            last edited by

            samba is simplest way IMHO

            winscp works great too, especially if you want to access temp directory directly

            those ffmpeg parameters normally work, did you check if the images are ok? If the images are not ok then ffmpeg can't create the video. Copy the images to the PC and check them out if they are ok.

            luckyflyerundefined 1 Reply Last reply Reply Quote 0
            • arhiundefined
              arhi
              last edited by arhi

              @Danal I added graphicsmagick to the pi and now I'm generating video that looks like this 😄

              out.jpeg

              now to find good place for the two cameras 😄

              https://youtu.be/aDZHhJkSI6E

              1 Reply Last reply Reply Quote 1
              • luckyflyerundefined
                luckyflyer @arhi
                last edited by

                @arhi said in DuetLapse available for Alpha testing:

                samba is simplest way IMHO

                winscp works great too, especially if you want to access temp directory directly

                those ffmpeg parameters normally work, did you check if the images are ok? If the images are not ok then ffmpeg can't create the video. Copy the images to the PC and check them out if they are ok.

                All of the images look good. How do I copy them to the pc, copy and paste doesn't work. I haven't installed Samba yet, is that the only way?

                arhiundefined 1 Reply Last reply Reply Quote 0
                • arhiundefined
                  arhi @luckyflyer
                  last edited by

                  @luckyflyer
                  you can install samba, it's rather simple, for e.g.
                  https://pimylifeup.com/raspberry-pi-samba/

                  but even faster, get yourself winscp
                  https://winscp.net/eng/download.php

                  login with same credentials as you would ssh to the pi and copy the files

                  this requires ssh to be enabled on the pi (it is not by default), to enable ssh if it's not enabled: https://www.raspberrypi.org/documentation/remote-access/ssh/

                  1 Reply Last reply Reply Quote 0
                  • Danalundefined
                    Danal
                    last edited by

                    Sort of.

                    You can

                    • sudo apt-get install samba
                    • sudo smbpasswd -a pi
                    • sudo nano /etc/samba/smb.conf # and change 'read only = yes' to no. It is fairly far down in the file.

                    Then, on your windows machine,use a UNC like '\192.168.7.101\pi' in windows explorer, or an editor, or whatever. This is not a pure SAMBA "net share" in that there is no drive mapping. In my opinion, it actually works better...

                    Delta / Kossel printer fanatic

                    1 Reply Last reply Reply Quote 1
                    • Danalundefined
                      Danal
                      last edited by

                      Either suggested technique will work fine.

                      Delta / Kossel printer fanatic

                      1 Reply Last reply Reply Quote 1
                      • luckyflyerundefined
                        luckyflyer
                        last edited by

                        Ok, success finally, installed winscp, xfered the jpg's and videos to the pc, pictures look good and video's play to. There will be dancing in the streets I tell ya, thanks you guys.

                        1 Reply Last reply Reply Quote 0
                        • luckyflyerundefined
                          luckyflyer
                          last edited by luckyflyer

                          There was a post somewhere in this thread where someone made a macro to control Duetlapse, How would that be done, the start script is the macro?

                          Edit, wasn't a macro was a desktop entry.

                          arhiundefined 1 Reply Last reply Reply Quote 0
                          • arhiundefined
                            arhi @luckyflyer
                            last edited by

                            @luckyflyer said in DuetLapse available for Alpha testing:

                            There was a post somewhere in this thread where someone made a macro to control Duetlapse, How would that be done, the start script is the macro?

                            Edit, wasn't a macro was a desktop entry.

                            I run duetlapse like this

                            create file go.sh

                            #!/bin/sh
                            
                            while [ /bin/true ]
                            do
                              python3 DuetLapse.py -duet ender5.local.lan \
                                                   -camera usb -detect layer \
                                                   -pause no -two yes \
                                                   -first /dev/video0 -second /dev/video2 \
                                                    camparms -parms -r1280x960
                            done
                            

                            make it executable

                            chmod a+x go.sh
                            

                            start it (or doubleclick on it from X)

                            ./go.sh
                            
                            jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                            • jay_s_ukundefined
                              jay_s_uk @arhi
                              last edited by

                              @arhi

                              Now all we need is to be able to call that from within a print file...

                              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

                              arhiundefined 1 Reply Last reply Reply Quote 0
                              • arhiundefined
                                arhi @jay_s_uk
                                last edited by

                                @jay_s_uk said in DuetLapse available for Alpha testing:

                                Now all we need is to be able to call that from within a print file...

                                well this script runs duetlapse over and over again so you need to start it once and forget, you could call it from rc.local so it starts when the rpi boots up and it will run till you shut it down

                                1 Reply Last reply Reply Quote 0
                                • agent0810undefined
                                  agent0810
                                  last edited by

                                  Hey guys, have DuetLapse running and its communicating with my Duet 2 wifi board. When it sees a layer change it pauses the print, takes the pic and then does not start the print again. Is there a setting im missing?

                                  Here is some info of what im doing, at the bottom i am manually restrarting the print from my web interface.

                                  ./DuetLapse.py -duet 10.1.2.xxx -camera pi -pause yes -movehead 200 200 -detect layer

                                  it stops, moves the head to the corner then never starts again. any advice would be great, thank you!

                                  this is a duet 2 wifi board on a Ender 5 pro using cura slicer.

                                  ./DuetLapse.py -duet 10.1.2.xxx -camera pi -pause yes -movehead 200 200 -detect layer

                                  Note "-pause yes" means this script will pause the printer when the -detect or
                                  -seconds flags trigger.
                                  If instead, it is desired that this script detect pauses that are already in
                                  in the gcode, specify:
                                  "-detect pause"
                                  Attempting to connect to printer at 10.1.2.xxx
                                  Connected to a Duet V2 printer at http://10.1.2.xxx

                                  ##################################

                                  Options in force for this run:
                                  camera = pi
                                  printer = 10.1.2.xxx
                                  seconds = 0
                                  detect = layer
                                  pause = yes
                                  camparms =
                                  vidparms =
                                  movehead = 200.00 200.00
                                  dontwait = False
                                  ##################################

                                  Waiting for print to start on printer 10.1.2.xxx
                                  Will take pictures when printing starts,
                                  and make video when printing ends.
                                  Or, press Ctrl+C one time to move directly to conversion step.

                                  Print start sensed.
                                  End of print will be sensed, and frames will be converted into video.
                                  Or, press Ctrl+C one time to move directly to conversion step.

                                  Requesting pause via M25
                                  Moving print head to X200.00 Y200.00
                                  Capturing frame 0 at X0.00 Y0.00 Z6.12 Layer 6
                                  Requesting pause via M25
                                  Moving print head to X200.00 Y200.00
                                  Capturing frame 1 at X103.69 Y86.69 Z1.32 Layer 7
                                  Requesting pause via M25
                                  Moving print head to X200.00 Y200.00
                                  Capturing frame 2 at X79.03 Y101.37 Z1.52 Layer 8
                                  Requesting pause via M25
                                  Moving print head to X200.00 Y200.00
                                  Capturing frame 3 at X67.97 Y145.27 Z1.72 Layer 9

                                  1 Reply Last reply Reply Quote 0
                                  • A Former User?
                                    A Former User @Danal
                                    last edited by

                                    @Danal Hi, I've installed everything needed in my printer and Raspberry PI but when I start the script, as you can see, the Raspy doesn't recognize the (correct) printer IP :

                                    99639050-6c1fcc80-2a47-11eb-900e-0014268033c5.png

                                    99639049-6aee9f80-2a47-11eb-8cdf-7a30c3c297d6.png

                                    Could you help me to solve the problem?

                                    Thanks!

                                    jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                                    • jay_s_ukundefined
                                      jay_s_uk @A Former User
                                      last edited by

                                      @the_dragonlord @Danal passed away a few months back.
                                      I'm not sure if anyone has taken this script any further

                                      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

                                      A Former User? 1 Reply Last reply Reply Quote 0
                                      • A Former User?
                                        A Former User @jay_s_uk
                                        last edited by

                                        @jay_s_uk said in DuetLapse available for Alpha testing:

                                        @the_dragonlord @Danal passed away a few months back.
                                        I'm not sure if anyone has taken this script any further

                                        oh my....I didn't know...so sorry for that...

                                        1 Reply Last reply Reply Quote 0
                                        • A Former User?
                                          A Former User @Danal
                                          last edited by

                                          This post is deleted!
                                          1 Reply Last reply Reply Quote 0
                                          • JohnOCFIIundefined
                                            JohnOCFII
                                            last edited by

                                            As mentioned in the GitHub ticket - I wanted to see if you could ping the printer from the Pi, just to rule out low-level IP connectivity issues.

                                            I just installed the DuetLapse about a month ago, so it is pretty fresh in my brain.

                                            John

                                            A Former User? 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Unless otherwise noted, all forum content is licensed under CC-BY-SA