Update powerwall.sh
This commit is contained in:
@@ -521,7 +521,7 @@ CHECKPOWER_SERVICE(){
|
||||
battstatus=0
|
||||
# rm -f ${PW_TMPFOLDER}/powerlogger.insert
|
||||
while true; do
|
||||
INVSTATSINFO=$(curl -s "http://10.10.0.61/stats.json")
|
||||
INVSTATSINFO=$(curl -s "https://inv1.scity.us/stats.json")
|
||||
if [ "${INVSTATSINFO}" != "" ]; then
|
||||
[ -f ${PW_TMPFOLDER}/powerlogger.insert ] && lastinsert=$(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/powerlogger.insert)) || lastinsert=100000
|
||||
if [ "$(compgen -G "${PW_TMPFOLDER}/temp.*")" != "" ] || [ "$(compgen -G "${PW_TMPFOLDER}/power.ac.*")" != "" ] || [ "$(compgen -G "${PW_TMPFOLDER}/power.dc.*")" != "" ]; then
|
||||
|
||||
Reference in New Issue
Block a user