Introduction: Raspberry Pi and Telegram Based Simple Home Automation

Picture of Raspberry Pi and Telegram Based Simple Home Automation

This is very easy project...

if you doing what i show you then it's complete in about 40-60min..

let's start !!!

Step 1: Things You Need

1) Raspberry Pi

2) Smartphone (Android/Ios/Windows)

3) Raspberry Pi Accessories

Keyboard,Mouse,Power (charger/Powerbank)

Step 2: Install Telegram and Create BOT !

Picture of Install Telegram and Create BOT !

1

search bot father and type /start

2

type /newbot

3

after you receive message from bot father and you have to create your bot username

4

bot father send you token

this token is unique so it helps you when you work on later !

Step 3: Install Putty !

Picture of Install Putty !

open terminal

1 sudo apt-get install putty

2 After installed you have to click option RUN

3 search puuty and click

4 here open window and type your username/hostname

(The default user is pi , and thepassword is raspberry)

if you change and don't know then open terminal and type

sudo raspi-config

here you change your password,username and etc...

5) after complete task 4... one terminal open on your screen.

6) type username and password.

7) sudo apt-get install python-pip

8) sudo pip install telepot

Step 4: Code in Python

minimize all windows and open file manager and open Telegram Bot folder

you see two files

now open 2nd no file and you see "bot token" in python code

now enter your bot token number and save this file !

Step 5: Last Step

Open terminal Window

1) cd TelegramBot/

2) python telegrambot.py

and now it works !

here is code !

P.S

if you not see any telegrambot.py...then just download my code and place to TelegramBot Folder !

if you face any problems then comment !

thank you guys

Comments

johng630 (author)2017-05-02

Greetings and thanks for the tutorial.

I have trouble with step 4. I can't see the folder TelegramBot on my Pi. Where should I be looking, please?

Best, Auralay

iaprock (author)johng6302017-05-10

then just create new folder and rename !

About This Instructable

799views

7favorites

Bio: College student.. Arduino, Raspberry pi and 3d printer lover !
More by iaprock:Raspberry Pi and Telegram Based Simple Home AutomationVoice control 9W 220-240v BULB using ARDUINO+ANDROID
Add instructable to: