Browse Source

Fixed wrong logic statement

patch-fontkeys
Vincenzo-Petrolo 4 years ago
parent
commit
629479ffcd
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      bar-functions/dwm_solar_panel.sh

+ 1
- 1
bar-functions/dwm_solar_panel.sh View File

@ -29,7 +29,7 @@ dwm_solar_panel () {
fi
#checks if it got a session token
if [ "$SID" != "" ] || [ "$SID" != "null" ];
if [ "$SID" != "" ] && [ "$SID" != "null" ];
then
echo $SID > ~/.cache/solar_panel.cache
WATTS=$(curl -s --location --request POST "http://$INVERTER_IP/dyn/getValues.json?sid=$SID" \


Loading…
Cancel
Save