roleoroleo / sonoff-hack

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

ONVIF error #3

Closed codebullfrog closed 4 years ago

codebullfrog commented 4 years ago

Hi,

When I try to add the camera using ONVIF I get an error. In one app I'm using it says "Error in retrieving media profiles. This could be due to an erroneous media service port." In Home Assistant I get Unknown error occurred and in the logs it says invalid URL with "http://:80". I can provide more detailed logs if required.

roleoroleo commented 4 years ago

Did you select the onvif interface in the configuration tab? Check if it's the same problem discussed here: https://github.com/roleoroleo/sonoff-hack/issues/1

codebullfrog commented 4 years ago

I ssh'd in and changed the two files to read ra0 instead of eth0 but stiff have the same issue.

roleoroleo commented 4 years ago

Which ONVIF client are you using? Client and cam, are they in the same subnet? Is the cam connected through the wifi?

codebullfrog commented 4 years ago

Trying with Blue Iris on the PC and Onvifer on the phone. I have also tried with Home Assistant adding as an integration. They are all on the same subnet and I can see the RTSP streams on all devices. The cam is connected though WiFi, all my devices seem to do some communication with the cam before having an error.

I have just booted up my other cam for the first time and I am getting the same issues.

roleoroleo commented 4 years ago

If the url is http://:80 the cam cannot transform the interface name into the IP address. Could you post your config?

codebullfrog commented 4 years ago

config.tar.gz Thats my config download from the web UI.

roleoroleo commented 4 years ago

Open a shell and edit the file system.conf. Change ONVIF_INTERFACE with ONVIF_NETIF. Save and restart.

codebullfrog commented 4 years ago

I was just looking at that code in system.sh. I made the change and looks like it is working now.

roleoroleo commented 4 years ago

Fixed in 0.0.5. https://github.com/roleoroleo/sonoff-hack/releases/tag/0.0.5