Before the “digital age” many families used wall calendars to show a monthly view of upcoming events. This modern version of the wall mounted calendar includes the same basic functions:

  • A monthly agenda
  • Sync of family members activities
  • Easy browse between months

Beyond those basic functions this gadget will also handle:

  • A whether forecast
  • Upcoming events in the surrounding area
  • Live information about the public transport
  • And even more...

What you need:

(Inspired by the instructable by Piney http://www.instructables.com/id/Raspberry-Pi-Wall-...)

Step 1: The Hardware

This is the hardware setup.

  1. Find a LCD laptop screen . Order a controller board on Ebay. Search for LCD Controller Driver Board and the serial number of your laptop screen.
    Read more: http://www.instructables.com/id/Old-laptop-screen-..
  2. Craft a piece of wood. Height should be more than 30mm, so the electronics can fit inside. The width and height depends on the size of your laptop screen, have a margin for an extra 10 mm on all sides. Carve out and make room for the electronics on the back. Drill holes for the buttons and wires.
  3. Fasten the laptop screen. I used the orginal mounting frame from the laptop.
  4. Cut out foamcore with equal thickness as the screen. and glue it on the wooden slab.
  5. Cover all sides with cork. Cut with a “snap-off blade knife” and glue with “glue spray”.
  6. Mount the Push Buttons. Use a large drill, and drill carefully by hand.
  7. Connect the electronics. Connect three of the Push Buttons to GPIO-pins 19/20/21 and to ground. https://ms-iot.github.io/content/images/PinMappin... Find out the pin for On/Off button for the controller board, and connect it with the fourth Push Button. (You will find it by trying to connect ground to each pin, suddenly the LCD will light up). Finaly, connect the HDMI cable between Raspberry and controller board, and connect the screen to the controller board.

Step 2: The Software

The setup is somehow turning the Raspberry Pi into a kiosk. The OS will auto start a website in full screen mode,
and the Push Buttons is used to control the information at the website. The setup is:

  1. Install Raspbain on Raspberry Pi
  2. Sign up for a Google Calender. (https://calendar.google.com). Add your upcomming event. Ask for access to your family members calendar, or create a speceific "family calender" and give the rest of the familiy acess to it. Make your calendar more dynamic by adding external calenders. Facebook events, public holidays, and week number has been practical for me. More inspiration here: http://lifehacker.com/the-coolest-things-you-can-a...
  3. Set up a webpage and a webserver
  4. Install a web browser and customize the calendar design
  5. Set up the push buttons

Continue reading for details about 3-5 .

Step 3: Create a webpage and webserver

The webpage is the canvas the Raspberry Pi will display. The canvas can be filled with any information. I will show you how i to embed a google callender. The embeed code is generate by googles own aplication. This youtube shows how to get it to work: https://www.youtube.com/watch?v=2tnYwbs-yDk

Google Calendar have built in keyboard shortcuts. Press N and the next month will appear, press P and the previously month is shown. This will only work when the < iframe > is in focus. I have created a JavaScript that ensure that focus is correct.

An example file of html code is attached (change name from index.html.txt to index.html). For privacy, I have replace some of the code with “*___REPLACED___*”. Instead, use the embeed code generated by google.

Either put the index.html file on your own webhost, or turn your Raspberry Pi into a webserver and host it local. If you already have a webhost continue to the next step. Install a webserver by following this guide: https://www.raspberrypi.org/documentation/remote-a... Now save your modifed index.html to /var/www/html/index.html, like this:

sudo cp index.html /var/www/html/index.html

Step 4: Install a web browser and customize the calendar design

There a many web browser out there. But I have only find one that can handle these three requirements; 1) can handle the modern version of google calendar, 2) has a full screen mode, 3) can run a local CSS. The local CSS is used to change the appearances of the google calendar. The redesign can’t be done at the webpage, because the CSS are embedded from another server (the google-server).

Install Iceweasel (Firefox for Linux)

Install this extension for Iceweasel:

Open the “Stylish” extension tab in Iceweasel and customize the CSS to make the google callander look better. Se attached file i for an example.

Now, lets make Iceweasel to autostart and open your webpage at login. Type this in the Linux terminal:

cd /home/pi//.config/autostart
nano cal.desktop 

Write the following to the file. Change "localhost" to adress where your canvas-webpage are stored. Save and exit.

[Desktop Entry]
Exec=iceweasel localhost

Step 5: Set up the Push Buttons

The Push Buttons is used to browse forward and backwards in the calendar month view. By default this is done by pressing “p” and “n” at a keyboard. Therefore the buttons will emulate those two keyboards commands.

First, create a python script to make the push buttons work: http://razzpisampler.oreilly.com/ch07.html

Download and install python-uinput, a python API to create virtual keyboards: http://tjjr.fi/sw/python-uinput/ Raspbian comes with both Python 2 and Python 3. Make sure you install uinput with the version you are using.

Put the uinput-API and the button script together. The final python scipt is attached.

Auto-start the python script on startup: http://www.instructables.com/id/Raspberry-Pi-Laun... Our launcher.sh will look like bellow. Replace “/home/pi/py_switch” to the path where you have stored the python script.

cd /
cd /home/pi/py_switch
sudo modprobe uinput
sudo python switch.py
cd /

That's all!


The number of possible commands can be extended with some if-else-statements in the python code. I have attached an upgraded switch.py-file in this step. The new is script has the following commands.

  • Press button 1 -> Key press “P” -> Browse previously month
  • Press button 2 -> Key press “N” -> Browse next month
  • Press button 3 -> Key press either "M" or "A" -> alternate between month-view or agenda-view
  • Long-press button 3. -> Key press "F5" -> Reload the webpage
  • Simultaneous press button 1, 2, 3 -> executes the shell command “sudo reboot” -> Restart of raspberry pi.
<p>The contributions in the comments are phenomenal! Good job everybody...</p><p>I'd like to add a commute time between various places. You can use an embedded google map but I'd rather just have the times/destinations in a list:</p><p>Husband's Work: 35 minutes</p><p>Wife's Work: 55 minutes</p><p>Airport: 45 minutes</p><p>and possibly change the colors of the font if they exceed certain thresholds. I don't want a whole map for each one. I just want them all in a list. If i missed something like this, apologies. If not, any direction would be appreciated. </p>
<p>This is an amazing project you have, it's one of those things that we all seem to need to make life easier</p><p>However, I was wondering if this is possible to do with the Apple ICloud Calendar service at all? Or is there a way to do live transfers from ICloud to Google so that when I update an even on my IOS device it'll show up on the Google device?</p><p>Many thanks</p>
<p>Anyone know how integrate WUNDERLIST in this project?</p>
<p>can it be done with an old laptop instead? </p>
<p>Can this be done with an old Pi Model B or B+?</p>
<p>Yes, check out my comment in the threads. I'm using an old B that I couldn't bring myself to throw away. </p>
<p>I'm making this to have a use for an old Pi B board that I just can't bring myself to throw away. I picked up a driver board, traced down 5 VDC and ground, and connected it to the pi for power there. Overall things are working really well on the bench (okay - the footstool :)), so now it's woodworking time. <br><br>My question is - has anyone made the python code for the buttons work any more efficiently? It's taking up around 50% CPU, and I'd really like to cut that down. I already had to switch from Iceweasel to Epiphany for performance reason, which was working fine with me. That such a simple piece of code is strangling the CPU is concerning, but despite having passed a Coursera class in python programming - I know when to admit I'm in over my head and tweaking python is a weakness of mine. </p>
<p>FYI, your high cpu usage is caused by a bug in iceweasel.. If there are any animations on a screen it will eat up processor. I've been playing with a few options just because I don't want my pi running at 50% all the time. I'll post something once I get it, but it'll most likely just be a different forecast embed. </p>
<p>I deleted all unnessacry files and just started from ''scratch'' My Pi B+ couldn't run Iceweasal because of it being too big.</p>
<p>Yeah, same here. Had to go with Epiphany on my B board above. </p><p>It has occasional issues loading things, but a refresh fixes them. </p>
<p>Thanks for the heads up on this. Sucks to hear it because I've been working on a hybrid page that uses JavaScript to switch between the weather radar and a Google traffic map periodically. Any suggestions for performance improvements that could be made would be appreciated.</p>
<p>Can you upload all index?</p>
Can't really upload my whole index.html as it has the Google info linked to my personal calendar. :)<br> <br> However, I have updated how my piCal looks / works. I found the previous weather radar to occasionally cause resource issues because it was trying to do animation. To eliminate that, I have a script that I created (/usr/userscripts/radargrab) downloading the NOAA radar for my area every five minutes, and then changing the size of the picture to match what I want on my screen. I then updated my index.html to just grab that image.<br> <br> Here's my index.html, less the calendar info:<br> &lt;html&gt;<br> &lt;head&gt;<br> &lt;meta http-equiv=&quot;refresh&quot; content=&quot;900&quot;&gt;<br> &lt;script&gt;<br> <br> function setFocus() {<br> &nbsp;&nbsp;&nbsp; var iframe = document.getElementById(&quot;calender&quot;);<br> &nbsp;&nbsp;&nbsp; iframe.contentWindow.focus();<br> }<br> <br> <br> &lt;/script&gt;<br> &lt;/head&gt;<br> <br> &lt;body onLoad=&quot;setFocus()&quot;&gt;<br> &lt;br&gt;<br> &lt;iframe INSERT YOUR CALENDAR CODE HERE id=&quot;calender&quot;&gt;&lt;/iframe&gt;<br> &lt;br&gt;<br> &lt;iframe style=&quot;align:left&quot;id=&quot;forecast_embed&quot; type=&quot;text/html&quot; frameborder=&quot;0&quot; height=&quot;245px&quot; width=&quot;750px&quot; src=&quot;http://forecast.io/embed/#lat=35.2670&amp;lon=-81.1016&amp;name=Lowell,NC&amp;color=#00aaff&amp;font=Georgia&amp;units=us&quot;&gt; &lt;/iframe&gt;<br> &lt;br&gt;<br> &lt;img src=&quot;radar.jpg&quot; alt=&quot;Local Radar&quot;&gt;<br> &lt;/body&gt;<br> &lt;/html&gt;<br> <br> Here's the script I have running every five minutes:<br> #!/bin/bash<br> <br> cd /var/www/html<br> rm -f radar.jpg clt.gif<br> wget -q http://images.intellicast.com/WxImages/Radar/clt.gif<br> convert clt.gif -resize 745x450! radar.jpg<br> <br> I then added this to root's crontab:<br> */5 * * * * /usr/userscripts/radargrab<br> <br> I like how it works, and my piCal seems to have gotten some attention. My girlfriend has officially asked me to make her a piCal for her use. &quot;Sure, find me a working laptop screen&quot; was the reply she received. :)
Perfect! Thanks men, i want to integrate a clock but i have some problem.<br><br>When i edit the index and insert clock code, i go to my web and the calenfar open but then it dissapears and then only shows clock....
<p><a href="http://time.is/widgets/California_City" rel="nofollow">http://time.is/widgets/California_City</a></p><p>You can type in the city name in the upper right corner (search icon) translate the page so you will see it in English.</p><p>This works perfectly for me</p>
<p>Thanks men!</p>
Here's what my new index.html looks like when combined with the script I wrote and the cron job.
<p>Where could I buy that usb cable you have connected to your controller board? And did you solder it onto the board? </p>
<p>I just bought a cable from a dollar store, cut the end off, traced the wires to make sure which were the wires I needed and soldered accordingly. </p>
<p>I'm working on mine and trying to power it using a similar method. I found a spot that provides 5 VDC all the time whether the monitor is powered on or not, so I could easily solder a power cord to that, I'm just if it will provide enough amps for the Pi3. I read somewhere that the Pi3 really only peaks out at about 800ma, but I'm not sure how much this circuit is built to handle. It's basically the power connector from the main board of the monitor (that powers the led's) to the video controller board. Anyway, I suppose I could just try it, and I'm sure it will work, just not sure if the Pi3 is going to draw too many amps at any given time. </p><p>It really won't ever have anything plugged into the USB ports, but I think I want to put ports on the side in case I ever need to connect a keyboard and mouse to it. Otherwise, that would be all it would power.</p><p>Oh and this is from an LCD monitor, not a laptop monitor.</p>
<p>Where could I buy that usb cable you have connected to your controller board? And did you solder it onto the board? </p>
I bought a super short cord on eBay for $4.25. Here's the link for the one I got. (I'm not affiliated with them in any way.)<br> <br> <a href="http://www.ebay.com/itm/301482963024?_trksid=p2057872.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT" rel="nofollow">http://www.ebay.com/itm/301482963024?_trksid=p2057872.m2749.l2649&amp;ssPageName=STRK%3AMEBIDX%3AIT </a><br> <br> Yes, I found a spot on the monitor driver board that had +5VDC regardless of whether the monitor was on or not, so I cut a cheap USB cord and soldered +5VDC and ground onto the controller board. That way I only had to run one power cord to my piCal instead of two.
<p>Where could I buy that usb cable you have connected to your controller board? And did you solder it onto the board? </p>
<p>Can you post your entire HTML file? I really like the look of that..</p><p>Also, what size monitor is your setup?</p><p>Thanks!</p>
Actually, there's not much to post that's different aside from the weather radar. It's just the code for the Google Calendar, the repurposed code for the weather stats that ouza posted in his index.html example, and the snippet of code above for the weather radar.<br> <br> As for the screen, it's an HB156WX that I pulled out of a very dead Toshiba laptop that my girlfriend had. (Note to self: Girlfriend Hulk-smashed a misbehaving laptop. Might want to avoid getting her too angry.) :)
<p>Thanks for the reply.. So is the screen you are using a 15.6&quot; with a 1280*800 resolution? </p><p>I'm just trying to get a feel of what can fit and how it would look on what size screen.</p><p>Thanks</p>
<p>I think I've got it in 1366x768 resolution, but I can look it up once I fire it up again. I have everything to get it mounted and hope to assemble everything together. <br><br>Don't get me wrong - it looks good on the foot stool and all, but I'd prefer it on the wall. ;)</p>
<p>Where did you get the html embed for the weather radar? I have been looking around but don't see anything for that part of it.</p>
<p>I forget exactly how I found it, but this is the code from my page:</p><p>img src=&quot;http://www.adiabatic.weather.net/cgi-bin/razradar.cgi?zipcode=28098&amp;width=750&amp;height=450&quot; width=&quot;750&quot; height=&quot;450&quot; alt=&quot;Local Radar&quot;</p><p>Place appropriate brackets around it when you use it. If I included those, it wouldn't let me paste the code in. :)</p>
<p>Hey, did you run into any problems viewing your events from google? Currently, my webpage will not view any events added to it. On my webpage all I see is a blank calendar. :(</p>
<p>Nope, works fine. I have to manually log into Google the first time, and after that it just comes right up. I'd suggest trying that and see if it helps. </p>
<p>Worth noting: If I disable the button script, epiphany still takes almost 95% of CPU. I may be fighting something that will just have to be accepted as working the way it is. </p>
<p>I made one for my wife's birthday since she's the organized one in our family. Built a custom frame and hung it on a wall painted with chalkboard paint (I'll be running a recessed power outlet up behind it soon to hide the cord). I am really happy with how it turned out.</p><p>From top to bottom: </p><p>- Static Image (I was still working out spacing, so this image is a little squished, but we'll address that later)<br>- Date/Time display<br>- Google Calendar (I blurred that junk out to keep you creepers from creepin')<br>- Weather forecast app from forecast.io<br>- Instagram feed from Snapwidget.com<br>- News reader that features World, Local, and Sports news<br>- Random quote generator (I store about 150 quotes locally on the Raspberry Pi's SD card. It's a massive overkill 16 GB, so I've got plenty of space to add more later. Also, I've got plans to add some buttons, voice command, and music player in the future, so I decided to start out with a ton of storage space into which I can grow.)</p>
<p>Wow</p><p>Just WOW</p><p>Can you help me with the index.</p><p>I will start working on it within a month so it would be cool to have something sort like yours </p><p>cheers and thanks</p>
<p>Can you upload all index?</p>
How you hang it to wall?<br><br>Which material is the frame?
<p>This one looks really smooth. I'm stuck on mine because of the webpage being too ugly.</p>
<p>I really like this is there any way you could post your code?</p>
<p>Can someone post a detailed picture on how to wire the buttons to the GPIO pins? I believe I have purchased the same buttons that suggested in the hardware section of this project. Thanks in advance. </p>
<p>If I want to use 2 LCD screens, like one for a full screen calendar and the other for pictures or weather or something, do I need 2 raspberry pis and will I need to make them like seperate entities with each one having their own driver, own pi, and such? Or is there a way to run both screens off of the pi?</p>
<p>Use http://www.piwall.co.uk/ </p>
Idea<br><br>Insert Wunderlist<br><br>https://www.sitepoint.com/crash-course-of-wunderlists-api-with-guzzle/
<p>thanks everyone who contributed to this &quot;instructable&quot;, as i pretty much gathered everything i needed from it to make what you see. I still need to put it in a nice frame, and then flush mount it in the wall. I am not a programmer, but i can follow directions..or rather i can do a mean cut &amp; paste. As you can see though, i have a little bit of real estate left on my screen which i was just going to fill in with some sort of local traffic map.....but then i got to thinking it would be cool to use as some sort of &quot;teaching&quot; space for my 7yr old. Something to do in the morning when we are eating breakfast before school. Example: quiz will begin in 30 seconds - Question 1. What is the capital of Illinois? You have 10 seconds...9...8...7...6...5...4...3...2...1...Then displays the answer. If someone would be awesome enough to provide the html for that, i would be most grateful...mind you i don't expect all the states and what not, if you just show and example of how its done with one state, i'm sure (i hope) i could then complete the code with the remaining states...would be cool if the questions could be &quot;randomized&quot; .......and then possibly modify it going forward when we move on to something else...i.e. periodic table, oceans, continents, etc....i will of course attempt this on my own and post whatever i find if anyone is interested. Much appreciated!</p>
<p>Can you upload all index?</p>
<p>How would you control the quiz?</p>
<p>well...ideally it would &quot;start&quot; in the morning when we are having breakfast, say 6:30am - then the questions would just randomly cycle thru questions until about 7:30 when we take the kids to school - no real control I guess, just a start / finish time - then during &quot;off quiz&quot; hours it would just have some local news headlines, or maybe I'll put a local traffic map , etc...</p><p>i'm still searching for the perfect code to manipulate for my desired application: \</p>
<p>I sent you a message Friday with something I had put together for you. Pretty basic, but its a start. If you're interested, We can improve it as you see fit. You can check your inbox for the full message, but here is the link:</p><p><a href="https://jsfiddle.net/JagerSOE/oa58L4jb/" rel="nofollow">https://jsfiddle.net/JagerSOE/oa58L4jb/</a></p><p>If interested, send me a message. You're idea would work, we could set it up to start at a certain time and run for an hour, having anything else running in &quot;off quiz hours&quot; if you would like. Unless a better means is available.</p><p>------------------------</p><p>Edit: Updated the link above</p>
I did it, thanks for the idea! Here in the UK :)
<p>Can you upload all index?</p>
<p>I've got your clock up and running in mine, but what font are you using? And are you implementing it in your javascript code, or using css or something?</p>

About This Instructable




More by ozua:Raspberry Pi: Wall Mounted Calendar and Notification Center 
Add instructable to: