Controlling light from Bot
Oct 16, 2020
An IOT project,using Telegram Bot which conrols light. we require Telegram app,Adafruit.io Google Colaboratory to do project.
Steps to create Telegram Bot
- Open Telegram app and search @BotFather.Now send him a “/start” message
- Send another “/newbot” message,then follow the instruction to setup a name and a user name.
- Your bot is now ready,be secure to save a backup of API token To create a telegram bot
Getting your Adafruit API Key:
- Create an Adafruit Account and login.
- Go to Dashboard and create one.
- Once you have done that you will find Adafruit IO Key on the top right corner of your screen
- Copy the username and Active Key and save it for further use in the programming.
Github Link of my project:
https://github.com/SaiRakesh2001/MajorProject
Working:
- Once you have done with the program ,run all the cells.
- Open the Telegram App on your mobile and enter the chat with your bot and type ‘/on or ‘/off’ depending on your requirement.
- The bot must be able to respond you back and you could see your output on Adafruit Dashboard you created .(Make sure you’ve added your required blocks)
If we add a a status indicator in adafruit.io dashboard.We can observe green light when light is turned ON,Red light when light is turned off.
I used python language (Google Colaboratory) to code the entire project. The last and the most important step, to deploy the app on Heroku.com. I used Heroku cloud platform, connected it with Github and deployed the app.
This is how we create a light controlling bot with Telegram.
Thank you!!