Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no display updates (duration/est time/ % / Temps) without internet connection #149

Open
Vossberger opened this issue Oct 25, 2021 · 1 comment

Comments

@Vossberger
Copy link

Vossberger commented Oct 25, 2021

Wemos+display working well in my home enviroment (with internet connection),

now I connected it to my office installation without internet connection. a PI-Zero ist running octoprint and working as an access point (with DHCP). I can permanently connect my laptop/Mobile and Octorprint-Monitor. I've tested updating the "API" data and I can see that each time I press the button I receive updated data from the Pi.

The Monitor does not upgrade printing information/est. time/ percentige reached/temperatures(tool/Bed) as far as I do not unplugg and plug in the usb connector. I'm aware that I can not see the actuall time and weather data but what do I have to change within the script to display the updated octoprint data on the display ? I think this "issue" is related to the missing time chnge information ?

Any solution ?

@Vossberger
Copy link
Author

I've found a simple solution by adding a loop. Maybe it makers sense to include a check in the next version of the fantastic script (Internet yes/no) and then do this loop.

// ************************************************************************
// 1 Sec refresh to refresh display data
// ************************************************************************
unsigned long time = millis();
while((millis() - time) <1000) {
printerClient.getPrinterJobResults();
printerClient.getPrinterPsuState();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant