Fix error
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import os
|
||||
|
||||
from .utilities import runCmd
|
||||
from .utilities import log, runCmd
|
||||
|
||||
|
||||
def findHddIdInNt():
|
||||
|
||||
@@ -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 = {}
|
||||
|
||||
|
||||
@@ -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 = {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user