Telegram bot that automatically sends notifications when electricity supply changes. It requires GPIO pin connected to a signal that represents electricity state.
- Orange Pi zero
pip install OPi.GPIO
pip install python-telegram-bot
Copy mihelectrobot directory to /opt
cd /opt
git clone [email protected]:tearandfix/mihelectrobot.git
Install systemd service
cp /opt/mihelectrobot/mihelectrobot.service /lib/systemd/system/
systemctl enable mihelectro.service
systemctl start mihelectro.service
journalctl -f -u mihelectrobot
python3 -m unittest