Monitor enabling via API

Forum for questions and support relating to the 1.30.x releases only.
Locked
FXZone
Posts: 5
Joined: Wed Jun 14, 2017 5:53 am

Monitor enabling via API

Post by FXZone »

Hello,

i try to enable a Monitor using the API in nodejs.

I successfully logged in and retrieved the monitors.
But if i try to enable a monitor with a post request
i.E.

Code: Select all

Monitor[Enabled]="1"

i get the response

Code: Select all

{"message":"Saved"}
I don't know if the response means success, but if i look at the ZoneMinder the Monitor is still disabled.

Any suggestions?

Regards FX
FXZone
Posts: 5
Joined: Wed Jun 14, 2017 5:53 am

Re: Monitor enabling via API

Post by FXZone »

Argggg....
I found it.
has to be
Monitor[Enabled]=1 instead of Monitor[Enabled]="1"
Sorry for the traffic :-)
Locked