update
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
VERS='2.8.10-12012024'
|
VERS='2.8.11-12012024'
|
||||||
|
|
||||||
noheader=' update service dailytemp confsync -r -report test '
|
noheader=' update service dailytemp confsync -r -report test '
|
||||||
|
|
||||||
|
|||||||
16
powerwall.sh
16
powerwall.sh
@@ -751,6 +751,20 @@ CONFSYNC(){
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UPDATE_TINYTUYA_SERVER(){
|
||||||
|
TTS_FLDR=/opt/tinytuya-server
|
||||||
|
if [ ! -f /opt/raspiBackup.running ]; then
|
||||||
|
if [ -d ${TTS_FLDR}/devices.json ]; then
|
||||||
|
docker stop tinytuya-server
|
||||||
|
rm -Rf ${TTS_FLDR}/devices.json
|
||||||
|
fi
|
||||||
|
python3 -m tinytuya wizard -y -no-poll -credentials-file ${TTS_FLDR}/tinytuya.json -raw-response-file ${TTS_FLDR}/tuya-raw.json -device-file ${TTS_FLDR}/devices.json
|
||||||
|
sleep 1s
|
||||||
|
docker restart tinytuya-server
|
||||||
|
fi
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
DOWNLIST(){
|
DOWNLIST(){
|
||||||
DOWN_LIST=`find ${PW_TMPFOLDER}/ -maxdepth 1 -iname "*.down"`
|
DOWN_LIST=`find ${PW_TMPFOLDER}/ -maxdepth 1 -iname "*.down"`
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
@@ -1025,6 +1039,8 @@ fi
|
|||||||
average) AVERAGETEMP ${2} ${3} ${4};;
|
average) AVERAGETEMP ${2} ${3} ${4};;
|
||||||
cooldown) COOLDOWN_SRVRM;;
|
cooldown) COOLDOWN_SRVRM;;
|
||||||
|
|
||||||
|
tinytuya-update) UPDATE_TINYTUYA_SERVER;;
|
||||||
|
|
||||||
dl|downlist) DOWNLIST;;
|
dl|downlist) DOWNLIST;;
|
||||||
|
|
||||||
oldhelp)
|
oldhelp)
|
||||||
|
|||||||
Reference in New Issue
Block a user