Workaround for sending telegram messages...
Posted: 22 Mar 2021, 15:52
Since some people like to have telegramsupport for espeasy i´ll show you how to do it without...
Its quite simple.
(Espeasy--->Sendtohttp)--->(Thingspeak--->Thinghttp--->React/TimeControl)--->Telegram
To send data from thingspeak to telegram use thinghttp.
Here you enter this:
URL: https://api.telegram.org/bot'bot_token'/sendMessage
Method: POST
HTTP Version: 1.1
Body:
chat_id='Your_Chat_ID'&text=sometext
somemoretext %%channel_'Channel ID'_field_1%%
e.g. Temperature: %%channel_'Channel ID'_field_2%% °C
I use it for error detection
I use one field in thingspeak to just send numbers from my devices(e.g. 1,2,3)
Every nummer is like an "errorcode" and if received from thingspeak i can translate it in human-readable text and forward it to telegram
Therfore i use in Thingspeak React, that triggers on datainsertion dependent on the value a thinghttp event.
Its quite simple.
(Espeasy--->Sendtohttp)--->(Thingspeak--->Thinghttp--->React/TimeControl)--->Telegram
To send data from thingspeak to telegram use thinghttp.
Here you enter this:
URL: https://api.telegram.org/bot'bot_token'/sendMessage
Method: POST
HTTP Version: 1.1
Body:
chat_id='Your_Chat_ID'&text=sometext
somemoretext %%channel_'Channel ID'_field_1%%
e.g. Temperature: %%channel_'Channel ID'_field_2%% °C
I use it for error detection
I use one field in thingspeak to just send numbers from my devices(e.g. 1,2,3)
Every nummer is like an "errorcode" and if received from thingspeak i can translate it in human-readable text and forward it to telegram
Therfore i use in Thingspeak React, that triggers on datainsertion dependent on the value a thinghttp event.