Simple scripts for displaying National Weather Service forecasts on Inky WHAT and PHAT e-ink displays.
- Clone this repository and navigate to its directory:
git clone https://github.com/klarrieu/inky-weather.git
cd inky-weather
- Install
inky
and/orinkyphat-mods
(recommended to update the display more quickly):
pip3 install inky[rpi,example-depends]
git clone https://github.com/mattdesl/inkyphat-mods.git
- Make a
user_config.txt
text file (can modifyuser_config_example.txt
) with your email (for NWS API headers) and desired forecast location(lat, lon)
:
user_email: 'username@example.com'
location: (39.123, -120.456)
weather.py
: Retrieves forecast and updates the display once. This script can be scheduled to run periodically e.g. usingcrontab
.weather-continuous.py
: Cycles through detailed forecasts and periodically updates. Can also be scheduled to run continuously from boot withcrontab
.WeatherScreen.py
: Contains class definition used to manage retrieving forecast and updating the display.
If have any issues using this, or want to add features, feel free to open an issue and reach out to me.