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

  • Looks like our web server spec document was a bit out of date, sorry about that. It's now updated. The key names are now as follows:

    mcTriggerMotion		Motion detection (0/1)
    mcTriggerMotionA	Animal motion detection (0/1)
    mcTriggerMotionH	Human motion detection (0/1)
    mcTriggerMotionV	Vehicle motion detection (0/1)
    mcTriggerArrivesA	Animal arrival detection (0/1)
    mcTriggerArrivesH	Human arrival detection (0/1)
    mcTriggerArrivesV	Vehicle arrival detection (0/1)
    mcTriggerDepartsA	Animal departure detection (0/1)
    mcTriggerDepartsH	Human departure detection (0/1)
    mcTriggerDepartsV	Vehicle departure detection (0/1)
    mcTriggerAudio		Audio detection (0/1)
    

    This same set of triggers are available for both Motion Capture mode and Actions mode. Change the leading "mc" to "a" to refer to Actions triggers.