Qrome / printer-monitor

OctoPrint 3D Printer Monitor using Wemos D1 Mini ESP8266
MIT License
477 stars 164 forks source link

won't connect to octoprint, always says "OFFLINE" #138

Closed geneb389 closed 3 years ago

geneb389 commented 3 years ago

First off, this is really awesome. It worked initially, but I shut off the octoprint, and then when I turned it back on the print monitor would not reconnect and just stayed offline. I have tried reflashing the firmware on the print monitor, Verified the settings on the print monitor. I can still connect to the octoprint via the App and web interface but the print monitor just displays the weather and time but says "OFFLINE"

Qrome commented 3 years ago

Make sure the address to your octoprint server is still accurate. There is also a test button in the configuration. Also, are you running a release candidate of OctoPrint or the stable version?

https://youtu.be/kcBspqWhpIU?t=365

geneb389 commented 3 years ago

! 1 2

i did verify the address. when i do the test. if it's not printing everything says NULL but operational, When printing it displalys what's in the picture, but the print monitor always displays OFFLINE

Qrome commented 3 years ago

When did this start happening. Also, can you tell me what version of OctoPrint you are running? Is it a release candidate?

geneb389 commented 3 years ago

OctoPrint Version is 1.5.3

It started happening after I turned off the raspberry pi4 for a couple days. when I turned it back on, the print monitor wouldn't re-connect. The ip address and everything stayed the same. I first tried restarting the print monitor but that didn't work either. it is weird to me because the test button reports information, but the screen doesn't and shows it to be offline.

Qrome commented 3 years ago

Is your pi4 and monitor on the same subnet (same IP range) where they can see each other? Connect your Wemos D1 mini to your computer over the USB and open the Arduino IDE. Open the Serial Port monitor using baud rate 115200 and then press the reset button on the side of the Wemos D1 mini. Watch the serial monitor for the calls to the OcotoPrint server and see what you are getting there.

geneb389 commented 3 years ago

this is what the serial port monitor returned:

UtcOffset=-7.00 PrinterApiKey=A56FD75D00FB4BD5B25DF1B37D9FC957 PrinterHostName=PRUSA MMU2s PrinterServer=192.168.1.24 PrinterPort=80 PrinterName= PrinterAuthUser=prusa PrinterAuthPass=prusa minutesBetweenDataRefresh=10 themeColor=orange IS_BASIC_AUTH=1 www_username=admin www_password=password DISPLAYCLOCK=1 IS_24HOUR=0 INVERT_DISPLAY=0 USE_FLASH=1 DISPLAYWEATHER=1 WeatherApiKey=fffad25e28e56b5297dd0e285ca12c7e CityID: 5782055 IS_METRIC=0 WeatherLanguage=en HAS_PSU=0 WM: WM: AutoConnect WM: Connecting as wifi client... WM: Status: WM: 6 WM: Using last saved values, should be faster WM: Connection result: WM: 3 WM: IP Address: WM: 192.168.1.10 Signal Strength (RSSI): 100% Server started Use this URL : http://192.168.1.10:80/ no services found - make sure Printer server is turned on ** Leaving setup() WM: freeing allocated params!

Getting Weather Data... Getting Weather Data GET /data/2.5/group?id=5782055&units=imperial&cnt=1&APPID=fffad25e28e56b5297dd0e285ca12c7e&lang=en HTTP/1.1 Waiting for data Response Header: HTTP/1.1 200 OK lat: 40.6377 lon: -112.2961 dt: 1619050104 city: Stansbury park country: US temp: 53.82 humidity: 50 condition: Clouds wind: 11.5 weatherId: 802 description: scattered clouds icon: 03d

Updating Time... . 00:26:56 0:26:56 1616 Local time: 5:27 PM Getting Octoprint Data via GET GET /api/job HTTP/1.1 Connection to OctoPrint failed: 192.168.1.24:80

Clock Mode is turned on. Getting Octoprint Data via GET GET /api/job HTTP/1.1 Connection to OctoPrint failed: 192.168.1.24:80

Qrome commented 3 years ago

Yep, connection issue to 192.168.1.24 -- is there an active firewall on your network. This is probably an issue with a setting on your router. The device can access the internet but not another IP on your network. I have seen this before.

geneb389 commented 3 years ago

no firewall that I am aware of. any idea what setting I should check?

Qrome commented 3 years ago

I don't know what router you have, but look for something like this: Screenshot 2021-04-21 184839

geneb389 commented 3 years ago

That totally fixed the issue. thank you very much.

geneb389 commented 3 years ago

left you a donation, hope it helps with your projects.

Qrome commented 3 years ago

Awesome! Thank you so much. Glad you got it working.