DuetLapse3
-
@stuartofmt Hi, I will try it this weekend and come back to you. Do not worry, I understand being busy. Thanks for all you've done already.
-
@stuartofmt Hi, I installed the plugin and tried to run DuetLapse through terminal using this command:
python3 ./plugins/DuetLapse3/dsf/DuetLapse3.py -file ./sd/DuetLapse3/DuetLapse3.config
from the
/opt/dsf
directory on my pi.Here is the log that was produced startup.txt , saying "The printer at (IP address) needs to be at version 3.4.5".
Let me know if you need more information. Thanks!
Edit:
I changed the duet3DVersion to '3.4.6' in DuetLapse3.py and when I run the same command, I get the following startup.txt
In the DWC, I get partially started as Status when I press the start:
If I run the command above in the terminal, I get this in the DWC, but still only partially started:
-
This post is deleted! -
Before we get too far along - I've rebuilt the blugin against the 3.4.6 release (attached at end).
In theory there should not have been a difference between 3.4.5 and 3.4.6 from a plugin perspective but ...Regarding the version numbers. In the beta / rc versions I require a complete match because there can be some sensitivity. I was not thinking when I set the version number in 3.4.5. It should have been
3.4
which will match any release in that series. I've corrected this in the version above (The only change to DuetLapse3 I made).Regarding the start issue. The fact that it shows as only partially started when you run it from the terminal is, I think, to be expected based on the underlying plugin framework. What we should focus on is what happens when installed as a plugin and run as a plugin.
From the logfile I see
-duet = c3po.local
. The connection to the printer is successful, so that part is good.For
-weburl1 = http://c3po.local:8081/0/stream
its hard to tell because its likely not tried to capture any images.If the problem persistes with the above build .....
-
From a browser on the pi does
http://c3po.local:8081/0/stream
display your video feed? -
The logfile is only partial - can you run it with
-verbose
as that will capture most errors seen by the program. -
In a console: run the following command before trying to start the plugin and monitor for errors.
sudo SYSTEMD_LESS=RXMK /usr/bin/journalctl -f
[DuetLapse3-3.4.6--5.2.2.1.zip.txt] -
-
@stuartofmt Hi, I downloaded the new version you provided and installed it. When I start it, it says "started" for a few seconds, then "partially started".
To answer your questions:
- Yes,
http://c3po.local:8081/0/stream
display my video feed, on the pi, on my pc, in the Webcam tab of the DWC. -verbose
is already in my DuetLapse3.config.txt file. Starting the plugin does not seem to create a startup.log file.- When I run the command in the terminal and start the plugin, I get this result: Errors.txt saying PermissionError: [Errno 13] Permission denied: '/opt/dsf/sd/DuetLapse3/C3PO/c3po-local/startup.log'
I tried stopping Motion Webcam Server, but it did not solve the issue.
I tried adding my Raspberry Pi password to the config file with-password
, but it did not solve the issue.Thanks again, I appreciate the help.
- Yes,
-
@JonasBaleine said in DuetLapse3:
Thanks for the quick turnaround. This is looking like a permissions issue as opposed to a code issue. Lets see ...
@stuartofmt Hi, I downloaded the new version you provided and installed it. When I start it, it says "started" for a few seconds, then "partially started".
This makes sense given the problems below.
-verbose
is already in my DuetLapse3.config.txt file. Starting the plugin does not seem to create a startup.log file.
That seems wierd - the location for the config file should be /opt/dsf/sd/sys/DuetLapse3/DuetLapse3.config. Using DWC - Did you create a folder off your sys directory called DuetLapse3 and place your config file there ?
This is set by-basedir = /opt/dsf/sd/DuetLapse3
. If you have those folders/files set up - this error is possibly related to the permission issue described below.- When I run the command in the terminal and start the plugin, I get this result: Errors.txt saying PermissionError: [Errno 13] Permission denied: '/opt/dsf/sd/DuetLapse3/C3PO/c3po-local/startup.log'
This looks to be a a permissions error. I dont know where the /assets/ ... path comes into it. Its certainly not in the DuetLapse3 code. The /assets folder does not even exist in my setup. It could be a temp folder and we are seeing it because of the error.
All the files under /opt/dsf should be owned by
dsf:dsf
. I've seen several times now where the strange permissions were set when installing SBC using these instructions. https://docs.duet3d.com/User_manual/Machine_configuration/DSF_OtherTake a look in /opt/dsf and confirm all the files / folders have the correct permissions.
I've had to fix it by uninstalling the plugin, running the following, then reinstalling the plugin
cd /opt/dsf sudo chown -R dsf:dsf *
I've reported it and hopefully its something that can be fixed.
I tried adding my Raspberry Pi password to the config file with
-password
,The config file only requires a -password if you have set a password for your printer and is only used for connecting with the printer. Its not used for the file / folder structure.
-
@stuartofmt Hi, thanks for the quick reply. Yes, I did create a folder in System and then created the config file inside it.
By trying a few things, I realised that my Pi failed to fetch updates with
sudo apt update
, so I reflashed the Pi, following the steps https://docs.duet3d.com/en/User_manual/Machine_configuration/SBC_setup again. Now it works when I start the plugin.
Thanks for all your help, I really appreciate it. -
Hi @stuartofmt, its me again. I have everything working properly now, but I am wondering if there is a way that DuetLapse3 would not automatically resume a print if I manually paused it or paused by a filament sensor? Thanks!
-
@JonasBaleine said in DuetLapse3:
Hi @stuartofmt, its me again. I have everything working properly now, but I am wondering if there is a way that DuetLapse3 would not automatically resume a print if I manually paused it or paused by a filament sensor? Thanks!
I cannot reply in full just now but the answer is yes. Take a look at the documentation. From memory you don't want to set
- pause
What does your config file look like
-
@stuartofmt Here is my config DuetLapse3.config.txt. In the Info tab, I see pause as no. But when I pause a print with the Pause button from the Job/Status tab, the print automatically resumes if DuetLapse3 is started. In standby, it does not resume by itself.
-
@JonasBaleine said in DuetLapse3:
@stuartofmt Here is my config DuetLapse3.config.txt. In the Info tab, I see pause as no. But when I pause a print with the Pause button from the Job/Status tab, the print automatically resumes if DuetLapse3 is started. In standby, it does not resume by itself.
Thanks! - I found a logic error I had introduced a while back when I was re-arranging code (aka a bug). Would you mind trying this? I've not had a chance to test it but it was a 2 line change - so should (fingers crossed) be OK.
-
@stuartofmt I haven't tried everything, but it seems to work. It no longer resumes the print on its own. Thanks again!