You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

19 lines
571 B

#!/bin/sh
# CONFIG
default_area="EVX" # default city/area to use if none is specified
default_viewer="nomacs" # default image veiwer (change reccomended)
# ----------------------------
if [ "$1" = list ]; then
curl https://pastebin.com/raw/S7QdSXMi
printf "\n"
elif [ -z "$1" ]; then
wget https://radar.weather.gov/lite/N0R/"$default_area"_loop.gif
"$default_viewer" "$default_area"_loop.gif
rm -f "$default_area"_loop.gif
elif [ "$1" != list ]; then
wget https://radar.weather.gov/lite/N0R/"$1"_loop.gif
"$default_viewer" "$1"_loop.gif
rm -f "$1"_loop.gif
fi