Code Monkey home page Code Monkey logo

pifacecad-wdlive's Introduction

pifacecad-wdlive

Copyright © 2015 Wayne D Grant

Licensed under the MIT License

Weather Display Live Clone for PiFace Control and Display (pifacecad). Written in Python.

Overview

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.

alt tag

Requirements

  1. Raspberry Pi
  2. PiFace Control and Display
  3. pifacecad installation for Python 3 (http://piface.github.io/pifacecad/installation.html)
  4. IR Remote control (optional)

Installation

Download the source code for the latest release and unzip it on your Raspberry Pi

Execution

$ cd pifacecad-wdlive
$ python3 pifacecad-wdlive.py [clientraw.txt url]

For example:

$ python3 pifacecad-wdlive.py http://waynedgrant.com/weather/meteohub/clientraw.txt

Controls

  • 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

Error Messages

  • 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

IR Installation

Example Xbox 360 Remote Button Controls

  • 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

Weather Items

  1. Summary (outdoor temperature, outdoor humidity, surface pressure)
  2. Forecast
  3. Outdoor Temperature with Trend
  4. Surface Pressure with Trend
  5. Outdoor Humidity with Trend
  6. Average Wind Speed and Direction
  7. Gust Speed
  8. Daily Rainfall
  9. Rainfall Rate
  10. Dew Point
  11. Wind Chill
  12. Heat Index
  13. Humidex
  14. UV Index
  15. Indoor Temperature and Humidity
  16. Last Update Time

Supported Measurement Units

Temperature

  • Celsius (°C)
  • Fahrenheit (°F)

Surface Pressure

  • Hectopascals (hPa)
  • Inches of Mercury (inHg)
  • Kilopascals (kPa)
  • Millibars (mb)
  • Millimetres of Mercury (mmHg)

Wind Speed

  • Beaufort Scale (Bft)
  • Kilometres per Hour (kph)
  • Knots (kts)
  • Metres per Second (m/s)
  • Miles per Hour (mph)

Wind Direction

  • Cardinal Direction (16 points)
  • Compass Degreess

Rainfall

  • Inches
  • Millimetres

pifacecad-wdlive's People

Contributors

waynedgrant avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.