Giter Club home page Giter Club logo

airqualitybot's Introduction

Air Quality Bot

This bot is intended to inform users about air polllution index anywhere they want. The user can share his geolocation or send the city he want to know the index of.

What is air quality index?

An air quality index (AQI) is used by government agencies to communicate to the public how polluted the air currently.

  • 💚 Good (0-50). Air quality is considered satisfactory, and air pollution poses little or no risk.
  • 💛 Moderate (51-100). Air quality is acceptable.
  • 🧡 Unhealthy for Sensitive Groups (101-150). Members of sensitive groups may experience health effects. The general public is not likely to be affected.
  • 💗 Unhealthy (151-200). Everyone may begin to experience health effects.
  • 💜 Very Unhealthy (201-300). Health warnings of emergency conditions. The entire population is more likely to be affected.
  • 🖤 Hazardous (300+). Health alert: everyone may experience more serious health effects.

API/Frameworks

How to use it

If you want to receive updates about air pollution every morning you need to write /subscribe. If you want to stop receiving notification it will be enough to write /unsubscribe. Also you can see levels of AQI by writing /scale.

Installation

  1. Clone this repository
git clone https://github.com/zavad4/AirQualityBot.git
  1. In file config.js change variables like:
const BOT_TOKEN = <YOUR_BOT_TOKEN>;
const API_TOKEN = <YOUR_API_TOKEN>;
const API_URL = <YOUR_API_URL>;.

You can get API_TOKEN here.

Help

Ask questions at telegram and post issues at github.

License

ISC © Elizavieta Zavodovska

airqualitybot's People

Contributors

zavad4 avatar

Stargazers

 avatar Maxim Govoruha avatar Valentyn-Dominskyi avatar Maksym Zavalniuk avatar

Watchers

James Cloos avatar Timur Shemsedinov avatar  avatar

airqualitybot's Issues

Оформление репозитория

  • Добавить eslint и конфигурацию, лучше взять эту: .eslintrc.json
  • Добавить README.md 1-2 страницы описания проекта и кода
  • Добавить лицензию, например MIT
  • Добавить package.json с зависимостями, тем же eslint. Пример: package.json

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.