New backup 2025-03-13 21:30:06
This commit is contained in:
parent
e316061382
commit
11b484c601
1 changed files with 6 additions and 6 deletions
|
@ -11,12 +11,12 @@ fi
|
|||
|
||||
#cat "${wttr_cache}"
|
||||
|
||||
condition="$(jq -r '.current_condition[0].weatherDesc[0].value' /home/penelope/.cache/wttr.json)"
|
||||
current_temp="$(jq -r '.current_condition[0].temp_F' /home/penelope/.cache/wttr.json)"
|
||||
feels_temp="$(jq -r '.current_condition[0].FeelsLikeF' /home/penelope/.cache/wttr.json)"
|
||||
min_temp="$(jq -r '.weather[0].mintempF' /home/penelope/.cache/wttr.json)"
|
||||
max_temp="$(jq -r '.weather[0].maxtempF' /home/penelope/.cache/wttr.json)"
|
||||
humidity="$(jq -r '.current_condition[0].humidity' /home/penelope/.cache/wttr.json)"
|
||||
condition="$(jq -r '.current_condition[0].weatherDesc[0].value' ${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})"
|
||||
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')"
|
||||
|
||||
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}'
|
||||
|
|
Loading…
Add table
Reference in a new issue