sidoh / esp8266_milight_hub

Replacement for a Milight/LimitlessLED hub hosted on an ESP8266
MIT License
948 stars 220 forks source link

unable to open settings / http://192.168.0.197/#/settings keeps loading #841

Open angelgc95 opened 1 month ago

angelgc95 commented 1 month ago
Screenshot 2024-10-25 at 07 01 45

What is the model number of the device you're trying to control?

esp8266 nodemcu ### What firmware version(s) have you tried? [1.13.0-beta2/beta1] ### Which ESP8266 board are you using? (nodemcu, d1_mini, etc.) ### Which radio type are you using? (RGBW, RGB+CCT, etc.) CCT ### Have you tried controlling the device with a physical remote? Yes ### Output of http://milight-hub.local/about and http://milight-hub.local/settings

/about

"... /about output. put between the ```s"

/settings

"... /settings output. put between the ```s"
sidoh commented 1 month ago

Can you take a screenshot of your developer console with the network tab open?

angelgc95 commented 1 month ago
Screenshot 2024-10-25 at 07 06 13
sidoh commented 1 month ago

Can you reload the page while it's open?

Also try loading http://192.168.0.1/settings and http://192.168.0.1/about

angelgc95 commented 1 month ago

Can you reload the page while it's open?

Also try loading http://192.168.0.1/settings and http://192.168.0.1/about

sidoh commented 1 month ago

errr, sorry, http://192.168.0.197/settings etc

And if you could also take a screenshot of the dev console after reloading the page

angelgc95 commented 1 month ago

image

errr, sorry, http://192.168.0.197/settings etc

And if you could also take a screenshot of the dev console after reloading the page

sidoh commented 1 month ago

Assuming http://192.168.0.197/settings is empty? What about http://192.168.0.197/about?

Is this a new install or did you upgrade from an older version?

Serial logs (pio device monitor) will probably be useful.

angelgc95 commented 1 month ago

http://192.168.0.197/about

{"firmware":"milight-hub","version":"1.13.0-beta1","ip_address":"192.168.0.197","reset_reason":"External System","variant":"nodemcuv2","free_heap":19080,"arduino_version":"3.1.2","free_stack":1200,"flash_used":983090,"flash_total":0,"flash_pct_free":0,"queue_stats":{"length":0,"dropped_packets":0}}

I did had the previous version (and was working good) but i had to wipe the esp to flash the new firmware

i update the screenshot in my prevues comment I hope that helps

sidoh commented 1 month ago

Oh no, that's a drag! Sorry you're running into trouble.

Yeah, it looks like your settings file is empty (if you could try loading http://192.168.0.197/settings manually just to make sure that'd be great). That's probably because there's something funky with the flash configuration. Hopefully we can figure out what's going on.

Did you have to erase flash because you had issues after upgrading?

Could you check serial logs?

angelgc95 commented 1 month ago

[No is ju=] http://192.168.0.197/settings empty

No, I just couldn't figure out how to update wifi settings

logs: --- Miniterm on /dev/cu.usbserial-0001 115200,8,N,1 --- --- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H --- �␄l␌��␌␌␌c␌o�|␂�␄��␄�p␄�|~�␀l��␀$␂�␒␓on␄l␂␎␂n{���n␌␄#$�␏lp�n�␐␃␄␌r��ܜ␜��␃␄b␄n�|␃␄��␌b��on�␂␄␌$␂�␛␒no␌$␃␎␃or����␂␌␌c��␂␎r��N␌␌B�p{l�␂␌␄��␌��$␂��o�␎l��␂�␒�N�{��N|�␄�$��l␂␜B�2␃␄�|␂s��d�o�␌�n�␀␌$␃��r�d�␜�␛�␌␌␌�␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀

sidoh commented 1 month ago

Looks like you have the baudrate set to 115200. Try setting it to 9600.

angelgc95 commented 1 month ago

--- Miniterm on /dev/cu.usbserial-0001 9600,8,N,1 --- --- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H --- b␄�␘I␁�␔C�bE�Failed to mount file system Opening settings file failed wm:AutoConnect wm:Connect Wifi, ATTEMPT # 1 of 5 wm:Connecting to SAVED AP: IoT_8 wm:AutoConnect: SUCCESS *wm:STA IP Address: 192.168.0.197 Wifi connected succesfully

Setup complete (version 1.13.0-beta1) Opening settings file failed Opening settings file failed Unhandled websocket event: 10

sidoh commented 1 month ago

Okay yeah that confirms there's something going on with flash:

(...)
Failed to mount file system
(...)

I would try the following:

Let me know what you see