DmitriiDenisov / telegram_weather_bot

Repo for Weather bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

telegram_weather_bot

Bot:

@weather_fcst_bot

Direct link:

https://t.me/weather_fcst_bot

How to Run:

  1. Clone repo

  2. pip install -r requirements.txt (everything was developed under python 3.7.7 )

  3. Go to Bot Father and get your Token for Telegram bot

  4. Go to https://console.cloud.google.com/apis/credentials and find your Google API key

  5. Go to https://home.openweathermap.org/api_keys and find your token for Open Weather provider

  6. In root directory create file tokens.json, put there json with four fileds: telegram, one_call, google, curr_weather (token for one_call and curr_weather will be equal). In format like here:

{
  "telegram": "ABC", // Telegram Bot Token
  "one_call": "ABC", // Token from https://openweathermap.org/. It does not provide current weather that's why need separate for current weather
  "curr_weather": "ABC", // token for weather
  "google": "ABC" // token for Google location identifier 
}
  1. python3 WeatherBot.py

Screenshots:

accessibility text

accessibility text

accessibility text

accessibility text

accessibility text

About

Repo for Weather bot


Languages

Language:Python 100.0%