From 9175b16f05b296000191404b6d8d951ef7c38a32 Mon Sep 17 00:00:00 2001 From: Penelope Gwen Date: Tue, 6 May 2025 14:08:20 -0700 Subject: [PATCH] New backup 2025-05-06 14:08:20 --- de/home/.config/eww/scripts/home/hass_weather | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/de/home/.config/eww/scripts/home/hass_weather b/de/home/.config/eww/scripts/home/hass_weather index 1449929..703f0f7 100755 --- a/de/home/.config/eww/scripts/home/hass_weather +++ b/de/home/.config/eww/scripts/home/hass_weather @@ -4,13 +4,13 @@ hass_weather_cache="${HOME}/.cache/hass_weather.json" update_cache_json(){ weather_summary="$( hass-cli -a states -i sensor.weather_summary | jq -r '.attributes' )" - condition="$( jq '.condition' <<< ""${weather_summary}"" )" - condition_code="$( jq '.condition_code' <<< ""${weather_summary}"" )" - current_temp="$( jq '.current_temp' <<< ""${weather_summary}"" )" - feels_temp="$( jq '.feels_temp' <<< ""${weather_summary}"" )" - min_temp="$( jq '.min_temp' <<< ""${weather_summary}"" )" - max_temp="$( jq '.max_temp' <<< ""${weather_summary}"" )" - humidity="$( jq '.humidity' <<< ""${weather_summary}"" )" + condition="$( jq -r '.condition' <<< ""${weather_summary}"" )" + condition_code="$( jq -r '.condition_code' <<< ""${weather_summary}"" )" + current_temp="$( jq -r '.current_temp' <<< ""${weather_summary}"" )" + feels_temp="$( jq -r '.feels_temp' <<< ""${weather_summary}"" )" + min_temp="$( jq -r '.min_temp' <<< ""${weather_summary}"" )" + max_temp="$( jq -r '.max_temp' <<< ""${weather_summary}"" )" + humidity="$( jq -r '.humidity' <<< ""${weather_summary}"" )" updated="$(date '+%Y-%m-%d, %H:%M')" case "${condition_code}" in