A Telegram bot sending reminders when it rains given a location.
Clone the repository, install dependencies (use --pre
keyword with python-telegram-bot
).
Persistency is achieved through a sqlite database file called locations.db. The DB is composed by a single table "locations". Structure is very simple:
CREATE TABLE locations(
chat_id PRIMARY KEY,
lat,
lon
);
Highly recommend to run inside Docker. Suggested command is:
docker run -e TELEGRAM_TOKEN="XXX" -e OPENWEATHER_APPID="XXX" -v absolute_local_path:absolute_docker_path tag