Skip to content

martinrgmiller/PiLite

Repository files navigation

PiLite

Code examples for use with the PiLite add on board for the Raspberry Pi.

Installation

Download the code from this repository using $ sudo apt-get install git $ git clone https://github.com/martinrgmiller/PiLite.git

PiLiteSeasonalWeather.py

A Python base PiLite weather scroller based on the 'PiLiteWeather.py' example from https://github.com/CisecoPlc/PiLite

Dependencies

PiLite official library

Installation

Use the following commands to download the PiLite library $ sudo apt-get install python-serial $ wget https://github.com/CisecoPlc/PiLite/blob/master/Python_Examples/PiLiteLib.py

Usage

$ python PiLiteSeasonalWeather.py

PiLiteForecastMessager.py

An alternative Weather scroller with more weather details and forecast capability. It uses data from http://forecast.io/ and requires the associated 'python-forecastio' python library.

Dependencies

PiLite official library Forecast.io Python library

Installation

Install the PiLite library as per PiLiteSeasonalWeather.py. Use the following commands to download the Forecast.io dependencies $ sudo pip install python-forecastio Get your FREE API key from https://developer.forecast.io/, any email address can be used. Edit the code and add your API key in the header

Usage

Get the command line help using: $ python PiLiteForecastMessager.py -h To add user defined locations (supports UK PostCode, ZipCodes, one per line) python PiLiteForecastMessager.py -l locations.txt -m messages.txt To run the script on bootup, edit /etc/rc.local and add the command with fill paths similar to: /home/pi/PiLite/PiLiteForecastMessager.py -l /home/pi/PiLite/locations.txt -m /home/pi/git/PiLite/messages.txt &

About

Code examples for use with the PiLite add on board for the Raspberry Pi.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages