Greetings,
I have requirement to have a variable for Nautical Sunrise/Sunset similar to the built-in isDaylight. I have a a python script for calculating this each day.
I could use an on-the-fly script create (by applescript) Sunrise and Sunset Schedules to set the variable but this seems rather clunky. I would rather have it in the background as a plugin. I thought I could have the plugin checking the current time against the Nautical Sunrise and Sunset times (calculated by the python code) and when the current time is the Nautical Sunrise or Sunset time, the variable would change accordingly.
I was wundering if you could comment on this approach or perhaps make suggestion as to how I could do this more efficiently?
kind regards,
Z