diff options
| author | stkhan <personal@slickd.xyz> | 2024-05-06 13:21:52 -0500 |
|---|---|---|
| committer | stkhan <personal@slickd.xyz> | 2024-05-06 13:21:52 -0500 |
| commit | 11869ffbf373829d48df981f9890f948681b7e8e (patch) | |
| tree | 7a7c66d865ed18c3dd6f4f0a8567d8e958b52b6f /nws | |
| parent | 7244d3a157a79d44f8cd19181880b62dbd2d11ec (diff) | |
update radar
Diffstat (limited to 'nws')
| -rwxr-xr-x | nws | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -34,11 +34,12 @@ get_location() { } show_radar() { - mpv --loop-file=inf "https://radar.weather.gov/ridge/standard/${area1}_loop.gif" -} - -show_full_radar() { - mpv --loop-file=inf "https://radar.weather.gov/ridge/standard/CONUS_loop.gif" + case $radar_choice in + "1") mpv --loop-file=inf "https://radar.weather.gov/ridge/standard/${area1}_loop.gif";; + "2") mpv --loop-file=inf "https://radar.weather.gov/ridge/standard/${area3}_loop.gif";; + "3") mpv --loop-file=inf "https://radar.weather.gov/ridge/standard/CONUS_loop.gif";; + *) echo "You can only choose from 1 to 3." +esac } show_alerts() { @@ -129,8 +130,7 @@ get_forecast() { help() { echo "nws" - echo " --full-radar: shows radar of entire US" - echo " --radar: shows local radar" + echo " --radar (1,2,3): shows local radar" echo " --spc: shows storm predictions" echo " --retrieve-counties: shows county ids" echo " --ca: shows number of alerts" @@ -139,8 +139,8 @@ help() { echo " -f: shows local forecast" } cleanup +radar_choice=$2 case $1 in - "--full-radar") show_full_radar;; '--radar') show_radar;; '--spc') show_spc;; '--retrieve-counties') retrieve_counties;; |