Skip to content

Telegram Bot to fetch data about air pollution for city of interest

Notifications You must be signed in to change notification settings

G10xy/city-air-pollution-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Air Quality Telegram Bot

This project is a Telegram bot that provides air quality information for a specified city. It uses the OpenWeatherMap API to fetch data and presents it to users through Telegram messages. The bot can provide current, forecasted, and historical air quality data.

Features

  • Current Air Quality: Get the real-time air quality index and related metrics for a city.
  • Forecasted Air Quality: View the forecasted air quality index and metrics.
  • Historical Air Quality: Retrieve and visualize air quality data from the past week.
  • Visual Representation: The bot generates images to display air quality metrics with color coding based on the Air Quality Index (AQI).

Prerequisites

  • Python 3.x
  • Telegram account and bot token
  • OpenWeatherMap API key

Installation

  1. Clone the Repository:
    git clone https://github.com/yourusername/air-quality-telegram-bot.git
    cd air-quality-telegram-bot
    pip install -r requirements.txt

About

Telegram Bot to fetch data about air pollution for city of interest

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published