Disabling Actions and Motion Capture via Web Server
This command appears to run properly, but doesn't actually disable the actions or motion capture for the specified camera as seen in settings for that camera:
do shell script "curl -k -d 'cameraNum=4&aTriggerHuman=0&aTriggerVehicle=0&aTriggerAnimal=0&aTriggerVideo=0&mcTriggerHuman=0&mcTriggerVehicle=0&mcTriggerAnimal=0&mcTriggerVideo=0' https://[username]:[password]@localhost:8001/settings-cameras"
--> "{\"camUpdate\":{\"num\":\"4\",\"name\":\"Bigfork North\"}}
I've tried separating the "a" and "mc" actions into different commands without success.
The command below does succeed at disabling a different camera:
do shell script "curl -k -d 'cameraNum=5&enabled=0' https://[username]:[password]@localhost:8001/settings-cameras"
--> "{\"camUpdate\":{\"num\":\"5\",\"name\":\"Bigfork Living Room\"}}"
What am I missing?
Thanks
Comments
-
I've tried to narrow this down a bit by testing a few more parameters. I'm using version 6.17.
Using this format:
curl -k -d 'cameraNum=6&enabled=1' [URL]
These parameters work:
enabled
ccMovie
These don't:
aTriggerHuman
aTriggerVehicle
aTriggerAnimal
aTriggerVideo
mcTriggerHuman
mcTriggerVehicle
mcTriggerAnimal
mcTriggerVideo