Skip to content

Display time and weather summary info on small Pi LCD

Notifications You must be signed in to change notification settings

dmlogic/pi-clock-and-weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clock and weather display for Raspberry Pi & touchscreen

This project uses a Raspberry PI with touch screen to provide time, date and weather information

Main screen

Main features:

  • Time and date update from the PI timezone
  • Weather data is from UK MetOffice DataPoint API based on GPS coordinates. The seven most relevant forecasts from the 3 hourly service are displayed
  • Display is off most of the time and is turned on using the touchscreen
  • Alert icons are displayed beneath the date if thresholds for "Apply sunscreen", "Dress for rain" or "Dress for cold" are met

Main screen

Requirements

  • A recent Raspberry PI
  • Official LCD Touchscreen (others probably work)
  • PyGame installed
  • An API key for MetOffice DataPoint

This project makes use of the Metoffer library with some slight tweaks

Installation

  • Put your PI and screen together with a case if needed
  • Set the PI to boot in CLI mode if it isn't already
  • Adjust the backlight brightness to a suitable setting for your location
  • Ensure PyGame is installed
  • Clone this repo (or your version of it) onto the PI
  • Copy config.py.sample to config.py and set values to suit you
  • Adjust ~/.bashrc to include the following line at the end cd /full/path/to/project/folder && python3 clock.py. Adjust for the actual project path
  • Reboot the Pi

On boot you should now see the clock. The backlight timer does not automatically start on boot so you need to touch the screen to turn it off. Subsequently it will turn off after the timeout interval.

Future considerations

  • Make the first forecast tile show recent, observed weather instead of the preceeding forecast period
  • Convert all the display images, fonts, colours and coordinates into a theme file
  • Introduce an alarm clock. This would need sound hardware in addition to much increased use of the touchscreen to turn the alarm on and off and set the alarm time(s)
  • Ability to adjust backlight brightness via a settings interface

In use

About

Display time and weather summary info on small Pi LCD

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages