-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.template.js
59 lines (49 loc) · 2.33 KB
/
config.template.js
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
var config = {
channels: [
{
// URL to log to http://HOST:PORT/middleware.php/data/CHANNELID.json
url: "http://localhost/middleware.php/data/fbfe8d2f-ef6b-4ea1-94d0-b9ebaec4545a.json",
// interval in seconds to wirte the values to the middleware
interval: 15,
impulse : {
// The pulse generating edge: 'rising', 'falling' or 'both'.
edge: 'rising',
// software debounce a button or switch using a timeout. Specified in milliseconds
debounceTimeout: 0,
// GPIO port nummber, not the pin nummner
gpioPort: 17
}
},
{
// to activate 1wire sensors, connect you sensor to GPIO4 and activate the 1wire kernel
// modules, see https://github.com/mvoehringer/gpioLogger for more infos
// URL to log to http://HOST:PORT/middleware.php/data/CHANNELID.json
url: "http://localhost/middleware.php/data/fbfe8d2f-ef6b-4ea1-94d0-b9ebaec4545b.json",
// interval in seconds to wirte the values to the middleware
interval: 15,
oneWire : {
// sensor device numnber, you can finde the numner by enter
// ls /sys/bus/w1/devices/
// on the command line
device: '10-000802b47b33',
// ignore values
// sometimes sensores will return unwanted values for example while initial
ignore: [ 85.00 ],
// at the moment only 'DS18S20' tempature sensors are supported
type: 'DS18S20'
}
}
// {
// gpioPort: 8,
// // URL to log to http://HOST:PORT/middleware.php/data/CHANNELID.json
// url: "http://localhost/middleware.php/data/fbfe8d2f-ef6b-4ea1-94d0-b9ebaec4545b.json"
// // interval in seconds to wirte the values to the middleware
// interval: 5
// // The pulse generating edge: 'rising', 'falling' or 'both'.
// edge: 'rising',
// // software debounce a button or switch using a timeout. Specified in milliseconds
// debounceTimeout: 0
// }
]
};
module.exports = config;