This is a simple program that tests if a URL is available and txt's you if it isn't
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install twilio_test
Set environment variables such as the following;
Get this from your twilio account
$ export ACCOUNT_SID='...' $ export AUTH_TOKEN='...'
This is your twilio phone number
$ export TWILIO_SENDER='+...'
This is who you want to send the message to
$ export TWILIO_RECEIVER='+...'
The host to test
$ export IP_OR_FQDN='http://google.com'
If you update the pingtest script you can set a cron like job based on rufus-scheduler
$ export TEST_INTERVAL='1m'
- Fork it ( https://github.com/johnrizzo1/twilio_test/fork )
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create a new Pull Request