
ControlID to Telegram is a Docker Container that sends a text message everytime a door is opened.
It works on a ControlID IDFlex (not sure if it works on other models) and on Telegram Messaging app.
controlid2telegram:
image: gabrielrf/controlid2telegram
environment:
- BOT_TOKEN=
- ALERTS=1,2,3,4,5,6,7,8,9,10,11,12,13
- CONTROLID_IP=
- HOST_IP=
- CONTROLID_USER=
- CONTROLID_PASSWORD=
- WEBHOOK_HOST=0.0.0.0
- WEBHOOK_PORT=5432
- MESSAGE_DESTINATION=
ports:
- 5432:5432
restart: always
BOT_TOKEN: Telegram bot token provided by BotFather.
ALERTS: Categories of alerts that will be sent.
CONTROLID_IP: ControlID device ip.
HOST_IP: Docker host ip.
CONTROLID_USER: ControlID web user.
CONTROLID_PASSWORD: ControlID web user password.
WEBHOOK_HOST: Webhook host ip. Default is 0.0.0.0.
WEBHOOK_PORT: Webhook port. Any number between 1023 to 65535.
MESSAGE_DESTINATION: Telegram User/Group/Channel ID that will receive messages.
First:
pip install flask
pip install pytelegrambotapi
Open index.py and fill the variables.
Then:
python index.py
Pull Requests and issues are always welcome!
@GabrielRF on Telegram.
Content type
Image
Digest
Size
35.5 MB
Last updated
over 7 years ago
docker pull gabrielrf/controlid2telegram