-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhdc_config.haldor_example-production.json
68 lines (68 loc) · 1.51 KB
/
hdc_config.haldor_example-production.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
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
66
67
68
{
"name": "haldor",
"description": "This is the Haldor configuration file.",
"boot_check_list": {
"Haldor CPU Temp": ["cat /sys/class/thermal/thermal_zone0/temp | tr -d '\\n'"],
"Haldor Uptime": ["uptime | tr -d '\\n'"],
"Haldor Local IP": ["/sbin/ifconfig eth0 | grep inet | awk '{ print $2 }' | cut -d: -f2 | tr -d '\\n'"],
"Haldor Disk Usage": ["df -h | grep -v tmpfs | tail -n +2"],
"Haldor Memory Usage": ["free -h"],
"Haldor uname": ["uname -a | tr -d '\\n'"],
"Haldor ifconfig_eth0": ["/sbin/ifconfig", "eth0"]
},
"acq_io":[
{
"name": "Front Door",
"acType": "SW",
"acObject": 8
},
{
"name": "Pod Bay Door",
"acType": "SW",
"acObject": 11
},
{
"name": "Open Switch",
"acType": "SW_INV",
"acObject": 25
},
{
"name": "Office Motion",
"acType": "PIR",
"acObject": 9
},
{
"name": "Shop Motion",
"acType": "PIR",
"acObject": 10
},
{
"name": "Bay Temp",
"acType": "TEMP",
"acObject": ["/sys/devices/w1_bus_master1/28-3c01d60751f3/w1_slave"]
},
{
"name": "Outdoor Temp",
"acType": "TEMP",
"acObject": ["/sys/devices/w1_bus_master1/28-3c01d60706be/w1_slave"]
},
{
"name": "Temp Power Ena",
"acType": "TEMP_EN",
"acObject": 17
},
{
"name": "Temp Power Fault",
"acType": "TEMP_FAULT",
"acObject": 27
}
],
"long_checkup_freq": 100,
"long_checkup_leng": 5,
"pidfile":"/tmp/haldor.pid",
"gpio_path": "/sys/class/gpio",
"mqtt_broker": "hal",
"mqtt_port": 1883,
"mqtt_timeout": 60,
"loglevel": "WARNING"
}