Skip to content

Commit 268b46b

Browse files
committed
Move weather code 39 to showers
Was thunderstorm before and is often used
1 parent 7fc20f1 commit 268b46b

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

izulu

+5-8
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ chooseForecastIcon() {
7676
"27" | "28" | "29" | "30" | "33" | "34" | "44")
7777
echo "forecast_sunnycloud"
7878
;;
79-
"6" | "8" | "9" | "10" | "11" | "12" | "17" | "18" | "35" | "40")
79+
"6" | "8" | "9" | "10" | "11" | "12" | "17" | "18" | "35" | "40" | "39")
8080
echo "forecast_rain"
8181
;;
8282
"31" | "32" | "36")
@@ -85,7 +85,7 @@ chooseForecastIcon() {
8585
"5" | "7" | "13" | "14" | "15" | "16" | "41" | "42" | "43" | "46")
8686
echo "forecast_snow"
8787
;;
88-
"0" | "1" | "2" | "3" | "4" | "37" | "38" | "39" | "45" | "47")
88+
"0" | "1" | "2" | "3" | "4" | "37" | "38" | "45" | "47")
8989
echo "forecast_thunderstorm"
9090
;;
9191
esac
@@ -121,7 +121,7 @@ chooseWallpaper() {
121121
;;
122122

123123
# Rain:
124-
"40")
124+
"40" | "39")
125125
setWallpaper "chance_of_rain" "gen_rain"
126126
;;
127127

@@ -145,7 +145,7 @@ chooseWallpaper() {
145145
setWallpaper "hail" "gen_rain"
146146
;;
147147
# "Thunderstorm")
148-
"4" | "3" | "37" | "38" | "39" | "44" | "45" | "47")
148+
"4" | "3" | "37" | "38" | "44" | "45" | "47")
149149
setWallpaper "thunderstorm" "gen_thunder"
150150
;;
151151

@@ -544,15 +544,12 @@ isDay() {
544544
if [[ -z "$cur_time" ]];then
545545
cur_time="$build_time"
546546
fi
547-
echo $cur_time
548547

549548
local sunrise=$(getSunrise "$api_output")
550549
local sunset=$(getSunset "$api_output")
551550

552551
sunrise=$(makeComparable "$sunrise")
553-
echo $sunrise
554552
sunset=$(makeComparable "$sunset")
555-
echo $sunset
556553

557554
#Sounds strange, but some cities don't build the rss-feed over
558555
#night, the last time a few minutes before sunset. First Workaround:
@@ -833,7 +830,7 @@ while [[ $# -gt 0 ]] ; do
833830
;;
834831

835832
--version)
836-
echo "izulu 0.6.2"
833+
echo "izulu 0.6.3"
837834
exit 0
838835
;;
839836
esac

0 commit comments

Comments
 (0)