World Air Quality Index
This block will show the World Air Quality Index widgets.
See: https://aqicn.org/
A WAQI block can be configured as follows:
//example for Amsterdam, large
blocks['My WAQI']= {
type: 'waqi',
layout: 'large',
city: 5771
};
Parameters
Parameter |
Description |
---|---|
type |
|
width |
Set the width (1 to 12) |
layout |
choose from ‘xsmall’,’small’,’large’,’xlarge’,’xxl’
'small' : Use small layout |
city |
WAQI city code. See below |
Usage
City code
To find the right city code browse to https://aqicn.org/
There find your city.
Then scroll to the bottom and click on ‘Wordpress’ within the Air Quality Widget section.
Then within the widget code look for the city number:
Layout
The following layout options are supported:
xsmall
small
large
xlarge
xxl
Below an example of all the layout options: