Adrian, I bought a new camera a Dahua DH-SD22204t-GN-W. your App found this camera in version 006 but no longer in version 010 and also not in version 011 for the last two I sent you an error report. I can’t enter a username or passwd anywhere. The Camera works with the Dahua app.
I have reinstalled version 006 and the camera is found again
in 006 the snapshot does not work because there is an incorrect SnapShot URL in the error log
Hi @Octo
Thanks for sending the reports. That has tested that feature for me and hopefully helped me find the cause of the problem. It seems that camera returns a null port which was causing an issue in the latest versions.
A new test version (0.0.12) is now available that should fix that.
Oops, I have just read the last bit of your message. I will guess that is also an issue with the null port so I will investigate.
This one is not so obvious so I have created a new test version (0.0.13) that puts some extra log messages through the suspect section of the code to narrow down the problem area.
Thanks for your patience and testing.
I test the new version 0.0.9 and i have the same problem. i didn’t have the screen with motion event and change it to NOW nothing. Even the Has Motion i changed from yes to no and no to yes. Nothing changed.The screen Motion Event didn’t apear.
I installed 0.0.13 Motion event screen works now but i got the message “object response” on the screen. Even the log Works again. I have send you the log.
Could you try entering in your browser: http://xxx.xxx.xxx.xx/onvifsnapshot/media_service/snapshot?channel=1&subtype=0&usr=admin&pwd=YOUR_PASSWORD
Obviously replace xx… with the camera IP and YOUR_PASSWORD with the password for the camera.
Normally the call to getSnapshotURI returns the full URL but it appears on your camera it is not including the user name and password.
If it works in the browser with the username and password on the end of the URL then I can try and detect when it is missing and add it to the returned string.
The log shows (assuming I am looking at the correct log) your camera is dropping off the network a lot so I’m not sure if that is causing the problems.
I have now ordered a Hikvision camera to try so hopefully that will help get to the bottom of the issues.
That’s good. I will try to detect if the login details are missing from the snapshot URL and append them when required.
Life would be much easier if all the cameras were consistent
OK, new test version (0.0.14) available. This adds the user name and password on the end of the URI if it was not found.
Hopefully it won’t break it for others as I have found that my three types of camera come back with various combinations of pwd or password and usr or user.
I have also added the full URL object to the log as it contains other information on my cameras, nothng useful, but maybe yours has something I can more reliably detect to know it requires the credentials appended.
Adrian, updated to 0.0.15 snapshot screen is back. error message unauthorized. app and error log is empty. reinstalled the app, error message remains. an error log that I have forwarded to you. what I find strange is that since testing this camera I have to login to the homey forum again and again.
Everfocus has some other peculiar behavior with their GetUri responses. They return with both invalidAfterConnect and invalidAfterReboot flags set to true, which ONVIF says should always be set to false. This means that you need to call GetUri for every snapshot you request, even though it returns the same uri. If you don’t you get a 404.
So there maybe something in that which explains the problem. I will try changing the mechanism to get the URI just before each snapshot to see if that works.
OK a new test version is available. I’m not sure if it will fix the issue as the camera is not complying to the standards so the fix is also ‘non-standard’