What is the problem?
I am making a page that would allow me to monitor my printer. While I have the video stream working, I would like to add basic info such as print time, estimated time left, layers printed/total, temps of hotbed, tools, and pi... Basic things like that. I do not plan on using it to send any commands since I can (securely) remote in and control the prints. The page is running on the same device as OctoPrint.
The problem I am having is figuring out how to access the API. I cant find any documentation of how to actually connect to it. I have searched the docs and found the doc on push updates which I think is what I am looking for for automatic refreshing updates like in octoprint. It's just no where that I can see is how to actually connect and grab the data. I have also spent a couple of hours trying to google how to do it or see if there was an open source project that has the same effect.
So my question is: does anyone have a project like this where they don't mind me looking at their source and try to figure this out or be willing to guide me through the process? Even some reading material that would guide me in the right direction would help. I am proficient in HTML and CSS but only have a basic understanding of how other languages work like JS and PHP.
Additional information about your setup
OctoPrint 1.3.9 & OctoPi 0.15.1