chunkysteveo / OctoPrintAPI

Library for use with Arduino compatible micro controllers (web enabled) to access the Octoprint API on Raspberry Pi's running the Octoprint 3D printer web server by the brilliant Gina Häußge, aka @foosel.
GNU General Public License v2.0
42 stars 24 forks source link

OctoprintApi::getPrintJob() update to match the API #26

Closed fmatray closed 4 years ago

fmatray commented 4 years ago

Hello, The api for job have an update with 'printTimeOrigin' : https://docs.octoprint.org/en/master/api/datamodel.html#progress-information

This information give the calculation method for printTimeLeft.

I'm not sure this is very useful for this library. What do you think ?

chunkysteveo commented 4 years ago

It could be useful if someone was to colour code the estimate similar to the Web GUI - red, amber, green etc?

fmatray commented 4 years ago

Done :-)