Skip to content

rassware/rasswareBot

Repository files navigation

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

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.

Create a virtual environment

python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip

Start your bot

source .venv/bin/activate
python rasswareBot.py

All done! Have fun with your new weather bot!

About

A telegram bot for weather infos

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published