Skip to content

Commit

Permalink
Update cron.sh for non-peak grid usage and heavy A/C use
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonacox committed Jun 13, 2024
1 parent f23a83d commit a95a33f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tools/cron.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,14 @@ if (( $H >= 16 )) && (( $H < 21 )); then
fi
fi
# Evening 9pm to Midnight - Stop using battery if 24h max temp was above 25C
# Evening 9pm to Midnight - Non-peak grid usage
# Stop using battery if 24h max temp was above 25C - Heavy A/C Use
if (( $H >= 21 )) && (( $MAXTEMP > 25 )); then
if (( $(echo "$CUR > $MIN" |bc -l) )); then
change "current"
# Make sure CUR is >= LEVEL and not below MIN
if (( $(echo "$CUR < $LEVEL" |bc -l) )); then
if (( $(echo "$LEVEL > $MIN" |bc -l) )); then
change $LEVEL
fi
fi
fi
Expand Down

0 comments on commit a95a33f

Please sign in to comment.