@weather_fcst_bot
-
Clone repo
-
pip install -r requirements.txt
(everything was developed under python 3.7.7 ) -
Go to Bot Father and get your Token for Telegram bot
-
Go to
https://console.cloud.google.com/apis/credentials
and find your Google API key -
Go to
https://home.openweathermap.org/api_keys
and find your token for Open Weather provider -
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
}
python3 WeatherBot.py