Alarm clock uses Raspberry Pi to poll Google Calendar

rpi-google-calendar-alarm-clock

We know a lot of people love using their smart phone as a bedside alarm clock. The problem is that a mobile phone is mobile by nature and eventually you’ll forget to put it in the bedroom one night. That’s why we like the solution that [Devon Bray] has chosen. He set up his Raspberry Pi as an alarm clock that is set using Google Calendar.

The setup which he shows off in his video is quite simple. The Raspberry Pi is connected to a set of powered computer speakers. It plays a song whenever an appointment called “wake” comes up on his Google Calendar. This is accomplished by using the Google Data APIs Python Client Library (isn’t that a mouthful?).

This only scratches the surface of what is possible. With this in place you could easily add LEDs to the room for a sunrise alarm. But if you’d prefer a more bare-bones hardware side of things that’s possible too.

Comments

  1. Christian St. Cyr says:

    Forget to put it in the bedroom? Clearly a Millennial did not write this because we go to sleep and wake up to our smartphones.

  2. Vonskippy says:

    What happens if his internet connection is down? Or if Google Calendar is down?

    • lwatcdr says:

      Simple
      If (!connectToGoogleCal()) {
      displaysyncwarn();
      if(!alarmtime=lastweekAlarm(dayofweek)) alarmtime=default;
      }

    • Justin says:

      # Johnson, you’re 3 hours late for work!!
      # Sorry boss, leap second.
      # What?!?
      # Well, at 3AM my alarm clock decided to sync with NTP and got a leap second. Although my alarm clock logic runs in Python, there’s a Java OSGI bundle that also checks the water level in my water cooker to prep the coffee. Turns out there was a bug in the leap second handler that sent Java in a 99% CPU consumption and things got messy.
      # … Oooh …kay … don’t let it happen again. Better buy a standard alarm clock
      # Don’t really have a choice, sir.
      # How so?
      # The house burnt down.
      # Wot?
      # The Arduino on my water cooker only has 2k RAM. It piled up with messages for my alarm clock and somehow the pin that drives its LiPo charger went high.

  3. Danieljury3 says:

    I used to use my phone as my alarm clock but it would sometimes die instead of waking me up in the morning. Missed classes on several occasions because of it.

  4. josh says:

    how do i get a job i wake at 10:44 am–lolz im up at 6:30 am to my phone

  5. Bitflusher says:

    I never forget to take my Phone in the bedroom, however i do sometimes forget to take it with me when i leave. I Don’t think this will solve my problem.

    What i like is taking action on google tasks, this could be used on other home automation tasks.

  6. Bogdan says:

    Didn’t someone make an even better project?
    http://egaertner.com/dpac/

  7. Rob says:

    I’m on call 24×7 for my job, we have monitoring systems in place an if something goes bad, I get a call….to alleviate that call waking up my wife I used a pi to check my email for the automated messages and if they exist to trigger a deaf alarm (think giant phone vibrator) under my bed.

    I’ve had mixed issues with this, my first pi was a dud and locked up within minutes, the second I’m on is better but it still crashes, I’ve reduced this issue with a automatic restart daily (heat is not the issue).

    I don’t think I would be comfortable to rely on this as a sole mechanism to get my butt up. But I have thought about doing exactly this before, hope it works out!

  8. Chris Larkee says:

    I’m amused how the “barebones” hardware is more expensive than the Raspberry Pi, and only slightly smaller. What a world we live in.

  9. Daley says:

    I really like this for so much more than just an alarm clock. As a previous poster pointed out, this could be applied to things like home automation, etc. – the list goes on!

    My only caveat with this is the lack of a “snooze” mechanism (the pillow won’t let go of my head that abruptly). This could be easily solved by using one of the I/O pins however; if I actually get around to building this, I’ll share.

  10. supershwa says:

    An awful lot of overkill for this…a $50 RPi for an alarm clock? That poor, unappreciated Raspberry Pi! :(

    I still have a 12 year old $10 radio alarm clock from Wal Mart by the bed… =p

  11. urza9814 says:

    Nice idea that I’m definitely gonna have to bookmark. I have one of those week alarm clocks, but that doesn’t work so well when you get switched to shift work that changes every week. Already store my schedule in google calendar, but there’s no way in HELL the standard ‘notification’ you can set will be enough to wake me up. I’ll probably end up just porting this code to run on my desktop though — I’ve been setting up a home automation system using some Raspberry Pis (may be switching to a BeagleBone for the main control though,) but the only node in my bedroom is likely to be my desktop PC…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s