On the 941 I was able to get it to give a True Result
table.UserGlobal.OnvifLoginCheck=true
And also on the 841v3 after a few more tries..
Edit: After getting the Ok for setting running the Onvifer I still get the same error message...
IP3M-941B ONVIF and User Management
Re: IP3M-941B ONVIF and User Management
It is confusing, but you need to set it to false for it to work. Try using
It should end up as:
table.UserGlobal.OnvifLoginCheck=false
Code: Select all
http://ID:[email protected]/cgi-bin/configManager.cgi?action=setConfig&UserGlobal.OnvifLoginCheck=false
table.UserGlobal.OnvifLoginCheck=false
Re: IP3M-941B ONVIF and User Management
Interesting I kept doing the True and thought that was what it needed however the one post in your last post was what made it work.
Thanks for the Time you have invested in tracking down how people can make this work for them now and into the future..
Thanks for the Time you have invested in tracking down how people can make this work for them now and into the future..
Be Safe.
Re: IP3M-941B ONVIF and User Management
Also to Confirm that it did truly worked, Onvifer comes with with working results and I was able to add Revo2Maxx user to my Hikvision DVR where before the change I wasn't able to so it does now work..
Be Safe.
Re: IP3M-941B ONVIF and User Management
Where did you get those REST API docs from @jack7 ? I tried the call you did, but kept getting 401. It probably is different for my camera.
Re: IP3M-941B ONVIF and User Management
Edit: See bottom. A PR has been submitted, if it has been merged, skip to after the ------------
@jack7 I got it working!
Easiest way for other people to get it working:
Clone this repo https://github.com/tchellomello/python-amcrest or do a (either using the path provided by pip show, or in the repo's directory) and scroll down to the very bottom: https://github.com/tchellomello/python- ... em.py#L167
Paste the following code below the reboot function def:
------------
Then create python file, on say your desktop and paste this into it, replacing the IP, and password (the account must be the admin account):
Then just run with
It should simply print OK.
If you ever need to turn it off in the future, just change the following line from False to True:
I submitted a PR to that repo. Hopefully the developer will merge it. Once merged, this will allow skipping everything except the creating and executing of the yourPythonFile.py file
PR: https://github.com/tchellomello/python-amcrest/pull/178
@jack7 I got it working!
Easiest way for other people to get it working:
Clone this repo https://github.com/tchellomello/python-amcrest or do a
Then, open the filepip install amcrest && pip show amcrest
Code: Select all
/src/amcrest/system.py
Paste the following code below the reboot function def:
Code: Select all
def onvif_login_check(self, setCheck=False):
if setCheck == True:
ret = self.command(
"configManager.cgi?action=setConfig&UserGlobal.OnvifLoginCheck=true"
)
else:
ret = self.command(
"configManager.cgi?action=setConfig&UserGlobal.OnvifLoginCheck=false"
)
return ret.content.decode('utf-8')
Then create python file, on say your desktop and paste this into it, replacing the IP, and password (the account must be the admin account):
Code: Select all
from amcrest import AmcrestCamera, AmcrestError
camera = AmcrestCamera('192.168.1.X', 80, 'admin', 'yourCameraPassword').camera
try:
print(camera.onvif_login_check(False))
except AmcrestError as error:
print(error)
Code: Select all
python3 yourPythonFile.py
If you ever need to turn it off in the future, just change the following line from False to True:
Code: Select all
print(camera.onvif_login_check(True))
PR: https://github.com/tchellomello/python-amcrest/pull/178
Re: IP3M-941B ONVIF and User Management
PR on the python-amcrest repo has been merged. Use version 1.8.0 or higher.