Cam1 Trigger's Cam2 PTZ preset?

ok, here's a potentially dumb question: why use an external program or script (bicommand or json control program) when you can just use the alert action 'request from a web service' to have BI send itself an arbitrary json command? what am i missing? thanx.

edit: maybe has to do with the fact that the json interface requires making several requests to login and then send commands?

re-edit: yeah, that's it. but for simple 'send ptz cam X to preset Y when this cam triggers', using the 'trigger/when triggered/move camera group(s)' works well. Too bad there's no way to differentiate based on which ZONE was involved in the trigger (without cloning cams for each zone, that is...)
 
Last edited:
Found a solution using the JSON Control Program For BlueIris

1. Downloaded the JSON app HERE
2. Placed the 3 files in C:\blueiris\bin
3. On the Alerts Tab of the triggering camera(BarnCam), I set "Run a program or execute a script" to the following:

Program: C:\BlueIris\bin\jsonBI.exe​

Paramerters: login http://192.168.1.10:8080/json USER PASSWORD; ptz Cam1 105; trigger Cam1​

Change USER PASSWORD to a valid BI user​

Now when my BarnCam gets an alert, my Cam1 PTZ cam will move to preset 5 (BarnView) and record



BI should have this functionality built into the alert section, but for not this appears to work.


#1 Thanks so much for the above.
#2 I am doing almost the exact same things, BUT the issue I am having is that (I will use your camera names) BarnCam gets triggered, runs the script that turns Cam1 to preset 5, but the TRIGGER of Cam1 happens BEFORE Cam1 gets a chance to move. When I test the BarnCam trigger, it seems to move Cam1 pretty quick (no 5 second delay or anything that I can see), but as stated before, the trigger of Cam1 happens before Cam1 gets turned where I want it.

What I am asking: is there a way to do something like this? Paramerters: login http://192.168.1.10:8080/json USER PASSWORD; ptz Cam1 105; WAIT 10 SECONDS Cam1; trigger Cam1

FYI, yeah, I tried that and json doesn't like "WAIT".

Any suggestions from those smarter than me? (ie. the entire group!)

Thanks!
-Steve