A simple set of Python scripts to inform me of the status of the NYC Subway.
The default configuration is to check the status of the specific subway lines and email me if the status is not GOOD SERVICE.
If you want to set this up for your use, you'll need to:
- Create a (free) Mailgun account, or set up yagmail.
- Add the API keys to a api_secrets.json.nogit file or to your environment. See notifier.py for which things you need to specify.
- Create and edit a launchd file to run run_now.py (or a script calling it) and set to the frequency you want. Alternatively you can set up a cron job or equivalent for this.
The file clock.py is used to set up scheduling in Heroku, allowing this to be run like a cron job but on a cloud server.