/
config.json.example
65 lines (52 loc) · 2.09 KB
/
config.json.example
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
"//": "general settings",
"general": {
"//": "how long to wait after startup for the network & API to become accessible",
"//": "useful if started after boot while the network is still being set up",
"//": "value is in seconds, specify 0 to wait forever until access succeeds",
"startup_timeout": 0,
"//": "number of days after which records will get deleted. use 0 to keep them forever",
"record_days": 0
},
"//": "telegram-related settings",
"telegram": {
"//": "telegram bot authorization token",
"token": "YOUR_TELEGRAM_API_TOKEN",
"//": "telegram IDs of the bot owner(s). only owners can interact with the bot",
"owner_ids": [ YOUR_TELEGRAM_USER_ID ]
},
"//": "DHT sensor settings",
"dht": {
"//": "DHT type (can be either DHT11 or DHT22",
"type": "DHT22",
"//": "GPIO input pin of DHT sensor",
"gpio": 17,
"//": "sensor read intervall in seconds, you can also use 0 for continuous reads",
"//": "(which will read every 2.0 seconds, which is the minimum read interval).",
"//": "each record is about 32 bytes, so an interval of 60 seconds will result in 45 kB per day.",
"read_interval": 60.0,
"//": "outlier detection",
"//": "used to filter out bogus sensor readings",
"outlier_detection": {
"//": "whether to perform outlier detection",
"enable": true,
"//": "how many previously recorded values to use for rolling median computation,",
"//": "only odd values supported!",
"rolling_median_size": 9,
"//": "maximum allowed difference of new values compared to median",
"//": "values with a larger difference will get ignored",
"median_max_diff": 5.0
}
},
"//": "image plotting settings",
"plot": {
"//": "path where the plotted images will be stored, temporarily",
"path": "/tmp/piDhtBot.png",
"//": "width of plotted image in inch, set to 0 to use the default",
"width": 12.8,
"//": "height of plotted image in height, set to 0 to use the default",
"height": 9.6,
"//": "dpi of plotted images",
"dpi": 100
}
}