diff --git a/de/home/.config/eww/modules/home/weather.yuck b/de/home/.config/eww/modules/home/weather.yuck index 3bc4bfa..5ce104c 100644 --- a/de/home/.config/eww/modules/home/weather.yuck +++ b/de/home/.config/eww/modules/home/weather.yuck @@ -9,7 +9,6 @@ :height 125 :space-evenly true "Eugene, OR | ${json.condition}" - "${json.current_temp}°F (feels like ${json.feels_temp}°F)" - "${json.min_temp}°F / ${json.max_temp}°F" - "${json.humidity}% humidity" - "Updated: ${json.updated}")) + "${json.current_temp}°F  / ${json.humidity}% " + " ${json.max_temp}°F  ${json.min_temp}°F" + " ${json.updated}")) diff --git a/de/home/.config/eww/scripts/widgets/weather b/de/home/.config/eww/scripts/widgets/weather index 7afae31..2bb144d 100755 --- a/de/home/.config/eww/scripts/widgets/weather +++ b/de/home/.config/eww/scripts/widgets/weather @@ -17,6 +17,6 @@ feels_temp="$(jq -r '.current_condition[0].FeelsLikeF' ${wttr_cache})" min_temp="$(jq -r '.weather[0].mintempF' ${wttr_cache})" max_temp="$(jq -r '.weather[0].maxtempF' ${wttr_cache})" humidity="$(jq -r '.current_condition[0].humidity' ${wttr_cache})" -updated="$(date -r ${wttr_cache} '+%B %d, %Y at %H:%M')" +updated="$(date -r ${wttr_cache} '+%Y-%m-%d, %H:%M')" jq -n --arg condition "${condition}" --arg current_temp "${current_temp}" --arg feels_temp "${feels_temp}" --arg min_temp "${min_temp}" --arg max_temp "${max_temp}" --arg humidity "${humidity}" --arg updated "${updated}" '{condition: $condition,current_temp: $current_temp,feels_temp: $feels_temp,min_temp: $min_temp,max_temp: $max_temp,humidity: $humidity,updated: $updated}' diff --git a/de/home/.config/eww/scripts/widgets/weather-icon b/de/home/.config/eww/scripts/widgets/weather-icon new file mode 100755 index 0000000..7c3a913 --- /dev/null +++ b/de/home/.config/eww/scripts/widgets/weather-icon @@ -0,0 +1,4 @@ +#!/bin/bash + +wttr_cache="${HOME}/.cache/wttr.json" +jq -r '.current_condition[0].weatherDesc[0].value' ${wttr_cache}