Displays the weather on an e-ink panel. I don't even like this thing. I built it because a certain major provider of mobile phones killed all weather services on its' operating system, then had major outages in their weather app, and I really needed to know if there's some fucking weather outside.
- A Raspberry Pi. This tutorial was written with a Pi Zero 2 W
- A Waveshare E-Ink hat and display
- A microSD card with the latest Raspian .
- Install the waveshare e-ink library. Full instructions here. This step will also require you to install Pillow
git clone https://github.com/waveshare/e-Paper.git
cd e-Paper/RaspberryPi_JetsonNano/python
sudo python setup.py install
- Customize the
settings.toml
file. You'll need to find your National Weather Service Tile - Run this repo's setup:
python setup.py
. Setup will automatically check and download all missing files. - If you're running this on an embedded device, you may want to add a cron job to run this once an hour. Your
crontab -e
should look something like this:
# run once an hour
0 * * * * python theres-some-weather-outside/weather.py > theres-some-weather-outside/weather.log
Running python weather.py
will display the weather on your device.
If you just want to prototype but don't have a device handy, you can use python weather.py --simulate
, which will dump the image onto preview.png