Giter Site home page Giter Site logo

dscpiaf's Introduction

dscpiaf

Setup PIAF (asterisk) to send alarm events

This project holds a python script sendalarm.py which can be used within asterisk based installations to send alarm notifications via twitter, email or local file. The script is driven by a configuration file which should reside at /root/.alarmconf by default. Copy the script and the include file alarm.inc and change the permission bits to make it an executable or load it by the python interpretter.

Usage: python ./sendalarm.py [-c config_file] [-d alarm_folder] [-o output_file] [-l log_file]

Example configuration file

#Alarm configuration file to post from PiAF
[general]
protocol=ADEMCO_CONTACT_ID
callerid=<callerid defined in asterisk extension>
callername=<callername defined in asterisk extension>
account=<account number in alarm panel>
alarmreceiverconf=/etc/asterisk/alarmreceiver.conf
#payload-type=twitter
payload-type=email

[payload]
consumerkey=<consumer key from dev.twitter>
consumersecret=<consumer secret>
tokenkey=<token key from dev.twitter>
tokensecret=<token secret>

fromemail=from_email
toemail=to_email

[zones]
Zone[1]=Entrance Doors
Zone[2]=Living Area
Zone[3]=Patio Doors
Zone[4]=Bedroom windows
Zone[5]=--NA--
Zone[6]=MBR windows
Zone[7]=
Zone[8]=

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.