sysfs.conf 818 Bytes
Newer Older
1
global {
2
	mqttPrefix	/FF112233445566778899AABB
3
4
}

5
6
7
8
template_group def1 {
	interval	1000
	minValues	3
	mqttPart	00
9
	path		/sys/devices/virtual/thermal/thermal_zone2/temp
10
11
12
	
	sensor temp0 {
		mqttsuffix	00
13
;		filter		"s/Temperature ([[:digit:]]+)\\.([[:digit:]]+)°C/\\1\\200/"
14
15
16
17
18
19
	}
}

template_group def2 {
	interval	2000
}
20

21
22
23
24
25
26
template_single_sensor def3 {
	interval	1000
	minValues	5
	mqttsuffix	0010
}

27
28
group temp {
	default		def1
29
	path		/sys/devices/virtual/thermal/thermal_zone1/temp
30
	
31
	sensor temp1 {
Alessio Netti's avatar
Alessio Netti committed
32
		skipConstVal	true
33
		mqttsuffix		01
34
	}
35
36
}

37
38
single_sensor freq0 {
	default		def3
39
	path		/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
40
;	filter      s/Frequency=([[:digit:]]+)/\\1/
41
42
}

43
44
group freq {
	default		def2
45
	path		/sys/devices/system/cpu/cpu1/cpufreq/scaling_cur_freq
46
47
48
49
50

	sensor freq1 {
		mqttsuffix	0011
	}
}