This commit is contained in:
2024-02-05 18:11:18 -06:00
parent 1e2dd29eec
commit acb2a8aa52
2 changed files with 3 additions and 1 deletions

View File

@@ -31,7 +31,8 @@ PWO_START(){
TESTMODE=""
fi
upsinfo=$(upsc CP1500PFCLCD)
# upsinfo=$(upsc CP1500PFCLCD)
upsinfo=$(upsc offsite-ups)
if [ "$(echo "${upsinfo}" | grep 'input.voltage:' | sed 's/.*: //')" != "" ]; then
rm -f ${PW_TMPFOLDER}/power.ups.losscomm
OFFSITE_VOLTIN=$(echo "${upsinfo}" | grep 'input.voltage:' | sed 's/.*: //')

View File

@@ -718,6 +718,7 @@ GET_SNAPSHOTS(){
CONFSYNC(){
# rsync -az --timeout=3 ${PW_FOLDER}/settings.conf root@10.2.1.1:${PW_FOLDER}/ & >/dev/null 2>&1
rsync -az --timeout=3 ${PW_FOLDER}/settings.conf root@${PW_OFFSITE_MONITOR}:${PW_FOLDER}/ & >/dev/null 2>&1
rsync -az --timeout=3 ${PW_FOLDER}/settings.conf root@10.10.10.50:/opt/idssys/nodemgmt/conf/powerwall.settings.conf & >/dev/null 2>&1
}