wie-niet / brandmeldbot

Element.io/matrix chat-bot for NSC Solution F2 Fire Alarm Control Panel. (Brandmeld Centrale) (formerly Riot i.m.)
0 stars 1 forks source link
element-io fire-alarm-monitoring-system fire-control matrix riot-im

Chatbot for NSC Solution F2 Fire control unit

Push messagesfrom NSC Solution F2 Fire control unit's serialline RS-232 printer interface to an Element.io/matrix chatroom.

Install

clone files into /opt/brandmeldbot

cd /opt && git clone https://github.com/wie-niet/brandmeldbot.git

python modules

python3 -m pip install matrix_client
python3 -m pip install pyserial

systemd service

Edit if needed, make sure the path and user are set correctly.

install -m 644 systemd.brandmeldbot.service /etc/systemd/system/brandmeldbot.service
systemctl daemon-reload
systemctl enable brandmeldbot

config.ini

Copy defaults form config-default.ini and save tham as config.ini. In order to get a login token, use the ./login.py, or simply configure the username + password in config.ini.