diff options
author | Martin Due <martindue@live.com> | 2023-02-06 11:27:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-06 10:27:27 +0000 |
commit | b634a0730fadeed61c71b2fd62269d5a46d84168 (patch) | |
tree | 5e960bc98502231d0121fcf583d855b292b26213 | |
parent | b7ac4a6d8e0df22b115d41cd6c876e029198cd6c (diff) |
Updated w1sensor.chart.py (#14435)
Changed regex to allow for negative temperatures. Previously negative temperatures did not show up in the chart.
-rw-r--r-- | collectors/python.d.plugin/w1sensor/w1sensor.chart.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/collectors/python.d.plugin/w1sensor/w1sensor.chart.py b/collectors/python.d.plugin/w1sensor/w1sensor.chart.py index c4f847bf0d..66797ced3a 100644 --- a/collectors/python.d.plugin/w1sensor/w1sensor.chart.py +++ b/collectors/python.d.plugin/w1sensor/w1sensor.chart.py @@ -15,7 +15,7 @@ update_every = 5 W1_DIR = '/sys/bus/w1/devices/' # Lines matching the following regular expression contain a temperature value -RE_TEMP = re.compile(r' t=(\d+)') +RE_TEMP = re.compile(r' t=(-?\d+)') ORDER = [ 'temp', |