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:
- first find the lat,lon of the location
- go to the api https://api.weather.gov/points/39.0366,-76.504 (Arnold, MD)
- dig out the properties/forecastHourly url
Testing locally: First set all ENV vars
python3 weather.py --cli https://api.weather.gov/gridpoints/LWX/114,80/forecast/hourly