Python Forum
Run School Bell by Google Calendar
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Run School Bell by Google Calendar
#1
Hello all,

I have a Raspberry Pi running a simple python code controlling a relay that rings a bell. It currently works great but I would like to make it easy to change the schedule via google calendar. The way it works now is just by using crontab and scheduling Monday-Friday.


What I have in mind is to create a google calendar with all the days off listed. I hope that python can read this and know not to ring the bell on those days.

How I would hope it would work is:

On the pi there would be a pre-made schedule to run Monday-Friday. Before ringing it checks the calendar for that day to see if it should ring which could be marked on the calendar as OFF. If it reads off it doesn't ring for that day.

The Bell needs to be on time so it would be best if it would check only once early in the morning to see if it should ring or not that day.

Thanks for the help.
Reply
#2
Here's a timer class that might prove useful: https://python-forum.io/Thread-Multi-thr...imer-Class
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  how to import files in Google Collab wihout downloading them to PC and to Google Disk sveto4ka 9 3,921 Jun-03-2020, 12:40 PM
Last Post: sveto4ka
  How to generate calendar with 2 formats in python luizcrf 1 2,678 Nov-01-2018, 06:46 AM
Last Post: Larz60+
  Displaying a calendar oldDog 3 3,266 Jul-08-2018, 12:42 PM
Last Post: snippsat
  How to read calendar appointments in outlook TilakGopi 2 11,694 Apr-05-2018, 02:58 PM
Last Post: TilakGopi
  Google Calendar & Python MeeranRizvi 2 8,502 May-29-2017, 12:55 PM
Last Post: volcano63

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020