The problem with the above is that it appears that perhaps the printer only stores about 10 minutes of data (that's about how much data came back from my printer). The graph will continue to grow however as your web browser will store much more data. I don't know the best way to get more data. Maybe you could let the browser continue to grab the data and then dump out the array that is storing the accumulated data from the javascript command line in the browser debugger.
Or maybe you could look at the code for the "temperature" web page and change the code to suit your own needs.
Recommended Posts
gr5 2,176
Step 1: find out the IP address. Through the menus put the printer into "developer mode". Once you do that you will see the IP address of the printer at the top as shown here:
Developer mode might not be needed if you know the IP address. But maybe you need developer mode for the next step? Not sure.
Next go to that address in a browser:
And click on the link "temperature graph".
Now to get the data in a CSV format - it's actually in JSON format. The above browser must be on a computer (not a phone). Press the F12 key, then make sure the screen on the right is in network mode as shown (see blue line under "network"). Then hit F5 and once the graph loads click the red button to stop network requests (see the button is gray to the left of "network"). Click on the line that says "5000" as shown and click on "response" (see blue line under "response"). Now you can see the data in json format. You can cut that and paste it into a website that converts json to CSV. Or write a few lines of code to convert it from json to csv.
Link to post
Share on other sites