- Notifications
You must be signed in to change notification settings - Fork0
Takes a topic emitted by nut2mqtt and transmits changes to a Telegram chat
License
NotificationsYou must be signed in to change notification settings
rburkholder/mqtt2telegram
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Build:
- need to build and installhttps://github.com/rburkholder/repertory with '-D OU_USE_Telegram=ON'
To Build statically linked application:
git clone https://github.com/rburkholder/mqtt2telegram.gitcd mqtt2telegrammkdir buildcd buildcmake ..makecd ..
Configuration File template (change usernames, passwords, and addresses):
$ cat x64/debug/mqtt2telegram.cfgmqtt_id = readermqtt_host = 127.0.0.1mqtt_username = adminmqtt_password = passwordmqtt_topic = nuttelegram_token = 64713789....telegram_chat_id = 10
- BotFather Token - create bot, obtain token
- populate the telegram_token in choices.cfg
- start application
- from your regular telegram account, send some text to the bot to register chat id
- use menu SendMessage to send a test message to confirm chat id
- chat id will persist in the state file for next startup
- in strategy file, to send message: m_fTelegram( "message text" );