-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.json
34 lines (32 loc) · 1.56 KB
/
config.json
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
// This is the config file which is used by the dht2csv app.
{
// Specify information about the attached DHT temperature and humidity sensors here.
// The property 'sensors' contains an array of objects.
// Each object describes a sensor.
"sensors": [
// The path and name of the output files with the sensor values are:
// ${sensordataBasepath}/${dataSubdirectory}/${temperatureDataName}.csv and
// ${sensordataBasepath}/${dataSubdirectory}/${humidityDataName}.csv
{
// GPIO pin of sensor.
"pin": 4,
// Sensor type: 11 (DHT11) or 22 (DHT22 or AM2302)
"type": 22,
// Directory, relative to 'sensordataBasepath' where to save the data files.
"dataSubdirectory": "office/",
// Name for the temperature data of the sensor. A .csv file with that name will be created.
"temperatureDataName": "temperature",
// Name for the humidity data of the sensor. A .csv file with that name will be created.
"humidityDataName": "humidity"
}
],
// Base folder path for the sesnsordata csv files. Relative to the directory of this file or absolute path.
"sensordataBasepath": "./sensordata/",
// Unit of the logged temperature measurements. Can be Celsius, Fahrenheit or Kelvin.
"temperatureUnit": "Celsius",
"logger": {
// Verbosity of the log messages. Supported are "OFF", "ERROR", "WARN", "INFO", "DEBUG".
"level": "WARN",
"destinations": ["dht2csv.log", "stderr"]
}
}