Git Product home page Git Product logo

botija's Introduction

botija

BOT based on telegram for home automation on top of raspberry pi. Because everything is aready done, its a matter of glue some code.

BOT setup

At Telegram App chat @BotFather to create your own BOT, it should give you a token for HTTP API

/newbot

Clone this repo and make a new botija.cfg file based on sample provided, then configure the token and your households

token="333333333:abcdefgABCDEFG_abcdefgABCDEFGabcdefg"
households="111111111 222222222"

Start listen for the first time

./botija.sh listen

Chat with your new BOT, ask him send you status

status

Finally add the listener to your crontab

(crontab -l; echo "@reboot `pwd`/botija.sh listen >> `pwd`/tmp/cron.out 2>&1 &") | crontab -

Camera plugin

Enable your raspicam and test if it works

sudo raspi-config
raspistill -o test1.jpg

Install the plugin

./plug.camera.sh install

Ask your BOT to send you a photo

photo

August plugin

Install the plugin

./plug.august.sh install <offlineKey>

Ask your BOT to unlock your door

unlock door

Nearby plugin

Install the plugin

./plug.nearby.sh install

Edit your botija.cfg file, setting nearby_wifi_mac or nearby_blue_mac parameter

nearby_wifi_mac="11:11:11:11:11:11 ff:ff:ff:ff:ff:ff"
nearby_blue_mac="22:22:22:22:22:22 ee:ee:ee:ee:ee:ee"

Ask your BOT for the last count

nearby count

Livolo plugin

Install the plugin

./plug.livolo.sh install

Hold any light switch button for 5 seconds and wait for a beep, then execute this

./plug.livolo.sh toggle 0

It should beep again, signalling it is paired. You can use any number from 0 to 9

Ask your BOT to toggle lights

toggle light 0

Ask your BOT to turn all off

lights off

botija's People

Contributors

iojancode avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.