Using a group with the json api

Zaxon

n3wb
Dec 14, 2017
2
0
I've been sending pause commands through the Blue Iris json api, and I can successfully pause cameras, but not groups.

{"cmd":"camconfig","camera":"mygroup","pause":2,session:some_session}

Placing a camera name in the camera field works. I've tried group names with and without the +, and it returns a command failed. Does anyone else have pausing groups working?

Also, there doesn't appear to be a way of pausing for X, say, minutes. To pause for 15 minutes, you'd need to send the pause +1 minute command 15 times. Is that correct?
 
You need to loop through the cameras in the group and send the command to each camera.
You can use "pause":15 to pause +15 min (I discovered this by trial and error).
Other options are: [0] off, [1] 30s, [2] 5m, [3] 30m, [4] 1h, [5] 2h, [6] 3h, [7] 5h, [8] 10h, [9] 24h, [10] 15m, [-1] indefinitely
 
> You need to loop through the cameras in the group and send the command to each camera.

So if you had 5 cameras, you'd need to send 5 commands. It's a pity we can't replicate the shift-click GUI command, which does a whole group at once.

> [0] off, [1] 30s, [2] 5m, [3] 30m, [4] 1h, [5] 2h, [6] 3h, [7] 5h, [8] 10h, [9] 24h, [10] 15m, [-1] indefinitely

Good info. Thanks!