Code examples for use with the PiLite add on board for the Raspberry Pi.
Download the code from this repository using
$ sudo apt-get install git
$ git clone https://github.com/martinrgmiller/PiLite.git
A Python base PiLite weather scroller based on the 'PiLiteWeather.py' example from https://github.com/CisecoPlc/PiLite
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
$ python PiLiteSeasonalWeather.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.
PiLite official library Forecast.io Python library
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
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 &