Skip to content

Latest commit

 

History

History
50 lines (48 loc) · 1.55 KB

README.md

File metadata and controls

50 lines (48 loc) · 1.55 KB

Уведомление о погоде в Telegram

Работу скрипта можно посмотреть тут:

Скрипт уведомляет о прогнозе погоды Астаны и Алматы (можно настроить и на другие города). Информацию о прогнозе погоды получает из OpenWeatherMap.

Установка и настройка

Клонируем репозитории

git clone https://github.com/daradan/weather_to_tg_chnl.git

Устанавливаем библиотеки

pip install -r requirements.txt

Создаем файл .env и заполняем свои данные

API_ID=...
TG_TOKEN=...
USER_AGENT=...
TG_CHANNEL_ASTANA=@...
TG_CHANNEL_ALMATY=@...
TG_CHANNEL_ERROR=...

Telegram weather notification

You can see how the script works here:

This script notifies you about the weather in Astana and Almaty (can be configured for other cities). It gets information about the weather forecast from OpenWeatherMap.

Installation and setup

Clone repositories

git clone https://github.com/daradan/weather_to_tg_chnl.git

Installing libraries

pip install -r requirements.txt

Create file .env and fill in your data

API_ID=...
TG_TOKEN=...
USER_AGENT=...
TG_CHANNEL_ASTANA=@...
TG_CHANNEL_ALMATY=@...
TG_CHANNEL_ERROR=...