Skip to content

Latest commit

 

History

History
63 lines (44 loc) · 1.63 KB

readme.md

File metadata and controls

63 lines (44 loc) · 1.63 KB

Quick Air ☁️

Check air quality near you quickly, using Airly API

Build Status XO code style


Highlights

  • Built with modern technologies
  • Great performance
  • Shows data in a friendly way
  • Utilizes the airly package
  • Caches data
  • Works offline

Development

Hosted with now Δ

First of all, you will need Airly API key. Get it here for free.

You should then export the AIRLY_KEY environment variable.

# Start in development mode
$ AIRLY_KEY=yourapikey npm run dev

# Build for production
$ AIRLY_KEY=yourapikey npm run build

NOTE: If you are using now dev command and/or you want to deploy this app to Zeit Now, create a .env.build file in the root directory and place the AIRLY_KEY variable there

How it works?

After clicking the "Check air quality" button, the application asks for location access, tries to find the nearest air quality sensor and retrieve data about PM2.5 and PM10. It then classifies the air quality using AIRLY CAQI and prepares charts with pollution forecast 😄

Country coverage

At the time of writing this, Airly has sensors in the following countries:

  • Poland
  • Germany
  • Romania
  • Denmark
  • United Kingdom
  • France
  • Nederlands
  • Belgium
  • Switzerland
  • Italy
  • Spain
  • Greece
  • Ukraine
  • United Arab Emirates
  • Georgia

License

MIT