Duet web interface 3.1.1 print duration? June 07, 2020 04:12PM |
Registered: 7 years ago Posts: 619 |
Re: Duet web interface 3.1.1 print duration? June 08, 2020 11:52AM |
Registered: 11 years ago Posts: 14,685 |
echo job.lastDuration
M291 P{"Last print time was " ^ floor(job.lastDuration/3600) ^ " hours " ^ floor(mod(job.lastDuration,3600)/60) ^ " minutes"}
Re: Duet web interface 3.1.1 print duration? June 08, 2020 04:37PM |
Registered: 7 years ago Posts: 619 |
Quote
dc42
You can add WiFi using a nano router such as the TP-Link WR802.
Although Duet Web Control doesn't currently display the duration of the last print, if running firmware 3.1.1 you can retrieve it from the object model. It's called "job.lastDuration". So you can send:
echo job.lastDuration
and the time in seconds will be echoed to the command line. A slightly more sophisticated way is to put the following in a macro called Report Last Print Time:
M291 P{"Last print time was " ^ floor(job.lastDuration/3600) ^ " hours " ^ floor(mod(job.lastDuration,3600)/60) ^ " minutes"}