File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 44 dateext
55 compress
66 missingok
7- }
7+ copytruncate
8+ }
Original file line number Diff line number Diff line change @@ -96,13 +96,18 @@ def read_temp():
9696 equals_pos = lines [1 ].find ('t=' )
9797 if equals_pos != - 1 :
9898 temp_string = lines [1 ][equals_pos + 2 :]
99+ logging .debug ("DS18B20 Debug message: Temperature from file: %s" % temp_string )
99100 temp_c = float (temp_string ) / 1000.0
101+ logging .debug ("DS18B20 Debug message: Temperature after calculations:: %s" % temp_c )
100102 data .append (temp_c )
101103 temp .close ()
102104 for i in range (len (data )):
103- chandata .append ({"name" : sens [i ],
105+ chandata .append ({"name" : "Sensor: " + sens [i ],
104106 "mode" : "float" ,
105- "kind " : "Custom" ,
107+ "unit " : "Custom" ,
106108 "customunit" : "C" ,
109+ "LimitMode" : 1 ,
110+ "LimitMaxError" : 40 ,
111+ "LimitMaxWarning" : 35 ,
107112 "value" : float (data [i ])})
108113 return chandata
You can’t perform that action at this time.
0 commit comments