Telegram Bot / Group for Pi Pico W & ESP8266

RP2040 based microcontroller boards running MicroPython.
Target audience: MicroPython users with an RP2040 boards.
This does not include conventional Linux-based Raspberry Pi boards.
Post Reply
FeK9
Posts: 33
Joined: Sun Jan 20, 2019 8:19 am

Telegram Bot / Group for Pi Pico W & ESP8266

Post by FeK9 » Fri Sep 23, 2022 4:40 pm

Good Day All

I was looking online for a place to put data from an INA219 a current shunt and power monitor chip, it's found
this device https://www.waveshare.com/pico-ups-a.htm....

When I came across the article in German below are the links in German and a Google translate of it, also the
Github link to it...

It allows remote control it, and receiving data from it (temp & humidity) via a Telegram Bot...

I don't have that particular sensor or LCD, I'm using a ST7789 2.8" Resistive Touch LCD. But I could certainly control
the on board Led of the Pi Pico W. I've not quite fully figured out the two .py files, to send my INA219 data and have control
of it yet...

But soon realised afterwards I could send INA219 data directly to a Telegram Group via the online Telegram Bot from my
scrappy example code, but with no control yet... :)

Code: Select all

response = urequests.post('https://api.telegram.org/bot<YOUR API KEY>/sendMessage?chat_id=-<YOUR GROUP CHAT ID>&text=' + "Volts:{:6.3f} V".format(bus_voltage) + " mA   :{:6.3f} A".format(current/1000))
response.close()
Image.jpeg
Image.jpeg (33.71 KiB) Viewed 144849 times
http://www.elektrobot.net/raspberry-pi- ... cropython/ - German

https://www-elektrobot-net.translate.go ... _tr_pto=sc - Google translate

https://github.com/oguzhanbaser/picoWorkspace

Post Reply