Close

Run command with parameters

Share tips and tricks related to Sighthound Video or your full security setup.

Moderator: Staff

no avatar
stumper66
 
Posts: 13
Joined: Thu Dec 21, 2017 11:31 pm

Run command with parameters

by stumper66 » Tue Jan 16, 2018 11:06 pm

Hello,

When an alarm is triggered I'd like to run a command and pass arguments from the event, such as the camera name, rule name etc. Is this possible?

User avatar
ryan
 
Posts: 1015
Joined: Wed Aug 25, 2010 2:52 pm
Location: Palo Alto, California

Re: Run command with parameters

by ryan » Wed Jan 17, 2018 1:54 pm

There isn't currently a way to query variables to pass as parameters ("python myscript.py $CAMERA $RULE") but if those are the actual values you're interested as they are immutable rather than something like $CURRENT_TIME you could of course specify them as args yourself (python myscript.py Driveway).

It would be great to extend interaction support either via API or argument tokens but it isn't something that exists at the moment.
Learn more about Sighthound Video in our support pages - Reference Guide | All Articles
Are you a developer? Check out our cloud APIs - Demo | Docs


Return to General Discussion