https://github.com/thiswillbeyourgithub/weather_notifier
Cron friendly python script to query wttr.in for rain then send a notification on your phone using ntfy.sh
https://github.com/thiswillbeyourgithub/weather_notifier
Last synced: 7 months ago
JSON representation
Cron friendly python script to query wttr.in for rain then send a notification on your phone using ntfy.sh
- Host: GitHub
- URL: https://github.com/thiswillbeyourgithub/weather_notifier
- Owner: thiswillbeyourgithub
- License: gpl-3.0
- Created: 2024-03-17T13:21:38.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-06T19:52:54.000Z (over 1 year ago)
- Last Synced: 2025-02-09T06:43:10.671Z (about 1 year ago)
- Language: Python
- Size: 40 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Weather Notifier
Cron friendly python script to query [wttr.in](https://github.com/chubin/wttr.in) for rain then send a notification on your phone using [ntfy.sh](https://ntfy.sh/). Also tells you if the temperature of each of the next 3 days will be different than the average over the previous X days.
## Usage
* `python -m pip install -r requirements.txt`
* `python wttr_notifier.py --location London --ntfy_url https://ntfy.sh/[YOURTOKEN]`
## Cron line
`0 8 * * * cd /YOUR/PATH/wttr_notifier/ && python wttr_notifier.py --location "London" --ntfy_url https://ntfy.sh/[YOURTOKEN]`
`0 18 * * * cd /YOUR/PATH/wttr_notifier/ && python wttr_notifier.py --location "London" --ntfy_url https://ntfy.sh/[YOURTOKEN]`