You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,10 +38,15 @@ Add the module configuration to your `config.js` file.
38
38
header:'AQI', //choose a header if you like
39
39
config: {
40
40
location:'beijing'// the location to check the index for
41
+
token:''// add your token here
41
42
}
42
43
},
43
44
```
44
45
46
+
### Token
47
+
48
+
To use the WAQI API you need to [request a token](https://aqicn.org/data-platform/token/).
49
+
45
50
### Location
46
51
47
52
Determine the station you want to display. Select a station on the [map](https://aqicn.org/here/) and copy the location part from the URL. For example http://aqicn.org/city/netherland/utrecht/griftpark/ would be `netherland/utrecht/griftpark/`.
0 commit comments