Skip to content

A Python script which will listen on a TCP/IP port and forward messages to a HTTP endpoint from a SIA DC-09 protocol supported device

License

Notifications You must be signed in to change notification settings

CreepPork/py-sia-dc-07

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

py-sia-dc-09

A simple Python script that listens on a given TCP ip/port and awaits messages from a SIA DC-09 (basic) protocol supported device.

The script will handle all device communication with the supported device.

After parsing the contents of the TCP message then it will relay the JSON-formatted message to a web server endpoint of your choice. There, you can act upon the contents of the message itself.

Currently only ADM-CID (Adamco Contact ID) messages are supported.

Payload

Example payload:

b'\n9EC40027"ADM-CID"0001L0#1002[#1002|1602 00 001]\r'

Example result:

{
    "sequence_number": "1",
    "reciever_number": "0",
    "line_number": "0",
    "account_number": 1002,
    "event_qualifier": 1,
    "event_code": 602,
    "group_or_partition_number": "00",
    "zone_number_or_user_number": "001"
}

Note: If the line or reciever number is not provided, it will be set to 0.

Installation

You can install the package via Git and the dependencies via pip. You'll need to configure the .env file too:

git clone https://github.com/CreepPork/py-sia-dc-09
pip install -r ./requirements.txt
cp .env.example .env

Usage

python3 app.py

Security

If you discover any security related issues, please email security@garkaklis.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

A Python script which will listen on a TCP/IP port and forward messages to a HTTP endpoint from a SIA DC-09 protocol supported device

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published