Giter Club home page Giter Club logo

Comments (8)

Qrome avatar Qrome commented on August 11, 2024

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.

Qrome avatar Qrome commented on August 11, 2024

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.

Qrome avatar Qrome commented on August 11, 2024

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.

wabbitguy avatar wabbitguy commented on August 11, 2024

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.

Qrome avatar Qrome commented on August 11, 2024

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.

wabbitguy avatar wabbitguy commented on August 11, 2024

I'm thinking a really big TFT display...:-)

from printer-monitor.

wabbitguy avatar wabbitguy commented on August 11, 2024

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.

Qrome avatar Qrome commented on August 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.