Can SecuritySpy run scripts at sunrise / sunset?

wtimothyholman
edited October 2021 in SecuritySpy
Is there any way to configure SecuritySpy to run a shell script at sunrise or sunset? I want to be able to switch between Day and Night profiled on my Dahua cameras using the Dahua API at local sunrise and sunset.

There are lots of different ways to trigger a shell script using other software, but I'd prefer to consolidate all of my camera functionality under the SecuritySpy umbrella. SecuritySpy already calculates sunset and sunrise for scheduling, and it can also run shell scripts in response to Actions, so it seems the building blocks are already there.

Is there a way to do this that I'm missing? If not, then I would definitely recommend this as an option for a future release.

Comments

  • There is currently no way to do this - all actions (including running a script) are triggered from camera events only (motion detection, audio detection etc.). We'll consider this for a future update.