This is a small collection of modified or new scripts for BlinkinLights.
The weather.py script will show the hourly forecast across the lights. It's modified to use the Tomorrow API, as the original Wunderground seems to be only available for people with weather stations! To use it, you should
- Connect your blinkin lights to USB.
- Create a free account and get your API key from https://www.tomorrow.io/
- Identify the port it's using (for me it was
/dev/ttyACM0) - Export your API keys and the latitude and longitude you want
- Run the script (you likely will need sudo and to pass the environment)
export TOMORROW_KEY=xxxxxxxxxxxxxxxx
export LATLONG="xxx,-xxx"If you aren't using system Python you'll likely find it easier to provide the direct path. In my case I made a virtual environment here so I could install dependencies and then use it:
$ python -m venv env
$ source env/bin/activate
$ pip install -r requirements.txt
$ sudo -E ./env/bin/python weather.py -p /dev/ttyACM0