agrif / OctoPrint-InfluxDB

Writes temperatures and events to an Influx database.
GNU Affero General Public License v3.0
24 stars 15 forks source link

Actual Layer #20

Open corgan2222 opened 3 years ago

corgan2222 commented 3 years ago

Hello,

maybe I missed it, but I can't find the actual/total layer in the database. Are this information missing, or I'm blind?

thanxs, greetz Stefan

agrif commented 3 years ago

I think you're right -- I remember looking into this earlier, and I don't think OctoPrint actually exposes this information in Python. The information on the web interface's gcode viewer is calculated in javascript in the browser.

Other plugins get this information in Python by parsing the gcode being fed to the printer. We can do that here, too, but it's pretty far outside the scope of what this plugin does already.

I'm going to leave this issue open because it's a feature I want, but I'm not likely to work on it soon. If somebody else implements this, I would love a PR!