From 6d075ba36535c8be778d3aeb6c71cf6524e30e8a Mon Sep 17 00:00:00 2001 From: "G. Matthew Fricke" Date: Wed, 17 Oct 2018 15:42:52 -0600 Subject: [PATCH] Updated Path to temps On recent distributions (Centos7 and Ubuntu 16) the path does not include the device directory. --- system/hwmon/python_modules/hwmon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/hwmon/python_modules/hwmon.py b/system/hwmon/python_modules/hwmon.py index 6d0f5962..c4360415 100755 --- a/system/hwmon/python_modules/hwmon.py +++ b/system/hwmon/python_modules/hwmon.py @@ -16,7 +16,7 @@ def metric_init(params): sensors = sorted(glob.glob(os.path.join(root, 'hwmon*'))) for s in sensors: - temps = glob.glob(os.path.join(s, 'device/temp*_input')) + temps = glob.glob(os.path.join(s, 'temp*_input')) # dict values are default labels if no label files exist probes = dict(zip(temps, [os.path.basename(x) for x in temps]))