roleoroleo / sonoff-hack

Custom firmware for Sonoff GK-200MP2B camera
GNU General Public License v3.0
200 stars 45 forks source link

Authentication not accepted for streaming #6

Closed dehness closed 3 years ago

dehness commented 3 years ago

Hi,

I can access and change the webui password, however, I can't seem to get the camera to save the authentication credentials for the stream properly.

When I change the password it works for the webui but whenever I try to access the stream it just comes back with invalid user/password, no matter if I try on Mac or iOS.

Home Assistant will add the camera under the onvif integration and pull the snapshots correctly, but the live stream fails to start.

Initially I couldn't access SSH either but I formatted the sdcard and modified the system.conf before inserting it into the camera and that worked for SSH but still not for streaming.

roleoroleo commented 3 years ago

Which password are you changing? SSH_PASSWORD is the /etc/passwd password. PASSWORD is for HTTP, ONVIF and RTSP services.

dehness commented 3 years ago

I changed both to admin and username to admin so the passwords are: admin:admin root:admin

I've tried multiple passwords and also tried without a password, which works fine for the webui but not for the stream.

roleoroleo commented 3 years ago

2 problems:

Try another username.

dehness commented 3 years ago

Face palm. When I read this reply I was already deep down a rabbit hole attempting to compile my own firmware so you just saved me hours of my life. Thanks mate, that fixed it.