0.1.1 • Published 8 years ago
watchmen-plugin-twilio v0.1.1
watchmen-plugin-twilio
Plugin for Watchmen to send notifications to SMS via Twilio
Installation
Install Watchmen: follow instructions
Install the plugin:
npm install watchmen-plugin-twilio
(Temporary solution)
Edit file webserver/views/service-edit.html
and append after line 99 the following:
<div class="form-group">
<label for="service-alertToPhoneNumbers" class="col-sm-2 control-label">Alert to phone numbers</label>
<div class="col-sm-6">
<input type="text" ng-model="service.alertPhoneNumbers" type="checkbox" class="form-control" id="service-alertToPhoneNumbers" placeholder="+40758638441">
</div>
<div class="descr col-sm-4">List of phone numbers to alert to</div>
</div>
Configuration
Add your Twilio account via environment variables:
export WATCHMEN_AUTH_TWILIO_SID='<your-twillio-sid>'
export WATCHMEN_AUTH_TWILIO_AUTH_TOKEN='<your-twillio-auth-token>'
export WATCHMEN_AUTH_TWILIO_PHONE_NUMBER='<your-twillio-phone-number>'
You should be able to find this information on Twilio as follows:
- SID and Auth Token at this link: https://www.twilio.com/console/account/settings
- phone numbers should be listed here: https://www.twilio.com/console/phone-numbers/dashboard
Usage
Edit/create a service and fill out the new field "Alert to phone numbers" (supports multiple comma-separated phone numbers).