I’ve had a Vera Edge UI7 for a few weeks now and am trying to figure out how best to turn on/off some lights at sunrise/sunset but for different location than the system location. If this seems weird, you are not wrong. I want to use this for environmental controls for tropical frogs. It would be a slick way to simulate the subtle seasonal changes in day length the animals would experience in the wild.
I downloaded an luup script for calculating sunrise and sunset and storing them as variables from another thread and it looks pretty straightforward to modify for any location of interest. Where I am stuck is figuring out how to use those variables to trigger an event. Do I need to create a virtual device and assign the sunrise/sunset variables to it? And where would the calculate sunrise/sunset script go so that it updates the variables each day?
I have reasonably good proficiency programming in python but luup is brand new to me and I’m struggling with understanding the bits and pieces of executing luup on the Edge. Any pointers would be much appreciated.