Enabling Motion Detection via API


#1

I’m trying to toggle camera motion detection mode via the web API using http://xx.xx.xx.xx:8124/Json/StartStopMotionDetector?source=3&enabled=true&authtoken=xxxx

however, this just returns false. How can I toggle the mode using API?


#2

Hi,
The command is wrong. Should look like this
http://xxxx:8124/Json/StartStopMotionDetector?sourceId=0&enabled=true&authToken=4542de99-57xxxxxxx
It seems to be source that should be sourceid

-Henrik


#3

http://xx.x.x.x:8124/Json/StartStopMotionDetector?sourceid=2&enabled=true&authtoken=89d35ec4-c2f8-4bf3-8e01-xxxxx still returns false.

Is the return value the actual motion state or the result of the enabling method?


#4

I used it yesterday, so
-Case sensitive?
-Used the correct token?
The return is result of the enabling method.