Skip to content

Just a Telegram bot sending reminders when it rains.

Notifications You must be signed in to change notification settings

Lange99/TambuMeteo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

A Telegram bot sending reminders when it rains given a location.

Initialization

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
);

Execution

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

About

Just a Telegram bot sending reminders when it rains.

Resources

Stars

Watchers

Forks

Packages

No packages published