Copyright © 2015 Wayne D Grant
Licensed under the MIT License
Weather Display Live Clone for PiFace Control and Display (pifacecad). Written in Python.
pifacecad-wdlive is a simple weather display console.
pifacecad-wdlive can be configured on the command line to read and display data from any WD Live clientraw.txt file available on the web via http. It polls the specified file once a minute updating the pifacecad's display with the new data.
pifacecad-wdlive supports the display of many different weather items and measurement units.
It can optionally work with an IR remote control via LIRC.
- Raspberry Pi
- PiFace Control and Display
- pifacecad installation for Python 3 (http://piface.github.io/pifacecad/installation.html)
- IR Remote control (optional)
Download the source code for the latest release and unzip it on your Raspberry Pi
$ cd pifacecad-wdlive
$ python3 pifacecad-wdlive.py [clientraw.txt url]
For example:
$ python3 pifacecad-wdlive.py http://waynedgrant.com/weather/meteohub/clientraw.txt
- Button 1 - change temperature units
- Button 2 - change pressure units
- Button 3 - change wind speed units
- Button 4 - change wind direction units
- Button 5 - change rainfall units
- Toggle Push - toggle backlight
- Toggle Left - previous weather item
- Toggle Right - next weather item
- CLIENTRAW IS UNAVAILABLE - Cannot fetch clientraw.txt because of an incorrect URL or a networking issue
- CLIENTRAW IS EMPTY - clientraw.txt is empty, possibly because the poll happened when the file was being updated by Weather Display
- CLIENTRAW IS INVALID - Specified URL is not a valid clientraw.txt file
- Setup LIRC on pifacecad - http://piface.github.io/pifacecad/lirc.html#setting-up-the-infrared-receiver
- Copy example lircrc file for Xbox 360 remote from pifacecad-wdlive/.lircrc to home directory
- Modify button assignments to match your remote control
- 1 - change temperature units
- 2 - change pressure units
- 3 - change wind speed units
- 4 - change wind direction units
- 5 - change rainfall units
- OK - toggle backlight
- Left Arrow - previous weather item
- Right Arrow - next weather item
- Summary (outdoor temperature, outdoor humidity, surface pressure)
- Forecast
- Outdoor Temperature with Trend
- Surface Pressure with Trend
- Outdoor Humidity with Trend
- Average Wind Speed and Direction
- Gust Speed
- Daily Rainfall
- Rainfall Rate
- Dew Point
- Wind Chill
- Heat Index
- Humidex
- UV Index
- Indoor Temperature and Humidity
- Last Update Time
- Celsius (°C)
- Fahrenheit (°F)
- Hectopascals (hPa)
- Inches of Mercury (inHg)
- Kilopascals (kPa)
- Millibars (mb)
- Millimetres of Mercury (mmHg)
- Beaufort Scale (Bft)
- Kilometres per Hour (kph)
- Knots (kts)
- Metres per Second (m/s)
- Miles per Hour (mph)
- Cardinal Direction (16 points)
- Compass Degreess
- Inches
- Millimetres