Introduction: DIY Raspberry Pi Smart Google Calendar Clock

About: I am a young teenager who loves building stuff.

This is a Smart clock I made for the Clocks Contest, I hope you like it!

It has a Raspberry Pi in it which is running a Processing and Python program to access my Google Calendar data and print the next 10 days which you have something on on the screen.

The python program accesses the calendar data, saving it to a file on the Raspberry Pi, which Processing reads and puts on the screen.

Step 1: Everything Needed.

Raspberry Pi:

https://www.amazon.com/Raspberry-Pi-MS-004-0000002...

(if you want, you can get the 3 B+ which might be faster)

A screen:

https://www.amazon.com/Elecrow-RPA05010R-800x480-D...

And if you don't have a power supply, you can find one here:

https://www.amazon.com/CanaKit-Raspberry-Supply-Ad...

You will also need a USB mouse and keyboard (It doesn't matter what brand they are)

Step 2: Programming

If you have a larger monitor, I would highly recommend using that for this step because the screen is so tiny and it is hard to see text.

First, you will need to install Processing:

https://processing.org/download/

Select (Running on a Pi?) on the Linux list, then click Download and follow the setup guide.

Once you have Processing, you can download the program which is at the end of this step, you can also download the python program, then move them into the home folder.

You will need to use Python 2.7 as Python 3 is not supported by Googles Python Calendar API.

Go here and follow the instructions for setting up the API, (I would tell how to do it, but only Google can set up the API)

https://developers.google.com/calendar/quickstart/...

If you have all that done, you should be able to run the python program without any errors.

You will need to put this in the ~/.config/lxsession/LXDE-pi/autostart file:

/usr/local/bin/processing-java --sketch=/home/pi/Clock.pde --run

and this in the /etc/rc.local file:

python /home/pi/Clock.py &

And that is all for this step!

Step 3: Testing It Out.

This step is pretty simple, just plug the Pi into the screen, power it on (There might be a switch on the side of the screen to turn on and off the backlight) and TADA! you have a Google Calendar Clock!

If it doesn't work, just ask, I would love to help!

Step 4: Wrapping Up

That is all! please feel free to ask questions, and if you're wondering about the case, I just cut mine out of cardboard. (P.S. don't forget to vote in the Clocks Contest!)

Clocks Contest

Participated in the
Clocks Contest