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.
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
.
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
python3 app.py
If you discover any security related issues, please email security@garkaklis.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.