diff options
Diffstat (limited to 'sb-weather')
-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 |