New backup 2025-03-18 15:45:02
This commit is contained in:
parent
2fcc8b9cf0
commit
160837192a
3 changed files with 8 additions and 5 deletions
|
@ -9,7 +9,6 @@
|
||||||
:height 125
|
:height 125
|
||||||
:space-evenly true
|
:space-evenly true
|
||||||
"Eugene, OR | ${json.condition}"
|
"Eugene, OR | ${json.condition}"
|
||||||
"${json.current_temp}°F (feels like ${json.feels_temp}°F)"
|
"${json.current_temp}°F / ${json.humidity}% "
|
||||||
"${json.min_temp}°F / ${json.max_temp}°F"
|
" ${json.max_temp}°F ${json.min_temp}°F"
|
||||||
"${json.humidity}% humidity"
|
" ${json.updated}"))
|
||||||
"Updated: ${json.updated}"))
|
|
||||||
|
|
|
@ -17,6 +17,6 @@ feels_temp="$(jq -r '.current_condition[0].FeelsLikeF' ${wttr_cache})"
|
||||||
min_temp="$(jq -r '.weather[0].mintempF' ${wttr_cache})"
|
min_temp="$(jq -r '.weather[0].mintempF' ${wttr_cache})"
|
||||||
max_temp="$(jq -r '.weather[0].maxtempF' ${wttr_cache})"
|
max_temp="$(jq -r '.weather[0].maxtempF' ${wttr_cache})"
|
||||||
humidity="$(jq -r '.current_condition[0].humidity' ${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}'
|
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}'
|
||||||
|
|
4
de/home/.config/eww/scripts/widgets/weather-icon
Executable file
4
de/home/.config/eww/scripts/widgets/weather-icon
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
wttr_cache="${HOME}/.cache/wttr.json"
|
||||||
|
jq -r '.current_condition[0].weatherDesc[0].value' ${wttr_cache}
|
Loading…
Add table
Reference in a new issue