Dotfiles/.config/polybar/themes/monolit-dracula/polybar-scripts/info-airqualityindex
horhik aec58dae23 split polybar by themes 2020-09-05 14:43:37 +03:00
..
screenshots split polybar by themes 2020-09-05 14:43:37 +03:00
README.md split polybar by themes 2020-09-05 14:43:37 +03:00
info-airqualityindex.sh split polybar by themes 2020-09-05 14:43:37 +03:00

README.md

Script: info-airqualityindex

A script that shows the local World Air Quality Index. It's an indicator for the air pollution.

info-airqualityindex

Dependencies

  • curl
  • jq

Configuration

You need an API token. Request one.

Choose a city and make sure that the result is what you expect. berlin is a valid CITY here: http://aqicn.org/city/berlin/. Or use the map to find a monitoring station near you. germany/berlin/friedrichshain-frankfurter-allee works also as CITY.

If CITY is left empty, the location is retrieved via the Mozilla Location API.

Module

[module/info-airqualityindex]
type = custom/script
exec = ~/polybar-scripts/info-airqualityindex.sh
interval = 600