Comments (8)
I will take a look at this. I always leave my OctoPrint servers on so I may have not noticed this. Thanks.
from printer-monitor.
I am adding a private method to the OctoPRintClient for resetting the printerData. That way the web interface won't display the old data as well -- or anything else that would ask for it.
// Reset all PrinterData
void OctoPrintClient::resetPrintData() {
printerData.averagePrintTime = "";
printerData.estimatedPrintTime = "";
printerData.fileName = "";
printerData.fileSize = "";
printerData.lastPrintTime = "";
printerData.progressCompletion = "";
printerData.progressFilepos = "";
printerData.progressPrintTime = "";
printerData.progressPrintTimeLeft = "";
printerData.state = "";
printerData.toolTemp = "";
printerData.toolTargetTemp = "";
printerData.filamentLength = "";
printerData.bedTemp = "";
printerData.bedTargetTemp = "";
printerData.isPrinting = false;
printerData.error = "";
}
This will be called when a connection can not be made. The error then will be updated into the object.
This will be in the 1.5 branch.
Thanks!
from printer-monitor.
I have committed my changes to the 1.5 branch here: https://github.com/Qrome/printer-monitor/tree/1.5
If you can help me test this out, that would be great. Thanks!
from printer-monitor.
I'll test it out.
I don't use the web interface for monitoring since Octoprint already has a rather superb web interface built in.
You have multiple Octoprint Servers? (as do I)...is there a plan to have one printer monitor doing the monitoring all of the available Octoprint servers then?...:-)
from printer-monitor.
Yes, I do have a couple of printers. I have tried to work out a display pattern that would work well with multiple printers.
from printer-monitor.
I'm thinking a really big TFT display...:-)
from printer-monitor.
So far in testing the 1.5, it's working the way it should. Thus nulling all the data variables with Thor's hammer seems to have done the trick...I'll keep an eye on it over the next couple of days to make sure.
from printer-monitor.
Great, thanks. It seems to be working for me. I had actually intended on making the reset method to blank out all the data, but never got around to it. This was the perfect case of data sticking around when it is old and server offline. I will close the issue here. This will be part of 1.5 release.
from printer-monitor.
Related Issues (20)
- no display updates (duration/est time/ % / Temps) without internet connection HOT 1
- Verbindung zu Repetier Server!?
- Percentage Difference Between Printer Monitor and Octoprint Web Interface HOT 3
- WeMos D1 mini 0.66 inch 64x48 OLED Shield
- Screen gets messed up after a while HOT 4
- Restarting Issue HOT 8
- (Request) Moonraker Api support HOT 1
- Firmware update page doesnt load HOT 4
- I have fixed the Mainsail/Moonraker support! HOT 1
- Unable to connect to IP address of Octoprint HOT 2
- Screen Not Working | SSD1306 I2C Serial HOT 19
- static ip address HOT 1
- Display issue HOT 19
- Blank/Black Screen on SH1106 HOT 7
- Has this project been abandoned? HOT 4
- Display never turns on HOT 6
- SPI Oled Display
- AQI info with weather?
- Dual Extruder
- merge PR 160
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from printer-monitor.