0.1.1 • Published 8 years ago

watchmen-plugin-twilio v0.1.1

Weekly downloads
10
License
-
Repository
github
Last release
8 years ago

watchmen-plugin-twilio

Plugin for Watchmen to send notifications to SMS via Twilio

Installation

  1. Install Watchmen: follow instructions

  2. 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:

Usage

Edit/create a service and fill out the new field "Alert to phone numbers" (supports multiple comma-separated phone numbers).

0.1.1

8 years ago

0.1.0

8 years ago