Getting statistics from Prusa link via API
Hi! We are really interesting to put prusas in our makerspace to grafana and display totals for counts of prints / hours / plastic amount / etc.
I can see that it is possible in theory through the API.
Is there some info around how to work with API?
Thanks!
RE: Getting statistics from Prusa link via API
If you mean PrusaLink exactly - https://forum.prusa3d.com/forum/general-discussion-announcements-and-releases/prusa-mini-json_exporter-prometheus-grafana-dashboard/#post-685927 but notice not everything is exposed on the metrics.
There are also some other integrations like with InfluxDB, so I suggest searching on the forums.
PrusaLink also can send some metrics to PrusaConnect but then you would have to extract it from the PrusaConnect API, I have not tried it yet.
See my GitHub and printables.com for some 3d stuff that you may like.
RE: Getting statistics from Prusa link via API
To get statistics from Prusa Link via its API, you'll need to interact with the API endpoints provided by Prusa for accessing printer data. This typically involves making HTTP requests to the API, using methods such as GET to retrieve data on various metrics such as print progress, printer status, and historical print jobs. You'll need to authenticate your requests, often using an API key or token provided by Prusa Link. Once authenticated, you can parse the JSON responses returned by the API to extract and utilize the desired statistics. Proper error handling and adherence to the API's rate limits and usage guidelines are essential for efficient and reliable data retrieval.