owms

OpenWeatherMap based weather client
git clone git://git.vgx.fr/owms
Log | Files | Refs

commit 3776c76f44887e9c649948dd98ba75a24b5a7c23
parent 654846246418fba17dc9b7c6ba7ff904d8bd18be
Author: Léo Villeveygoux <l@vgx.fr>
Date:   Tue, 22 Jun 2021 12:09:18 +0200

Use unicode symbols for compactness & readability

Diffstat:
Mowms.sh | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/owms.sh b/owms.sh @@ -55,8 +55,8 @@ now () { # LON="$(echo $COORDS | cut -f2)" onecall $(first_match_coord "$1") |\ jq -rj '.current | .temp, "°C (ressenti : ", .feels_like, "°C) ",'\ -' .pressure, "hPa ", .humidity, "% d'\''humidité, ",'\ -' .clouds, "% de couverture nuageuse, vent :", .wind_speed, "m/s, ", .weather[0].description' +' .pressure, "hPa ", .humidity, "% 💧, ",'\ +' .clouds, "% ☁,, 🍃 :", .wind_speed, "m/s, ", .weather[0].description' echo # add missing newline } @@ -71,13 +71,13 @@ hour () { hours () { onecall $(first_match_coord "$1") |\ jq -r '.hourly[]|(.dt | localtime | strftime("%HH: "))+(.temp|tostring)+"°C, "'\ -' +(.pop|tostring)+" proba. de précipitations, "+(.clouds|tostring)+"% de couverture, "+.weather[0].description' +' +(.pop|tostring)+" proba. de ☔, "+(.clouds|tostring)+"% ☁,, "+.weather[0].description' } week () { onecall $(first_match_coord "$1") |\ - jq -r '.daily[]|(.dt | localtime | strflocaltime("%a %e %b: "))+(.temp.min|tostring)+" à "+(.temp.max|tostring)+"°C, "'\ -' +(.pop|tostring)+" proba. de précipitations, "+.weather[0].description' + jq -r '.daily[]|(.dt | localtime | strflocaltime("%a %e %b: "))+(.temp.min|tostring)+" "+(.temp.max|tostring)+"°C, "'\ +' +(.pop|tostring)+" proba. de ☔, "+.weather[0].description' } if [[ $# -le 0 ]] ; then