Workaround for sending telegram messages...

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
User avatar
chromo23
Normal user
Posts: 821
Joined: 10 Sep 2020, 16:02
Location: germany

Workaround for sending telegram messages...

#1 Post by chromo23 » 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.

corew2020
New user
Posts: 2
Joined: 28 May 2020, 00:55
Contact:

Re: Workaround for sending telegram messages...

#2 Post by corew2020 » 09 Apr 2021, 09:38

thanks, I'll check

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests