truckershitch / printer-monitor

OctoPrint 3D Printer Monitor using Wemos D1 Mini ESP8266 -- Now supporing Moonraker
MIT License
9 stars 1 forks source link

Unable to retrieve the time when compiling and goes in a boot loop #5

Closed tinkertronix closed 1 year ago

tinkertronix commented 1 year ago

Hello,

Thanks for putting together this fork of the print monitor to work with Moonraker, I have just upgraded my 3D printer to klipper/mainsail and wanted to continue using the print monitor I have on my desk.

I am having a problem where when I compile the code in the Arduino IDE, the Wemos D1 mini is able to connect to the WiFi, it gets the weather data from WU, but when it tries to get the time from the NTP server, a bunch of . are displayed in the serial monitor and it then comes back with Time not set and reboots the Wemos.

I tried your compiled binary (by flashing Qrome's octoprint version to get access to the web interface to upload your binary), rewired my Wemos to match the default SCL and SDA connections coded in the binary file and that worked. But then at various random times, it would have trouble connecting to the NTP server again and go into the boot loop again. After a while it makes the connection and happily sits there until the next time it has trouble making the connection.

Any thoughts on what might be going on here? Many thanks. Simon

Screenshot 2023-03-22 101304

tinkertronix commented 1 year ago

An update, I have managed to get it to work, I had to upgrade the board files for the ESP8266, I was running 2.7.4, updated to 3.1.2 and after uploading, it connects to the NTP server and sets the time.

It still occasionally goes into a boot loop when it can't connect to the NTP server, but that isn't too often.