Skip to content

Simple NWS weather forecast display for Inky WHAT and PHAT.

Notifications You must be signed in to change notification settings

klarrieu/inky-weather

Repository files navigation

inky-weather

Simple scripts for displaying National Weather Service forecasts on Inky WHAT and PHAT e-ink displays.

Setup

  1. Clone this repository and navigate to its directory:
git clone https://github.com/klarrieu/inky-weather.git
cd inky-weather
  1. Install inky and/or inkyphat-mods (recommended to update the display more quickly):
pip3 install inky[rpi,example-depends]
git clone https://github.com/mattdesl/inkyphat-mods.git
  1. Make a user_config.txt text file (can modify user_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)

Examples

  • weather.py: Retrieves forecast and updates the display once. This script can be scheduled to run periodically e.g. using crontab.
  • weather-continuous.py: Cycles through detailed forecasts and periodically updates. Can also be scheduled to run continuously from boot with crontab.
  • WeatherScreen.py: Contains class definition used to manage retrieving forecast and updating the display.

Issues

If have any issues using this, or want to add features, feel free to open an issue and reach out to me.

About

Simple NWS weather forecast display for Inky WHAT and PHAT.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published