Inky Impression eInk display from Pimoroni driven by a Raspberry Pi Zero (or any other Raspberry Pi) to display a seven day weather forecast.
Based on the original work by Rainer Bunger
The weather information is fetched from OpenWeather:
Here you need to create an account and an API key.
Put the code into a file called apikey.py
You can use the sample file as follows
mv apikey.py.sample apikey.py
nano apikey.py
- api_key = 'your openweathermap API Key'
- lat="your latitude"
- lon="your longtitude"
The Pimoroni Inky Impression display requires a bunch of software to be installed. My recommendation is to follow the description in a Pimoroni tutorial:
The installation is done by executing a bash script, and it takes a while. Everything is installed for Python 2 and 3 which isn't necessary from my point of view, so you might consider deselecting version 2 in the script before running it.
There are two ways to run this code
python3 weather.py
Running this will run this application in a loop and never stop
python3 once.py
Running this will run the code, update the screen and stop. Use this version if you want to put the script in cron job.
Run this the root cron as follows
sudo crontab -e
This will open the crontab file to be edited
* */6 * * * /home/pi/Inky-Impression-Weather-Station/once.py >/dev/null 2>&1
This example will run the update every 6 hours
- The icons are provided by Erik Flowers.
- The font is from David Jonathan Ross.
- Original code by Rainer Bunger
Icons and code table are from Erik Flowers:
For easy access to this tool, I have uploaded pre-convered images, but they are still the oringal authors work.
The font is from David Jonathan Ross:
The weather icons and the font are licensed under SIL OFL 1.1.