xoseperez / sonoffsc

Itead Studio SonoffSC custom firmware with MQTT and Domoticz support
GNU General Public License v3.0
104 stars 35 forks source link

Webinterface not showing up #17

Open MikelillOi opened 6 years ago

MikelillOi commented 6 years ago

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.

DerKorb commented 6 years ago

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

timgray commented 6 years ago

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.

DerKorb commented 6 years ago

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

xoseperez commented 6 years ago

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.

bastshoes commented 6 years ago

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.

Cabalist commented 5 years ago

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

minipilot1300 commented 5 years ago

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 commented 5 years ago

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.

wiatrM commented 4 years ago

@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 :/)