DuetLapse available for Alpha testing
-
@luckyflyer did you look at the images in /tmp/DuetLapse ? you can copy those to windows and check if the images are ok
-
I looked at them on the pi and they look good.
-
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!
-
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? -
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.
-
@Danal I added graphicsmagick to the pi and now I'm generating video that looks like this
now to find good place for the two cameras
-
@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?
-
@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.phplogin 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/
-
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...
-
Either suggested technique will work fine.
-
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.
-
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.
-
@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
-
Now all we need is to be able to call that from within a print file...
-
@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
-
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 -
@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 :
Could you help me to solve the problem?
Thanks!
-
@the_dragonlord @Danal passed away a few months back.
I'm not sure if anyone has taken this script any further -
@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 furtheroh my....I didn't know...so sorry for that...
-
This post is deleted!