diff --git a/de/home/.config/eww/scripts/widgets/weather b/de/home/.config/eww/scripts/widgets/weather index 2bb144d..cc6f37b 100755 --- a/de/home/.config/eww/scripts/widgets/weather +++ b/de/home/.config/eww/scripts/widgets/weather @@ -12,6 +12,7 @@ fi #cat "${wttr_cache}" condition="$(jq -r '.current_condition[0].weatherDesc[0].value' ${wttr_cache})" +condition_code="$(jq -r '.current_condition[0].weatherCode' ${wttr_cache})" current_temp="$(jq -r '.current_condition[0].temp_F' ${wttr_cache})" feels_temp="$(jq -r '.current_condition[0].FeelsLikeF' ${wttr_cache})" min_temp="$(jq -r '.weather[0].mintempF' ${wttr_cache})" diff --git a/de/home/.config/eww/scripts/widgets/weather-icon b/de/home/.config/eww/scripts/widgets/weather-icon index 7c3a913..a83b714 100755 --- a/de/home/.config/eww/scripts/widgets/weather-icon +++ b/de/home/.config/eww/scripts/widgets/weather-icon @@ -1,4 +1,4 @@ #!/bin/bash wttr_cache="${HOME}/.cache/wttr.json" -jq -r '.current_condition[0].weatherDesc[0].value' ${wttr_cache} +jq -r '.current_condition[0].weatherCode' ${wttr_cache}