AirVisual

Dashboard

AirVisual Panels
Last updated: 6 months ago

Downloads: 35

Reviews: 0

  • Screenshot 2020-05-25 at 21.41.45.png
    Screenshot 2020-05-25 at 21.41.45.png

Get your API key from https://www.iqair.com/dashboard/api and replace <AIRVISUAL_API_KEY> in config. Restart Telegraf or his container.

Please, remember - API Key valid for one year! After that time you need to get new one and update configs!

Also, for sure update urls by list of cities you need, and don't forget to update dashboard queries related to your cities configuration.

Collector Configuration Details

[[inputs.http]]

urls = [
    'https://api.airvisual.com/v2/city?city=Kyiv&state=Kyiv&country=Ukraine&key=<AIRVISUAL_API_KEY>',
    'https://api.airvisual.com/v2/nearest_city?lat=50.444177&lon=30.165550&key=<AIRVISUAL_API_KEY>',
    'https://api.airvisual.com/v2/city?city=Irpin&state=Kyiv&country=Ukraine&key=<AIRVISUAL_API_KEY>',
    'https://api.airvisual.com/v2/city?city=Lviv&state=Lviv&country=Ukraine&key=<AIRVISUAL_API_KEY>',
    'https://api.airvisual.com/v2/city?city=Odessa&state=Odessa&country=Ukraine&key=<AIRVISUAL_API_KEY>'
]
data_format = "json"
tag_keys = [ "data_location_coordinates_0", "data_location_coordinates_1", "data_country", "data_state", "data_city" ]
json_string_fields = [ "data_current_pollution_aqius", "data_current_pollution_aqicn" ]
json_time_key = "data_current_pollution_ts"
json_time_format = "2006-01-02T15:04:05Z07:00"
name_override = "airvisual"
Dependencies: