summaryrefslogtreecommitdiffstats
path: root/.local/bin/statusbar/sb-doppler
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2022-10-21 07:49:40 -0400
committerLuke Smith <luke@lukesmith.xyz>2022-10-21 07:49:40 -0400
commit130e200da13b9322bddd89381a39ed0406a01b4b (patch)
tree26b19b792c021c7c44516320d0577e4bdc1fab3a /.local/bin/statusbar/sb-doppler
parentb95276922ed2a16aaec70f9409e5ab492152b1d3 (diff)
downloadeibhear-130e200da13b9322bddd89381a39ed0406a01b4b.tar.gz
eibhear-130e200da13b9322bddd89381a39ed0406a01b4b.tar.zst
eibhear-130e200da13b9322bddd89381a39ed0406a01b4b.zip
url update, add cont-us, non-wide char for doppler
Diffstat (limited to '.local/bin/statusbar/sb-doppler')
-rwxr-xr-x.local/bin/statusbar/sb-doppler7
1 files 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 πŸŒ