luukderooij / BMI-Notify

Het lezen van de seriële poort van een brandmeldcentrale en een notificatie versturen via Telegram.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install RPI

sudo addgroup --system bminotify sudo adduser --disabled-password --system --home /var/lib/bminotify --gecos "BMI-Notify" --ingroup bminotify bminotify sudo adduser bminotify dialout

sudo mkdir /opt/bminotify && sudo chown bminotify:bminotify /opt/bminotify sudo -u bminotify git clone https://github.com/luukderooij/BMI-Notify.git /opt/bminotify

sudo cp -v /opt/bminotify/scripts/bminotify.service /etc/systemd/system/bminotify.service sudo chown root:root /etc/systemd/system/bminotify.service sudo chmod 644 /etc/systemd/system/bminotify.service

sudo apt install python3-pip sudo -u bminotify python3 -m pip install -r requirements.txt

sudo nano /boot/cmdline.txt remove: console=serial0,115200

And add the following line:

dtoverlay=pi3-disable-bt Then run the following command:

sudo systemctl disable hciuart

sudo systemctl enable bminotify sudo systemctl start bminotify sudo systemctl status bminotify

Update

sudo -u bminotify git pull

About

Het lezen van de seriële poort van een brandmeldcentrale en een notificatie versturen via Telegram.

License:MIT License


Languages

Language:Python 100.0%