From 130e200da13b9322bddd89381a39ed0406a01b4b Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Fri, 21 Oct 2022 07:49:40 -0400 Subject: [PATCH] url update, add cont-us, non-wide char for doppler --- .local/bin/statusbar/sb-doppler | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.local/bin/statusbar/sb-doppler b/.local/bin/statusbar/sb-doppler index eef464b..7573c98 100755 --- a/.local/bin/statusbar/sb-doppler +++ b/.local/bin/statusbar/sb-doppler @@ -6,7 +6,8 @@ secs=600 # Download a new doppler radar if one hasn't been downloaded in $secs s radarloc="${XDG_CACHE_HOME:-$HOME/.cache}/radar" doppler="${XDG_CACHE_HOME:-$HOME/.cache}/doppler.gif" -pickloc() { chosen="$(echo "US: Northeast +pickloc() { chosen="$(echo "US: CONUS: Continental United States +US: Northeast US: Southeast US: PacNorthWest US: PacSouthWest @@ -255,7 +256,7 @@ getdoppler() { loc=$(cut -c 4- "$radarloc") notify-send "🌦️ Doppler RADAR" "Pulling most recent Doppler RADAR for $loc." case "$cont" in - "US") curl -sL "https://radar.weather.gov/ridge/lite/${loc}_loop.gif" > "$doppler" ;; + "US") curl -sL "https://radar.weather.gov/ridge/standard/${loc}_loop.gif" > "$doppler" ;; "EU") curl -sL "https://api.sat24.com/animated/${loc}/rainTMC/2/" > "$doppler" ;; "AF") curl -sL "https://api.sat24.com/animated/${loc}/rain/2/" > "$doppler" ;; "DE") loc="$(echo "$loc" | tr "[:upper:]" "[:lower:]")" @@ -276,4 +277,4 @@ After $secs seconds, new clicks will also automatically update the doppler RADAR 6) "$TERMINAL" -e "$EDITOR" "$0" ;; esac -echo πŸ—ΊοΈ +echo πŸŒ