Update IP

This commit is contained in:
2026-01-28 23:36:39 +08:00
parent 7ac720d8df
commit 33df613807
4 changed files with 10 additions and 4 deletions

View File

@@ -11,7 +11,8 @@ URLS=('awin.one'
'collabora.awin.one'
'storjkh.awin.one'
'rd.awin.one'
'photo.awin.one')
'photo.awin.one'
'pqa.awin.one')
CF_RECORD_IDS=('d67b2a1b3d7cd520b8e8dad2cb522460'
'69dcc0bd619b1a3d4a71458faff2aa50'
'bd397d9779d42c0b92c9c9c47b765769'
@@ -22,7 +23,8 @@ CF_RECORD_IDS=('d67b2a1b3d7cd520b8e8dad2cb522460'
'bde4e54eb87b2d543541dea2c008f0da'
'658a4587ea02f0a65debf8ee832792e7'
'913254da04e8fc31d2a711edcd0cb92e'
'289dcbd1e161e4ccc97dd4b4873c1361')
'289dcbd1e161e4ccc97dd4b4873c1361'
'515df793ecfd3afc56ef20113bfd10b7')
INTERNET_IP=`curl -s http://ipv4.icanhazip.com`
DNS_RECORD_IP=`dig +short "${URLS[0]}" | grep -Eo '([0-9]{1,3}\.){3}[0-9]{1,3}' | awk 'NR==1{print}'`

View File

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

View File

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

4
echo.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
echo "TEST|Arg1: $1, Arg2: $2" > /home/awin/temp/test.txt