Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
brantje opened this issue Dec 12, 2020 · 1 comment

Comments

@brantje
Copy link

brantje commented Dec 12, 2020

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.

@cmroche
Copy link
Contributor

cmroche commented Apr 5, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants