OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Pi (OSPi) › Google Calendar code – my plan and a request › Re: Re: Google Calendar code – my plan and a request
For those who asked for the code:
get_schedule.py connects to Google Calendar to get all schedules for all zones for ‘today’, and writes a schedule xml file. Please note that this script expect 3 command line parameters as documented in the code.
read_schedule.py reads the schedule xml file, and the intent is for it to set up a cron job for each schedule item. This part isn’t working, I got stuck on finding a way to add a schedule item in cron for each schedule item. I will keep after it when I have more time, would welcome any ideas.