Update IP
This commit is contained in:
6
ddns.sh
6
ddns.sh
@@ -11,7 +11,8 @@ URLS=('awin.one'
|
|||||||
'collabora.awin.one'
|
'collabora.awin.one'
|
||||||
'storjkh.awin.one'
|
'storjkh.awin.one'
|
||||||
'rd.awin.one'
|
'rd.awin.one'
|
||||||
'photo.awin.one')
|
'photo.awin.one'
|
||||||
|
'pqa.awin.one')
|
||||||
CF_RECORD_IDS=('d67b2a1b3d7cd520b8e8dad2cb522460'
|
CF_RECORD_IDS=('d67b2a1b3d7cd520b8e8dad2cb522460'
|
||||||
'69dcc0bd619b1a3d4a71458faff2aa50'
|
'69dcc0bd619b1a3d4a71458faff2aa50'
|
||||||
'bd397d9779d42c0b92c9c9c47b765769'
|
'bd397d9779d42c0b92c9c9c47b765769'
|
||||||
@@ -22,7 +23,8 @@ CF_RECORD_IDS=('d67b2a1b3d7cd520b8e8dad2cb522460'
|
|||||||
'bde4e54eb87b2d543541dea2c008f0da'
|
'bde4e54eb87b2d543541dea2c008f0da'
|
||||||
'658a4587ea02f0a65debf8ee832792e7'
|
'658a4587ea02f0a65debf8ee832792e7'
|
||||||
'913254da04e8fc31d2a711edcd0cb92e'
|
'913254da04e8fc31d2a711edcd0cb92e'
|
||||||
'289dcbd1e161e4ccc97dd4b4873c1361')
|
'289dcbd1e161e4ccc97dd4b4873c1361'
|
||||||
|
'515df793ecfd3afc56ef20113bfd10b7')
|
||||||
|
|
||||||
INTERNET_IP=`curl -s http://ipv4.icanhazip.com`
|
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}'`
|
DNS_RECORD_IP=`dig +short "${URLS[0]}" | grep -Eo '([0-9]{1,3}\.){3}[0-9]{1,3}' | awk 'NR==1{print}'`
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
from .utilities import log, runCmd
|
from .utilities import runCmd
|
||||||
|
|
||||||
|
|
||||||
def findHddIdInNt():
|
def findHddIdInNt():
|
||||||
|
|||||||
@@ -55,7 +55,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.204")
|
||||||
powerStripAtticExporter = KasaPowerStripDataExporter("attic", "192.168.1.202")
|
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