Skip to content

Commit 2bbba27

Browse files
authored
docs: add token part to readme (#26)
update readme
1 parent c2e6a64 commit 2bbba27

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,15 @@ Add the module configuration to your `config.js` file.
3838
header: 'AQI', //choose a header if you like
3939
config: {
4040
location: 'beijing' // the location to check the index for
41+
token: '' // add your token here
4142
}
4243
},
4344
```
4445

46+
### Token
47+
48+
To use the WAQI API you need to [request a token](https://aqicn.org/data-platform/token/).
49+
4550
### Location
4651

4752
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/`.

helper.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ module.exports = {
1212
},
1313
start: function () {
1414
console.log('AirQuality helper started ...')
15-
this.token = null
1615
},
1716
loadData: async function (config) {
1817
const self = this

0 commit comments

Comments
 (0)