Skip to content

Получение прогноза погоды с openweathermap и отправка на каналы Telegram

Notifications You must be signed in to change notification settings

daradan/weather_to_tg_chnl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Уведомление о погоде в 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=...

About

Получение прогноза погоды с openweathermap и отправка на каналы Telegram

Topics

Resources

Stars

Watchers

Forks

Languages