Blueforcer / awtrix3

Custom firmware for the Ulanzi Smart Pixel clock or self made awtrix. Getting started is easy as 1-2-3
https://blueforcer.github.io/awtrix3/
Other
1.41k stars 112 forks source link

[BUG] WiFi reconnect partly successful #310

Closed DrRSatzteil closed 1 year ago

DrRSatzteil commented 1 year ago

Bug report

Unexpected WiFi behaviour after lost connection (version 0.86 Bugfix)

Describe the bug

WiFi is switched off in parts of our house during night time so the Ulanzi clock is without connection for a couple of hours. In the morning it shows "AP MODE" on the screen. So far this is the expected behaviour I guess.

The thing is: the device is actually not in AP mode. I see that it has an active dhcp lease and I can even access the web frontend where it also shows me that it is connected to my wifi network. All other features of the device are non-functional (API, screen mirror, etc.) until after a manual reboot.

Additional information

To Reproduce

Steps to reproduce the behavior: Turn off WiFi until Clock enters AP mode. Then reactivate WiFi. Clock is reconnecting successfully but thinks it's still in AP mode.

Expected behavior

Preferably leave AP mode and commence normal operation.

Screenshots

N/A

Logs

I don't have any logs so far. If required I'm happy to create a log file. 

Additional context

N/A

ofenboecka commented 1 year ago

Thanks DrRSatzteil, I have a similar setup with WiFi turned off at night. It's true that after re-enabling WiFi, awtrix reconnects and I'm able to access the web interface - and initiate a reboot there. But it's not responsive to http API calls, a reboot fails with "FileNotFound":

$ curl -X POST -H 'Content-Type:application/json' http://[awtrixIP]/api/reboot --data '{ }' FileNotFound

Therefore, the reboot cannot be automated. Is there a way to completely turn off this automatic AP mode?

Thanks, br

Xeno22 commented 1 year ago

Same here - since two days my Awtrix greets me in the morning with "AP MODE" enabled. No idea if this happens because of the new Awtrix light 0.86 or the new UniFi firmware ... It seems to disconnect and reconnect, but Awtrix stays in AP MODE: image