Skip to content

tearandfix/mihelectrobot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mihelectrobot

Telegram bot that automatically sends notifications when electricity supply changes. It requires GPIO pin connected to a signal that represents electricity state.

Requirements

  • Orange Pi zero
  • pip install OPi.GPIO
  • pip install python-telegram-bot

Installation

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

Checking the logs

journalctl -f -u mihelectrobot

Run unit tests

python3 -m unittest

About

Electricity state notification telegram bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages