summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorawy <awy@awy.one>2025-08-24 00:28:14 +0300
committerawy <awy@awy.one>2025-08-24 00:28:14 +0300
commitef53daaccbddc59e1ed923efbfd0e8d6a87c876a (patch)
tree38f2932481161233368a172467e32dab70f46ee1
parent790cb39afded9da988410f0b92f8bc2707959573 (diff)
change rainchance to one hour
-rwxr-xr-xsb-weather2
1 files changed, 1 insertions, 1 deletions
diff --git a/sb-weather b/sb-weather
index dfaad4b..f3a5aca 100755
--- a/sb-weather
+++ b/sb-weather
@@ -24,7 +24,7 @@ get_weather_emoji() {
showweather(){
temp=$(jq -r '.current_condition[0].temp_C' $report)
code=$(jq -r '.current_condition[0].weatherCode' $report)
- rainchance=$(jq '.weather[].hourly[].chanceofrain | tonumber' $report | sort -n | tail -n 1)
+ rainchance=$(jq '.weather[0].hourly[0].chanceofrain | tonumber' $report)
emoji=$(get_weather_emoji "$code")
case "$arg" in