Have a look at suncron (http://stenarson.com/projects/suncron/) It builds a cron file based on rules in a configuration file so you can have commands run at times relative to sunrise or sunset. It's not too difficult to use if you understand cron scheduling and use the examples. Note the information...