random Duet3 + SBC questions...
-
I believe there is an easier way. Take the script that currently connects to telnet, strip all the telnet socket stuff out, and make it read stdin. Then, run it on the SBC with:
sudo journalctl -fu duetcontrolserver | timelapse.py
(which could itself be a one line shell script)There is one other small change required: The M118 P4 that currently get embedded need to be M118 P0 to hit the log that the above command is scanning.
Does that make sense? And/or do you need me to make that version of the scripts?
-
@Danal said in random Duet3 + SBC questions...:
I believe there is an easier way. Take the script that currently connects to telnet, strip all the telnet socket stuff out, and make it read stdin. Then, run it on the SBC with:
sudo journalctl -fu duetcontrolserver | timelapse.py
(which could itself be a one line shell script)There is one other small change required: The M118 P4 that currently get embedded need to be M118 P0 to hit the log that the above command is scanning.
Does that make sense? And/or do you need me to make that version of the scripts?
It does make sense. I'm wondering what the "M118 P0" will do in DWC, though...
-
@Danal said in random Duet3 + SBC questions...:
The M118 P4 that currently get embedded need to be M118 P0 to hit the log that the above command is scanning.
does this have a version requirement? haven't updated in a while, but M118 did not show up in journalctl regardless of P
-
@garyd9 said in random Duet3 + SBC questions...:
I'm wondering what the "M118 P0" will do in DWC, though...
seems to vary. if executed in dwc console it shows in dwc, if executed elsewhere it does not. (at least on the version i tried)
-
Within a running job, it logs to the correct log on the SBC for the commands I was proposing.
It also logs to DWC, log and popup.
-
@bearer said in random Duet3 + SBC questions...:
@Danal said in random Duet3 + SBC questions...:
The M118 P4 that currently get embedded need to be M118 P0 to hit the log that the above command is scanning.
does this have a version requirement? haven't updated in a while, but M118 did not show up in journalctl regardless of P
Maybe. I am on:
DSF Version: 1.2.3.1
-
@Danal
Not being super python savvy, I think it would be very handy if you could provide the modified version of timelapse.py and a bit of instructions on how to setup for others with a Duet3 + SBC. I would be willing to help test/verify/report on my setup. If it helps, I already have MJPG-streamer and FFMPEG setup and running on my SBC (Pi 3). -
I will take a look!
-
Just to help complete anyone that come back through this thread:
Danal has a Time Lapse Python script posted here for the Duet 3: https://github.com/DanalEstes/DuetLapse
Also, I have one published for the Duet 3 here: https://github.com/JimsJump/Duet_3_6HC_Time_Lapse
Danal's is more polished for multiple systems where my is more customized to my setup. -
@Wally said in random Duet3 + SBC questions...:
@Danal
Not being super python savvy, I think it would be very handy if you could provide the modified version of timelapse.py and a bit of instructions on how to setup for others with a Duet3 + SBC. I would be willing to help test/verify/report on my setup. If it helps, I already have MJPG-streamer and FFMPEG setup and running on my SBC (Pi 3).I may have misread this when I replied back on the 18th.
DuetLapse can run on any Pi. Personally, I wouldn't run it on a Pi zero, but it will probably work (very slowly). The Pi on which DuetLapse runs only needs to be able to reach the printer that it is going to monitor or control via the network, and the camera it is told to use. If a command or library is missing, it will tell you how to get it.
To say this same thing phrased another way:
-
DuetLapse can be run on the Pi in a Duet 6HC + Pi configuration. With no modifications.
-
DuetLapse does not require running on a Duet 6HC + Pi. It runs on any Pi that has network connectivity to the printer.
Therefore, the instructions are:
- Install per https://github.com/DanalEstes/DuetLapse#installation
- Perhaps take a look at ./DuetLapse.py -h.
- Run.
- Enjoy.
-