Skip to content

Tiny Telegram Bot to send weather info based on user location

Notifications You must be signed in to change notification settings

ypyl/weather-telegram-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tiny Telegram Bot to send weather info based on user location

Source Code

configuration.py contains the following constants:

  • SUPPORTED_USER = show info for only this user
  • DEFAULT_LOCATION_LON = default longitude
  • DEFAULT_LOCATION_LAT = default latitude
  • TELEGRAM_TOKEN = telegram token
  • WEATHER_API_KEY = weather api key

weather-bot.py contains the logic of the bot

deploy.py is a small helper to deploy the bot to raspberry pi (as I am using it to host the bot)

Dependencies

Helpers to debug on raspberry

See the status of service on raspberry:

systemctl status weather-bot

See logs of the service:

journalctl -u weather-bot.service | tail -n 30

About

Tiny Telegram Bot to send weather info based on user location

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages