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.
- Install mastodon-post. If you want to run it via Docker, you'll need to adjust the provided crontab file accordingly.
- Clone this repo to your server.
- Copy
.env.templateto.envand populate it, following the instructions for mastodon-post. - Copy the content of the provided crontab file into your user's crontab, or place it in
/etc/crontab.d. - Adjust the
SIREN_TEST_REMINDERS_DIRvariable in the crontab to reflect the repo's location on the server. This allowsmastodon-postto automatically discover the.envfile and the cron job to read posts from themessagesdirectory.