-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.config.yaml
31 lines (28 loc) · 1.81 KB
/
template.config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Create org, bucket & token by navigating to your InfluxDB url from a browser
influx:
url: http://localhost:8086 # location of InfluxDB v2 database
bucket: "iqair" # name of available bucket
token: super-secret-token # token with write permission to bucket
org: "your org in influx" # org of the bucket
main:
logverbosity: INFO # by increasing level of verbosity: FATAL, ERROR, WARNING, INFO, DEBUG
# how long to wait before pulling data again from the device. 0 to only read once.
# Note: IQAir's free plan appears to only refresh data once per hour, so running more often than every 30m is probably wasteful
loop_seconds: 1800 # refresh data every 30m
iqair:
apikeys: [ "xxxxxxxx-yyyy-zzzz-vvvv-wwwwwwwwwwww" ] # obtained from https://www.iqair.com/dashboard/api. Can specify more than 1 API key
api: "http://api.airvisual.com/v2" # should not need to change this entry
measurement_pollution: "pollution" # name to give to pollution measurements in InfluxDB. If empty string, these are not imported
measurement_weather: "weather" # name to give to weather measurements in InfluxDB. If empty string, these are not imported
throttle_retry_wait_seconds: 30 # max amount of time to wait when retrying when being throttled
throttle_retry_max_count: 1 # max amount of times to retry when being throttled
locations: # list of locations to import. Note: IQAir's free plan only allows 5 requests per minute, which translates to 5 locations
# the key (here: BellevueWA, PortlandOR) is free-form text and will be used as tag in InfluxDB
BellevueWA:
country: "USA"
state: "Washington"
city: "Bellevue"
PortlandOR:
country: "USA"
state: "Oregon"
city: "Portland"