Scheduling - How to?
Greetings,
The solution may be staring me in the face. If it is I am staring through it. My hope is to arm a camera action at a specific time each night (i.e. 22:00) and have the camera action disarm at sunrise. I have explored using multiple schedules to accomplish my goal but I am coming up blank. At the moment the solution appears to be my writing an Applescript. Thoughts?
Thank You.
Comments
-
Sorry but there is no built-in way to do exactly this. You can do either:
- Set your own custom schedule to arm/disarm Actions at specific set times of the day/week (configured at Settings > Scheduling).
- Use the built-in "Armed Sunset To Sunrise" schedule, but in this case both the arming time and the disarming time will change automatically.
There is no built-in way to arm at a specific time, and then disarm at sunrise. Perhaps AppleScript is the best way to achieve this, as follows:
Script 1 - schedule to run at 10pm every day:
tell application "SecuritySpy" to set schedule "Armed 24/7" camera name "Cam" mode Actions
Script 2 - schedule to run at 2am every day:
tell application "SecuritySpy" to set schedule "Armed Sunset To Sunrise" camera name "Cam" mode Actions
Use Lingon to schedule each script.
-
Hello Ben,
Thanks for confirming that there was no built-way to accomplish this and the suggestions on how to accomplish my goal. I already make use of Lingon. It's a handy and hearty app. Thanks again.
cjs
-
My Solution: I use Security Spy in consort with a Hubitat Elevation server. I used its built-in sunset/sunrise feature to send a GET command to sSpy to arm/disarm camera action.
-
Great to hear that, sounds like a good solution.
