Fix error

This commit is contained in:
2025-02-05 15:57:40 +08:00
parent 1edf0279c5
commit 98eb01bcb5
4 changed files with 4 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
import os
from .utilities import log, runCmd
from .utilities import runCmd
def findHddIdInNt():
@@ -37,7 +37,6 @@ def findHddTemp(hddDict):
for hddName in sorted(hddDict.keys()):
cmd = f"smartctl -A {hddName} | grep Temperature_Celsius"
hddTempString = runCmd(cmd)
log.logI(f'hddTempString = {hddTempString}')
hddTempList = hddTempString.split(" ")
hddTempList = [item for item in hddTempList if item != ""]
if len(hddTempList) > 9:

View File

@@ -1,6 +1,6 @@
import os
from .utilities import runCmd
from .utilities import log, runCmd
def findHddIdInNt():

View File

@@ -56,7 +56,7 @@ def main(configs):
hddTempExporter = HddTempDataExporter()
cpuFanTempExporter = CpuFanTempDataExporter()
powerStripLivingroomExporter = KasaPowerStripDataExporter("livingroom", "192.168.1.203")
powerStripAtticExporter = KasaPowerStripDataExporter("attic", "192.168.1.203")
powerStripAtticExporter = KasaPowerStripDataExporter("attic", "192.168.1.202")
t315Atticexporter = TapoT315DataExporter(secrect["ip"], secrect["username"], secrect["password"], "鐵皮屋-溫濕度感測器", "attic-sensors")
gaugeDict = {}

View File

@@ -56,7 +56,7 @@ def main(configs):
hddTempExporter = HddTempDataExporter()
cpuFanTempExporter = CpuFanTempDataExporter()
powerStripLivingroomExporter = KasaPowerStripDataExporter("livingroom", "192.168.1.203")
powerStripAtticExporter = KasaPowerStripDataExporter("attic", "192.168.1.203")
powerStripAtticExporter = KasaPowerStripDataExporter("attic", "192.168.1.202")
t315Atticexporter = TapoT315DataExporter(secrect["ip"], secrect["username"], secrect["password"], "鐵皮屋-溫濕度感測器", "attic-sensors")
gaugeDict = {}