Browse Source

de-bloated the script and updated README

master
Thomas Lapoint 7 months ago
parent
commit
035c632e90
3 changed files with 26 additions and 265 deletions
  1. +1
    -0
      .gitignore
  2. +20
    -2
      README.md
  3. +5
    -263
      radar

+ 1
- 0
.gitignore View File

@ -1 +1,2 @@
*.gif
*.gif*

+ 20
- 2
README.md View File

@ -8,12 +8,30 @@ bash
wget
cURL
nomacs (or your photo veiwer of choice)
## arguments
```
$ radar
```
currently does nothing.
```
$ radar list
```
lists all areas to choose from (ex. MOB)
```
$ radar MOB
```
loads radar from area "MOB"
## to-do
make city/area selection
~~make city/area selection~~ (done!)
default city/area
"config file"
"config file" (default city/image veiwer)

+ 5
- 263
radar View File

@ -1,274 +1,16 @@
#!/bin/bash
default="EVX"
# 'default' string is unused right now. might do defaults with a small config file...
if [ "$1" == list ]; then
cat<< end
Alabama
BMX - Birmingham
EOX - Fort Rucker
HTX - Nrn. Alabama
MOB - Mobile
MXX - E. Alabama
Alaska
ABC - Bethel
ACG - Sitka/Biorka Is.
AEC - Nome
AHG - Kenai
AIH - Middleton Is.
AKC - King Salmon
APD - Fairbanks/Pedro Dome
Arizona
EMX - Tucson
FSX - Flagstaff
IWA - Phoenix
YUX - Yuma
Arkansas
LZK - Little Rock
SRX - W. Ark./Ft. Smith
California
BBX - Beale AFB
BHX - Eureka
DAX - Sacramento
EYX - Edwards AFB
HNX - Hanford/San Joaquin Vly.
MUX - San Francisco Bay Area
NKX - San Diego
SOX - Santa Ana Mtns
VBX - Vandenberg AFB
VTX - Los Angeles/Oxnard
Colorado
FTG - Denver/Boulder
GJX - Grand Junction
PUX - Pueblo
Delaware
DOX - Dover AFB
Florida
AMX - Miami
BYX - Key West
EVX - Eglin AFB/NW Florida
JAX - Jacksonville
MLB - Melbourne
TLH - Tallahassee
TBW - Tampa Bay Area
Georgia
FFC - Atlanta/Peachtree City
JGX - Robins AFB
VAX - Moody AFB
Guam
GUA - Andersen AFB
Hawaii
HKI - Kauai
HKM - Kohala
HMO - Molokai
HWA - South Shore
Idaho
CBX - Boise
SFX - Pocatello
Illinois
ILX- Central IL
LOT - Chicago
Indiana
IND - Indianapolis
IWX - Nrn. Indiana
VWX - Evansville
Iowa
DMX - Des Moines
DVN - Quad Cities
Kansas
DDC - Dodge City
GLD - Goodland
ICT - Wichita
TWX - Topeka
Kentucky
HPX - Fort Cambell
JKL - Jackson
LVX - Louisville
PAH - Paducah
Louisiana
LCH - Lake Charles
LIX - New Orleans
POE - Fort Polk
SHV - Shreveport
Maine
CBW - Caribou
GVX - Portland
Maryland
LWX - Baltimore
Massachusetts
BOX - Boston
Michigan
APX - Gaylord
DTX - Detroit
BRR - Grand Rapids
MQT - Marquette
Minnesota
DLH - Duluth
MPX - Minneapolis
Mississippi
DGX - Jackson/Brandon
GWX - Columbus AFB
Missouri
EAX - Kansas City
LSX - St. Louis
SGF - Springfield
Montana
BLX - Billings
GGW - Glasgow
MSX - Missoula
TFX - Great Falls
Nebraska
LNX - North Platte
OAX - Omaha
UEX - Hastings
Nevada
ESX - Las Vegas
LRX - Elko
RGX - Reno
New Jersey
DIX - Mt. Holly
New Mexico
ABX - Albuquerque
FDX - Cannon AFB
HDX - Holloman AFB
New York
BGM - Binghamton
BUF - Buffalo
ENX - Albany
OKX - New York City/Upton
TYX - Montague
North Carolina
LTX - Wilmington
MHX - Morehead City
RAX - Raleigh/Durham
North Dakota
BIS - Bismarck
MBX - Minot AFB
MVX - Grand Forks
Ohio
CLE - Cleveland
ILN - Wilmington/Dayton
Oklahoma
FDR - Frederick
INX - Tulsa
TLX - Oklahoma City
VNX - Vance AFB
Oregon
MAX - Medford
PDT - Pendleton
RTX - Portland
Pennsylvania
CCX - State College
DIX - Philadelphia
PBZ - Pittsburgh
Puerto Rico
JUA - Puerto Rico/V.I.
South Carolina
CAE - Columbia
CLX - Charleston
GSP - Greenville/Spartanburg
South Dakota
ABR - Aberdeen
FSD - Sioux falls
UDX - Rapid City
Tennessee
MRX - Knoxville/Tri Cities
NQA - Memphis
OHX - Nashville
Texas
AMA - Amarillo
BRO - Brownsville
CRP - Corpus Christi
DFX - Laughlin AFB
DYX - Dyess AFB
EPZ - El Paso
EWX - Austin/San Antonio
FWS - Dallas/Fort Worth
GRK - Central Texas
HGX - Houston/Galveston
LBB - Lubbock
MAF - Midland/Odessa
SJT - San Angelo
Utah
ICX - Cedar City
MTX - Salt Lake City
Vermont
CXX - Burlington
Virginia
AKQ - Norfolk/Richmond
FCX - Blacksburg/Roanoke
LWX - Sterling
Washington
ATX - Seattle/Tacoma
LGX - Langley Hill
OTX - Spokane
Washington D.C.
LWX - Washington
West Virginia
RLX - Charleston
Wisconsin
ARX - La Crosse
GRB - Green Bay
MKX - Milwaukee
Wyoming
CYS - Cheyenne
RIW - Riverton
end
curl https://pastebin.com/raw/S7QdSXMi
printf "\n"
elif [ -z "$1" ]; then
echo "no area selected, run 'radar list' to list areas."
elif [ "$1" != list ]
then
elif [ "$1" != list ]; then
wget https://radar.weather.gov/lite/N0R/$1_loop.gif
# this script uses 'nomacs' for image veiwing, but you can change it to whatever image veiwer you use.
nomacs $1_loop.gif
rm -f $1_loop.gif
fi

Loading…
Cancel
Save