OctoPrint-MQTT icon indicating copy to clipboard operation
OctoPrint-MQTT copied to clipboard

[Feature request] Add option to have print time / print time left in seconds

Open brantje opened this issue 3 years ago • 1 comments

Hi! Is it possible to get the total amount of seconds instead of hh:mm:ss? Both octoprint_print_time and octoprint_print_time_left give hh:mm:ss which is a pain to parse.

brantje avatar Dec 12 '20 10:12 brantje

If you check octoprint/progress/printing section at https://github.com/OctoPrint/OctoPrint-MQTT progress is only reported in seconds. If you are seeing "hh:mm:ss" then I believe you are using the HomeAssistant-Discovery plugin.

If you are using the HomeAssistant plugin, then you can look at the attributes for the sensor to access the time in seconds: image

cmroche avatar Apr 05 '21 16:04 cmroche