Using a group with the json api

Zaxon

n3wb
Joined
Dec 14, 2017
Messages
2
Reaction score
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?
 

jaydeel

BIT Beta Team
Joined
Nov 9, 2016
Messages
1,132
Reaction score
1,240
Location
SF Bay Area
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
 

Zaxon

n3wb
Joined
Dec 14, 2017
Messages
2
Reaction score
0
> 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!
 
Top