malnvenshorn / OctoPrint-CostEstimation

OctoPrint plugin to display the estimated print cost for the loaded model
GNU Affero General Public License v3.0
23 stars 19 forks source link

No API to read the cost via HTTP-GET #15

Open Baumi1245 opened 5 years ago

Baumi1245 commented 5 years ago

Is it possible to impement this?

malnvenshorn commented 5 years ago

Yes, but because the calculation happens in the frontend right now it has to be moved to the backend. Then it can be made accessible via an API endpoint.

Baumi1245 commented 5 years ago

I let openHAB collect some data of printings - only cost is missing....

At the moment i see no workaround to read the cost direct from the webinterface with openHAB, as i have to be logged in to see the data. http://user:pwd@octopi_ip/ is not working :-(