As part of this blog post, the idea is to put all the bits of code together which were part of the previous blog post to light up the LEDs assigned to the panels on the clock. As part of the final setup the python program below will be setup to run automatically in the morning using a system service, starting at 6:30 AM and for every 20 mins interval till about 8:30 AM. But for now, I am using the POT to create the video demo of the features listed below-
- Weather- this lights up based on the weather conditions, so if it is sunny the panel will light up yellow, and if it rains, which it rarely does here, it will light up blue and I will also have the LEDs at the back of the clock light blue, which is a reminder to carry an umbrella when I head out.This feature uses the OpenWeatherMap.org API, and for more info on the setup with the API checkout the blog post at - Reading out the weather using eSpeak
- Gmail – this panel will light up red, if I have more than 10 unread messages, and green if less than 10. But as part of a future enhancement, the idea is to have it only light up red, if I have emails from family/friends.
- Traffic – Based on my drive from home to work every morning, I bet this panel will always be lit up red. The idea here is, to have the panel light up red if time to work is more than 45 mins , orange if it is between 35 to 45 mins, and green if it is less than 35 mins.This is based on the Google Maps Distance Matrix API, for more info setup checkout - Commute time to work using Google Maps API
- Home – this panel is to monitor air quality and temperature at home, this will light up red if the temperature >22 C, or the air quality value >150, which means there are weird gases at home aka there could be a potential gas leak in my apartment. If this panel is lit up red, then you can use the POT to display temperature and gas sensor value on the RGB LCD screen which will be part of the next blog post.
- Twitter – this will be set to blue , if the hashtag that I am tracking has been used in a tweet today on the twittersphere. In my case, I am tracking the #upcycleit hashtag. Just in case you come across this blog post in the future and wondering what the hashtag means, basically this post was created as part of the Upcycle it design challenge.For more info on using tweepy to get tweets based on hashtag check out - Reading out tweets on a Bluetooth speakers
Before uploading the code to the Intel Edison, from the GitHub repo below, we need to glue the panels on the clock. The dual 3D printed diffuse'r slide into panel holder , which means I can replace one of the features above with something more interesting in the future..
https://github.com/CJAndrade/Upcycled-Clock/tree/master/PanelDiffusion
{gallery} Panels |
---|
Panels and the 3D printed diffusion parts |
Hot gluing the panel parts |
Glue the panel to the clock |
Dual 3D printed diffuser just slide in, just in case I have to replace one of them with something more intresting |
Finally add a button caps and a fancy knob |
Build complete |
Mounted on the wall .. |
All the LED diffusion panels on. |
Top Comments