Alerts via NTFY before freezing, rainy, or tornadoesque weather.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Josh McFarland af3f41448e Finished main functionality. 1 month ago
.config.template.ini Finished main functionality. 1 month ago
README.md Finished main functionality. 1 month ago
index.php Finished main functionality. 1 month ago
sample.sql Finished main functionality. 1 month ago

README.md

ntfy / OpenWeatherMap custom alerter

This program is for altering via notification in case of severe weather.

It was created using open source and free software.

It may be used, shared, or modified freely with no restrictions.

Rain, freezing temperatures, and tornado (high wind) events are currently configured.

An sqlite3 database (weather.db) is used so it doesn't annoy you with the same alert more than once every 24 hours.

A sample.sql file is included to set up the database for you.

Historic forecast data is kept in the database for future use/analysis.

The exact text of the alerts are kept in the DB, as well as when the notifications are sent.

This is best run as a regularly scheduled script (ala cron).

Requirements:

php 8.1 or >

ntfy (preferably your own server)

OpenWeatherMap API key (free tier as of 12/31/2022)