GithubHelp home page GithubHelp logo

maps2002 / alarmserver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from juggie/alarmserver

0.0 1.0 0.0 460 KB

Envisalink 2DS/3/4 Alarm Server (Proxy & HTTP/JSON)

Python 36.68% JavaScript 53.15% CSS 4.93% HTML 5.24%

alarmserver's Introduction

This is still beta software.

The ssl certificates that are provided are intended for demo purposes only.
Please use openssl to generate your own. A quick HOWTO is below.

As with any project documentation is key, there is plenty more to go in here and it will hopefully be soon!

Config: Please see the alarmserver-example.cfg and rename to alarmserver.cfg and customize to requirements.

OpenSSL Certificate Howto

To generate a self signed cert issue the following in a command prompt: openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout server.key -out server.crt

Openssl will ask you some questions. The only semi-important one is the 'common name' field. You want this set to your servers fqdn. IE alarmserver.example.com.

If you have a real ssl cert from a certificate authority and it has intermediate certs then you'll need to bundle them all up or the webbrowser will complain about it not being a valid cert. To bundle the certs use cat to include your cert, then the intermediates (ie cat mycert.crt > combined.crt; cat intermediates.crt >> combined.crt)

Dependencies:

On windows, pyOpenSSL is required. http://pypi.python.org/pypi/pyOpenSSL

REST API Info

/api

  • Returns a JSON dump of all currently known states

/api/alarm/arm

  • Quick arm

/api/alarm/armwithcode?alarmcode=1111

  • Arm with a code
    • Required param = alarmcode

/api/alarm/stayarm

  • Stay arm, no code needed

/api/alarm/disarm

  • Disarm system
    • Optional param = alarmcode
    • If alarmcode param is missing the config file value is used instead

/api/pgm

  • Activate a PGM output:
    • Required param = pgmnum
    • Required param = alarmcode

/api/refresh

  • Refresh data from alarm panel

/api/config/eventtimeago

  • Returns status of eventtimeago from the config file

alarmserver's People

Contributors

0xjairo avatar gschrader avatar hinathan avatar juggie avatar kholloway avatar leaberry avatar maps2002 avatar rct avatar the-right-solution avatar

Watchers

 avatar

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.