diff --git a/bar-functions/dwm_solar_panel.sh b/bar-functions/dwm_solar_panel.sh index b966fae..489159f 100755 --- a/bar-functions/dwm_solar_panel.sh +++ b/bar-functions/dwm_solar_panel.sh @@ -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" \