Fix error
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
from .utilities import log, runCmd
|
from .utilities import runCmd
|
||||||
|
|
||||||
|
|
||||||
def findHddIdInNt():
|
def findHddIdInNt():
|
||||||
@@ -37,7 +37,6 @@ def findHddTemp(hddDict):
|
|||||||
for hddName in sorted(hddDict.keys()):
|
for hddName in sorted(hddDict.keys()):
|
||||||
cmd = f"smartctl -A {hddName} | grep Temperature_Celsius"
|
cmd = f"smartctl -A {hddName} | grep Temperature_Celsius"
|
||||||
hddTempString = runCmd(cmd)
|
hddTempString = runCmd(cmd)
|
||||||
log.logI(f'hddTempString = {hddTempString}')
|
|
||||||
hddTempList = hddTempString.split(" ")
|
hddTempList = hddTempString.split(" ")
|
||||||
hddTempList = [item for item in hddTempList if item != ""]
|
hddTempList = [item for item in hddTempList if item != ""]
|
||||||
if len(hddTempList) > 9:
|
if len(hddTempList) > 9:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
from .utilities import runCmd
|
from .utilities import log, runCmd
|
||||||
|
|
||||||
|
|
||||||
def findHddIdInNt():
|
def findHddIdInNt():
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ def main(configs):
|
|||||||
hddTempExporter = HddTempDataExporter()
|
hddTempExporter = HddTempDataExporter()
|
||||||
cpuFanTempExporter = CpuFanTempDataExporter()
|
cpuFanTempExporter = CpuFanTempDataExporter()
|
||||||
powerStripLivingroomExporter = KasaPowerStripDataExporter("livingroom", "192.168.1.203")
|
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")
|
t315Atticexporter = TapoT315DataExporter(secrect["ip"], secrect["username"], secrect["password"], "鐵皮屋-溫濕度感測器", "attic-sensors")
|
||||||
gaugeDict = {}
|
gaugeDict = {}
|
||||||
|
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ def main(configs):
|
|||||||
hddTempExporter = HddTempDataExporter()
|
hddTempExporter = HddTempDataExporter()
|
||||||
cpuFanTempExporter = CpuFanTempDataExporter()
|
cpuFanTempExporter = CpuFanTempDataExporter()
|
||||||
powerStripLivingroomExporter = KasaPowerStripDataExporter("livingroom", "192.168.1.203")
|
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")
|
t315Atticexporter = TapoT315DataExporter(secrect["ip"], secrect["username"], secrect["password"], "鐵皮屋-溫濕度感測器", "attic-sensors")
|
||||||
gaugeDict = {}
|
gaugeDict = {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user