AgoAlert

From ago control wiki
Jump to: navigation, search

Contents

AgoAlert

ago control can send some kind of alerts:

  • a tweet on your Twitter account
  • a message on your email box
  • a text message (SMS)
  • a push notifications on your mobile devices

Install package, enable and start daemon

sudo apt-get install agocontrol-alert

Then enable and start the daemon

sudo systemctl enable agoalert.service
sudo systemctl start agoalert.service


Configuration

Agoalert is configured on dedicated web page on agocontrol. Click on Alert in the Applications list web page.

Twitter

Follow instructions on Twitter tab to make agocontrol have access to your twitter account.

SMS

Agocontrol uses SMS provider to send you text messages.

Choosen provider is 12voip because it allows SMS sending anywhere. You have to create a 12voip account and buy credits to use this service. SMS rates are available here.

Mail

Agocontrol can send you email using your own email provider or existing one.

Gmail configuration example:
smtp: smtp.gmail.com:587
sender: a valid email address (an invalid mail address will probably be considered as spam)
login: your gmail address
password: your gmail password (don't forget to generate new token from your google account if you are using 2-step verification authorization)
tls: checked

Push

Agocontrol provides push notifications through different providers:

  • Pushover: compatible with android and ios. Application is not free but there are no other fees
  • Pushbullet: compatible with android, chrome and firefox browsers (using extension). Application is free.
  • Notifymyandroid: compatible with android and growl (mac). Mobile app is free.

Configuration depends on chosen provider. Please follow instructions on push tab.

Push notifications are available for Windows 8 and Windows Phone 8 by using the Pushalot app, setup email provider above and use your assigned @api.pushalot.com email address to push notifications to devices.

Send alert

Alerts need specific parameters according to alert type.

Twitter

  • type:twitter
  • param1: message to tweet

SMS

  • type:sms
  • param1: international phone number (must start with +)
  • param2:message content

Mail

  • type:mail
  • param1: list of recipients (separated by ;)
  • param2: email subject
  • param3: email content

Push

  • pushbullet
    • type:push
    • param1: notification message
    • param2: notification file. If empty note will be sent. If specified (full path, file accessible from agocontrol) a file notification will be sent.
  • pushover:
    • type:push
    • param1: notification message
    • param2: notification priority (see pushover api)
  • notifymyandroid:
    • type:push
    • param1: notification message
    • param2: notification priority (see notifymyandroid api)

Add name for devices and controller

When you are done, check your 127.0.0.1:8008/#config/Devices that alertcontroller is there.
Device Name Room Name Device Type Handler IntID Action
unset unset alertcontroller alert alertcontroller

You have to set names for the alert controller and device(s) in order for them to be visible to the system.
Change name to something as below example.

Device Name	  Room Name	Device Type	Handler	IntID	Action
alertcontroller   unset 	alertcontroller alert 	alertcontroller
pushgateway	  unset	        pushgateway	alert	<<UUDI not shown>>
smtpgateway	  unset 	smtpgateway	alert	<<UUDI not shown>>
Personal tools