Skip to content

reto271/DoorStateByTelegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Door State Updates by Telegram

Sends messages about the door state by telegram

Preparation

  1. sudo apt update && sudo apt upgrade
  2. sudo apt-get install python-pip
  3. sudo pip install telepot
  4. sudo apt install python-gpiozero
  5. Create bot in telegram, use the Chat 'BotFather' and type the command /newbot.
  6. Enter bot name, e.g. "This is my Bot"
  7. Enter bot Id, e.g. this_is_my_bot
  8. You will get a bot ID
  9. Write a file 'cnfg/botId.txt' to the root directory of this project. Write your bot id to this file.

The bot id suffice the following format.

1234567890:aAbBcCdDeEfFgGhHiIjJkKlLmMoOpPqQrRs

Write this ID only to the cnfg/botId.txt.

Acknowledgments

To create a bot and send some messages I found a useful description. See https://www.instructables.com/id/Set-up-Telegram-Bot-on-Raspberry-Pi/. Many thanks to NickL17.

About

Sends messages about the door state by telegram

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published