sonoffsc icon indicating copy to clipboard operation
sonoffsc copied to clipboard

Webinterface not showing up

Open MikelillOi opened this issue 7 years ago • 9 comments

Hi!

I flash the ATMEGA328 succesfully and the esp8266 too. But when I try to go to the webinterface it shows the password dialog. I put it, but then, I always received a 404 error.

I flashed the espurna normal firmware and it works, but I only can process as a sonoff switch.

The console, only shows "[WEBSERVER] Request: GET /" when I received the 404 error.

MikelillOi avatar Jul 12 '17 11:07 MikelillOi

There is another target "upload spiffs" in platform.io. You need to run it for the webserver content to be uploaded to the esp.

DerKorb avatar Sep 10 '17 14:09 DerKorb

I also am getting this and I am not using Platform.IO. No web interface at all. I get the login request and after that it fails.

timgray avatar Sep 13 '17 14:09 timgray

you need to upload the webserver content even if you are not using platform.io no idea how to do it without platform.io

DerKorb avatar Sep 13 '17 15:09 DerKorb

Please note version 1.0 does not use SPIFFS. Instead the web content is converted into a PROGMEM byte array and incloded in the main firmware image. You should have a index.html.gz.h under esp8266/sonoffsc/static. If you don't you can build it again following this instructions from the ESPurna repository.

xoseperez avatar Oct 05 '17 21:10 xoseperez

I'm also can't get to web interface. After inputting default admin password I'm getting wrong credentials message. Browser console log gives 404 error. I'm using latest master branch.

bastshoes avatar Jan 26 '18 15:01 bastshoes

Ditto on the "Wrong Credentials" this happens after I put in 'admin/fibonacci' into the WebUI's login. If I put in 'admin/foo' it correctly rejects that so it seems the issue is after the first round of authentication.

I imagine at this point the codebase has fallen a good deal behind core espurna but I can't seem the find same issue over there. I wonder if this has to do with a library getting updated sometime between Oct and Jan? Websocket related?

Some more info:

The error in the browser is: Failed to load resource: net::ERR_CONNECTION_REFUSED /auth:1

Cabalist avatar Sep 04 '18 20:09 Cabalist

Hi,

same for me. Wrong Credentials when i put admin/fibonacci. Any other password reject, the input mask is shown again. The index.html.gz.h is in the correct path. I also try to use the one from master branch.

minipilot1300 avatar Sep 23 '18 19:09 minipilot1300

*** SOLUTION *** Delete the Memory of the esp. Then flash the firmware. Than the sc will do the job!

I use esptool.py -p /dev/cu.usbserial-00000000 erase_flash for this. It is possible that platform io can arrange this too.

minipilot1300 avatar Sep 24 '18 15:09 minipilot1300

@xoseperez @minipilot1300 Any other solutions for this problem? Im trying to log-in (also disabled login check in defines) but with lo luck (html Wrong Crenentials displayed even when Im putting right credentials :/)

wiatrM avatar Apr 09 '20 10:04 wiatrM