A telegram bot for weather infos
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.rasswareBotConfig
LICENSE
README.md
init.sql
querySensors.sh
rasswareBot.py

README.md

rasswareBot

A telegram bot for weather infos based on a DVB-T USB dongle with the RealtekRTL2832U chip, a Raspberry Pi V2 and the software rtl_433.

Compile rtl_433 on your RaspberryPi

git clone https://github.com/merbanan/rtl_433
cd rtl_433/
autoreconf -i
./configure
make
make install

Install SQLite database

sudo apt-get install sqlite3

Checkout rasswareBot

git clone https://github.com/rassware/rasswareBot.git

Database initialization

Run init.sql for creating the database

Install Telegram/Python framwork 'telepot'

git clone https://github.com/nickoala/telepot.git
cd telepot/
sudo python setup.py install

Add the bash script to a crontab

*/15 * * * * <path to your script>/querySensors.sh > /dev/null 2>&1

Add your bot to the BotFather in Telegram

https://core.telegram.org/bots#3-how-do-i-create-a-bot

Get an API key from OpenWeather (Free service is OK)

http://openweathermap.org/

Get an API key from plot.ly (Free service)

https://plot.ly/

Follow the instructions on the page to get an API key

Update config file

Replace the placeholder with your values.

Start your bot

python rasswareBot.py

All done! Have fun with your new weather bot!