I don't know of a better way. This works just fine. Your posting made me realize there is an easier way to do it, so now only the XML is needed and the URL gets auto-detected. This makes adding new controls easier.
I've attached version 2 with the following changes:
Add more controls, thanks FastEddy
Auto-detect Windows and call appropriate at command
Try to auto-detect lat/long
Do a better job with DEBUG: > 0 will not schedule future actions, >= 1 will print URLs, >= 2 will run actions
EDIT: Stupid logic error in v2, fixed in v3.
I tried the attached version on a Ubuntu install and its asking for the modules ( you may need to install the DateTime::Event::Sunrise module ) ...
Do you have these modules I can also use?
Thanks