diff options
author | awy <awy@awy.one> | 2025-08-24 00:28:14 +0300 |
---|---|---|
committer | awy <awy@awy.one> | 2025-08-24 00:28:14 +0300 |
commit | ef53daaccbddc59e1ed923efbfd0e8d6a87c876a (patch) | |
tree | 38f2932481161233368a172467e32dab70f46ee1 | |
parent | 790cb39afded9da988410f0b92f8bc2707959573 (diff) |
change rainchance to one hour
-rwxr-xr-x | sb-weather | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |