You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In sensor.py you can add the fix what is worked for me.
From line nr 27:
def process_sensors(path):
r = {}
for fn in os.listdir(path):
#NEW----------------------
#If the file is corrupted, the script will jump it over
try:
with open(f"{path}/{fn}") as f:
f.read()
except:
continue
#ENDOFNEW-----------------
m = re.match(r"^(fan|in|temp|power)(\d+)_(.*)$", fn)
if not m:
continue
t, i, rd = m.group(1, 2, 3)
sens = f"{t}{i}"
if sens not in r:
r[sens] = {"sensor_type": t}
r[sens][rd] = read_parse(f"{path}/{fn}")
return r
The text was updated successfully, but these errors were encountered:
In sensor.py you can add the fix what is worked for me.
From line nr 27:
The text was updated successfully, but these errors were encountered: