I’ve been working on a fork of Dan’s python ospi program that supports automatically timing a program based on the sunrise and sunset times in a particular zip code. I had a particular use where I wanted to control a string of lights in my backyard so they would turn on at sunset and then off at a specified time. I also wanted the lights to turn on at a specified time in the morning and then turn off near sunrise. The plugin will automatically create (and then modify once created) two additional programs on the OSPi every 12 hours according to the sunrise/sunset times for your zip code. While I was writing and testing the plugin, I found that rain delay and weather adjustments were interfering with the timing of these programs. To get around this I had to create a fork of Dan’s main program and alter the schedule.js and ospi.py files slightly.
The plugin currently only supports one station being used and this station must have the “Ignore rain” setting checked. Attached is a screenshot of the plugin. Bear in mind I am a novice in python and in using github so my commit history is quite messy. If anyone has suggestions or requests I would be happy to hear and keep them in mind for future updates.
You can find my fork here: https://github.com/alustig/OSPi