sirens_tweetbot

October 18, 2023 ยท View on GitHub

Post alerts to a2mi.social/@siren_test_reminders when Ann Arbor or Washtenaw County has a scheduled emergency siren test.

Setup

n.b. The server running this must be set to the Eastern timezone (America/Detroit or America/New York will work), otherwise you'll need to adjust the scheduling in the provided crontab file.

  1. Install mastodon-post. If you want to run it via Docker, you'll need to adjust the provided crontab file accordingly.
  2. Clone this repo to your server.
  3. Copy .env.template to .env and populate it, following the instructions for mastodon-post.
  4. Copy the content of the provided crontab file into your user's crontab, or place it in /etc/crontab.d.
  5. Adjust the SIREN_TEST_REMINDERS_DIR variable in the crontab to reflect the repo's location on the server. This allows mastodon-post to automatically discover the .env file and the cron job to read posts from the messages directory.