There is a bug in brightness calculation in kernel mode.
echo "scale=0;${curBrightness} / ${maxBrightness} * 100" | bc -l
Above line will output just 0. Try:
echo "scale=0;150 / 255 * 100" | bc -l
"100" multiplier should be placed in the beginning as in the fixed code.
Weather
When offline, script outputs plain "℃" without any temperature. I suggest checking if ${WEATHER_INFO} var is empty and exiting with 1 if it is (see code).
Also, I added some colors. Check out yourself if you like it.
Brightness
There is a bug in brightness calculation in kernel mode.
Above line will output just 0. Try:
"100" multiplier should be placed in the beginning as in the fixed code.
Weather When offline, script outputs plain "℃" without any temperature. I suggest checking if
${WEATHER_INFO}
var is empty and exiting with 1 if it is (see code). Also, I added some colors. Check out yourself if you like it.