Hi Guys,
I just started with ZoneMinder and trying to use API calls from my domotica system..
Trying to change the state of a monitor using this call
curl -XPOST http://server/zm/api/monitors/1.json -d "Monitor[Function]=Modect&Monitor[Enabled]:true"
What happens is that the monitor changes state BUT also goes to the disabled state although it says in the call that it should be enabled..
Anyone can shed some light?
API not working..
Re: API not working..
The API has a typo in this example. Its been recently corrected - please refer to the "latest" version (not "stable")
http://zoneminder.readthedocs.io/en/latest/api.html
http://zoneminder.readthedocs.io/en/latest/api.html
Code: Select all
curl -XPOST http://server/zm/api/monitors/1.json -d "Monitor[Function]=Modect&Monitor[Enabled]=1"
gverbist wrote:Hi Guys,
I just started with ZoneMinder and trying to use API calls from my domotica system..
Trying to change the state of a monitor using this call
curl -XPOST http://server/zm/api/monitors/1.json -d "Monitor[Function]=Modect&Monitor[Enabled]:true"
What happens is that the monitor changes state BUT also goes to the disabled state although it says in the call that it should be enabled..
Anyone can shed some light?
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.
Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs