This post is just a bunch of notes regarding my attempt to create a useful Raspberry Pi LCD display. What is shown on the display is rather arbitrary – what I’m after is a small (inexpensive) display solution for bunches of different project ideas. All the projects share the same problem – how can I have a cool little LCD display integrated right into my project. Maybe the display will be a DRO (digital readout) for a CNC machine. Maybe the display will be bolted on a little two wheel robot. Maybe bolt the display in my vehicle for decoding real-time vehicle data. Or, as shown here, maybe the display will sit and display real-time weather.
So, what follows is a step-by-step, mainly for myself, guide for setting up a Raspberry Pi as a real-time weather display. To do all the GUI stuff I used Python + PyGame. This made it really easy to make a pretty display – which is difficult on a really small composite video display. All the fonts had to be really big to show up nice on the display. Once per second, PyGame is used to completely redraw the display. Then, once per minute, the code fetches the current weather conditions and forecast from Weather.Com. The weather and forecast are based on my zip code that is part of the data request to Weather.Com. On average, Weather.Com updates the weather / forecast four times per hour. It all seems to work very well. Read on for all the juicy details.