Is there a way to have Indigo pass a command line argument to a script when it runs?
Here's what I'm trying to do... when someone arrives home, I want to run my atHomeArrive.py script with a param for who arrived home (atHomeArrive.py Jason) so that I can customize the push notification Indigo is sending, as well as other customizations...
I can get arguments into the python script if I run it as a normal script (python atHomeArrive.py), but if I run it in the Indigo environment, it seems like the command line arguments are not being passed along...
- Code: Select all
indigo-host -x "/Library/Application Support/Perceptive Automation/Scripts/atHomeArrive.py" Foo Bar Baz
->> no command line arguments are available in sys.argv
And, obviously the same lack of args when I run from within Indigo.
Worst case I can use extra variables or multiple scripts, but I was hoping there was some way to pass command line arguments instead.
Thanks,
Jason