Python + telegram bot + blynk = love)

I like Blynk and also I like telegram. I wrote a telegram bot in python which helps me managing my IoT projects at home. You can managing different progects in one menu. Watch a demo:

demo

Python

  • Install libs:
pip install python-telegram-bot
pip install blynkapi
  • Copy template python code from GitHub

Create telegram bot

Blynk

  • Create project link
  • Add hardware link
  • Get auth token and copy it to python program blynkbot.py as var my_project
  • Create or modify objects in blynkbot.py (k_amp_power, k_amp_src, k_light)
  • Run your bot ./blynkbot.py

Details

Issue

  • Can’t talk to bot via Google voice. issue
  • Doesn’t check hardware connection status before send a value to Blynk API.
3 Likes

Wow. Nice. I also wanted to created bot for slack but never had a time to make it :slight_smile:.

@Dmitriy I was thinking today about a Python shell widget? Any chance?

Slack also have a good lib in python) but not so powerful as telegram.