This is a Ruby on Rails application that uses the Nexmo SMS API to check the Israeli Ministry of Health Corona Virus status page for any diffs in the past 24 hours. If there is a diff it sends out an update message by SMS to all those subscribed.
To use this application locally:
bundle exec rails s
** Note: The Nexmo SMS API needs an externally accessible URL to send data to and interact with. For development purposes, ngrok is a good tool. **
To use this application on Herokuu:
Deploy to Herokubutton on the top
scraper:check_site_updatetask using the Heroku Scheduler
The app leverages three environment variables, which you need to provide the values for. As always, please do not commit your
.env file to version control.
You can obtain your Nexmo API credentials and provision a Nexmo virtual phone number from within the Nexmo Dashboard.
The app has one route that is a webhook for the SMS API:
/webhooks/event. From within the Nexmo Dashboard you can edit your virtual phone number settings to provide an externally accessible URL to the API. For example, if you are using ngrok, you would submit something like:
This app is licensed under the MIT License