Skip to content

Log Premises Equipment (PE) events of SIA-DC-09 standard.

License

Notifications You must be signed in to change notification settings

nhereveri/SIAbroker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SIA node service

Allows you to log Premises Equipment (PE) types of SIA-DC-09 events, like AJAX Security Systems.

  • an MSSQL database
  • broadcast API
  • MySQL 8.0 database
  • log to a file
  • web app

Standard compatibility

Currently the option to configure this server as UDP is not implemented, it only receives non-encrypted TCP connections.

This service act as Central Station Receivers (CSR). Encryption support is mandatory for CSRs. So, this is a non-standard project at this time.

Install

git clone https://github.com/nhereveri/SIAbroker.git
cd SIAbroker
npm i
node server.js --help

Sample config

server:
  port: 65000
  diff:
    negative: -20
    positive: 40
dispatcher:
  -
    type: 'mssql'
    format: 'human'
    user: 'foo'
    password: 'P4$$w0Rd'
    database: 'sia-events-db'
    server: '10.0.2.15'
    port: 1433

Execution

# default config (from config.yml)
node server.js

# specify service port
node server.js --port 65000

# debug messages to console
node server.js --debug

Dispatchers

At the moment it only supports dispatchers type ...

  • console
  • mssql

You can specify the number of dispatchers you need.

dispatcher:
  -
    type: 'mssql'
    format: 'human'
    user: 'user'
    password: '$3cr3t'
    database: 'sia-events'
    server: '127.0.0.1'
    port: 1433
  -
    type: 'mssql'
    format: 'human'
    user: 'other'
    password: '$3cr3t'
    database: 'sia-events-backup'
    server: '190.13.132.109'
    port: 1433
  -
    type: 'console'
    format: 'human'

TODO

  • adding other types of distpatchers
  • use Facade pattern in dispatch function
  • use UDP connections
  • decrypt messages

About

Log Premises Equipment (PE) events of SIA-DC-09 standard.

Resources

License

Stars

Watchers

Forks