Finally, I have migrated my C++ application (NexaSunRise) to a Python script that I would like to share with you. See attached eg .xml project.
Basically the script handles 12 labels (called A1-A3, B1-B3, C1-C3 and D1-D3) that you can map to any defined eg event.
For each label you have possibility for individual time settings for each day of the week.
All settings are described in the script where you have your dedicated area to change the values according to your personally needs.
The script activates the defined events when the sun goes up and down and when the defined time settings matches actual time.
I use eg with this script to control outdoor and indoor lights of my house.
The script also creates a simple html-log file of the actions and other stuff the script does. I have linked this to my web server, then its easy to see that the script is doing the work also from remote when not at home.
My special thanks goes to Bitmonster that has helped and answered my questions promptly. This forum is really great.
As you know there is always room for learning. You will most likely find some functions that can be written "smarter". But the script works fine and fast. And the Python compiler seems to be very efficient
Also a thanks to Henrik H├ñrk├Ânen. I found the nice Sun.py script at his site which provides the actual calculation of Sunrise/Sunset at the specified geographical position.
Hope you have some use of this script. I do not want to know how much time I used to spend, adjusting timers before I used it...
Best regards, Walter