malnvenshorn / OctoPrint-FilamentManager

OctoPrint plugin to manage your filament inventory
GNU Affero General Public License v3.0
131 stars 60 forks source link

Filament Data via REST API #206

Closed Tobi0892 closed 3 years ago

Tobi0892 commented 4 years ago

Is your feature request related to a problem? Please describe. As my printer is located in the basement, I extract various data from octoprint (via the API) and other sensors (DHT22, CCS811 etc via Python) and send it via MQTT to my home assistant instance to be displayed on a tablet:

image

As such, I would love to be able to extract data from the filament manager plugin.

Describe the solution you'd like I would like to extract the name, vendor, material, weight, weight left and weight used % data from the filament manager plugin via the octoprint REST API, i.e. http://octopi/api/filament-manager/

Describe alternatives you've considered As my python data collector runs as a cronjob on the octopi, it could possibly also get the data directly from the database.

VibroAxe commented 4 years ago

this already exists!

http://octoprint/plugin/filamentmanager/spools