/good-bike-weather

a github action that tells me when to ride a bike 🚲

Primary LanguagePython

Github action that tells me when to get outside.

Uses NOAA's weather API and Twilio.

Requires ENV vars:

DESTINATION_PHONE_NUMBER
TWILIO_ACCOUNT_SID
TWILIO_TOKEN

Usage:

usage: weather.py [-h] [--debug] [--cli] noaa_url

positional arguments:
  noaa_url        forecast url at api.weather.gov

options:
  -h, --help      show this help message and exit
  --debug         print all the forecasts to look at and the alert
  --cli           run without sending a push alert

Setup: to find the gridpoint url for your location:

Testing locally: First set all ENV vars

python3 weather.py --cli https://api.weather.gov/gridpoints/LWX/114,80/forecast/hourly