Skip to content

Red alert (Tzeva Adom) for publishing updates of rocket attacks on Israel

License

Notifications You must be signed in to change notification settings

erasta/RedAlertPy

Repository files navigation

RedAlertPy

Red alert (Tzeva Adom) for publishing updates of rocket attacks on Israel

Python program that tracks Pikud HaOref updates of rocket attacks on Israel. New updates are then published to Mastodon network on https://kishkush.net/@redAlert

Note: this updates are not to be used as realtime emergency data, as latency and bugs could cause delays.

Deploy

git clone https://github.com/erasta/RedAlertPy.git
cd RedAlertPy
pipenv shell && pipenv install
  • Create a mastodon bot user (don't forget to mark it as a bot on settings > profile > This is a bot account)
  • Create an application for that bot (on settings > applications > new application)
  • Copy the file secrets.example.json to secrets.json and fill the details from the application you just created

Run

pipenv run python -m RedAlert --posts --errors-to @<myuser>@host.name &

Output would be stored on last_run.txt
Polygon cache would be on cache.geojson

About

Red alert (Tzeva Adom) for publishing updates of rocket attacks on Israel

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published