summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Patrick <ray@raypatrick.xyz>2022-10-26 14:11:27 -0600
committerRay Patrick <ray@raypatrick.xyz>2022-10-26 14:11:27 -0600
commit5fca0cd5a43b82a5075791e16e1ccc12fa319005 (patch)
treeea5e9e9074f90c7545162cc0650d8f24c78f6e09
parent64eb83a3b04e87b989bb86c560c3d6ea20376169 (diff)
Updated to match new weather.gov URL schemeHEADmaster
-rwxr-xr-xbin/radar2
-rw-r--r--radar.1118
2 files changed, 55 insertions, 65 deletions
diff --git a/bin/radar b/bin/radar
index 45c9d73..3e0e15a 100755
--- a/bin/radar
+++ b/bin/radar
@@ -3,7 +3,7 @@
radarfile=/usr/local/share/radar/radars.txt
-baseurl=https://radar.weather.gov/ridge/lite/
+baseurl=https://radar.weather.gov/ridge/standard/
siteregex="^[Kk|Pp][A-Za-z][A-Za-z][A-Za-z]$"
viewsite() { # use viewsite $url -v for verbose output
diff --git a/radar.1 b/radar.1
index 7a718f8..7665621 100644
--- a/radar.1
+++ b/radar.1
@@ -1,77 +1,67 @@
-.TH RADAR 1
+.\" Automatically generated by Pandoc 2.2.1
+.\"
+.TH "radar" "1" "" "" "radar Manual"
+.hy
.SH NAME
-radar \- NWS Doppler radar on the command line
+.PP
+radar \- NWS Doppler radar on the command line
.SH SYNOPSIS
.PP
-.B radar [sitecode|city] [-l, --list] [-s, --search regex] [u, --url sitecode|city] [-h, --help]
+radar [sitecode|city] [\-l, \[en]list] [\-s, \[en]search regex] [\-u,
+\[en]url sitecode|city] [\-h, \[en]help]
.SH DESCRIPTION
.PP
-.B radar
-is a tool for retrieving National Weather Service (NWS) Doppler radar imagery from the command line. It links to the "lite" version of the NWS RIDGE site and retrieves the animated .GIF file showing about the last 30 minutes of precipitation at the site you select. You can specify an ICAO code directly (such as KNQA for Memphis International Airport) or you can type a city name. If there's a WSR-88 site in that city,
-.B radar
-will find it and retrieve its imagery. Cities with spaces in their names should be encapsulated in quotes, for example "Los Angeles".
+radar is a tool for retrieving National Weather Service (NWS) Doppler
+radar imagery from the command line.
+It links to the \[lq]lite\[rq] version of the NWS RIDGE site and
+retrieves the animated .GIF file showing about the last 30 minutes of
+precipitation at the site you select.
+You can specify an ICAO code directly (such as KNQA for Memphis
+International Airport) or you can type a city name.
+If there's a WSR\-88 site in that city, \f[B]radar\f[] will find it and
+retrieve its imagery.
+Cities with spaces in their names should be encapsulated in quotes, for
+example \[lq]Los Angeles.\[rq]
.SH OPTIONS
-.TP
-.B [sitecode|city]
-.B sitecode
-can be any ICAO code, such as KOKX for New York City. Site codes are case-insensitive. Alternatively, you can specify a
-.B city
-and
-.B radar
-will do its best to locate its imagery. Running
-.B $ radar "New York"
-gives identical results to
-.B $ radar KNQA.
-.TP
-.B [-l, --list]
-Will print a list of every NEXRAD Doppler radar in the United States, showing city, state, and ICAO code, to standard output. This information is stored in /usr/local/radar/share/radars.txt.
-.TP
-.B [-s, --search regex]
-This is really a shortcut for
-.B grep -w regex radars.txt.
-Examples:
-.B radar -s "TX:"
-will list all the sites in Texas;
-.B radar -s "AFB"
-will list all the sites at US Air Force bases.
-.TP
-.B [-u, --url sitecode|city]
-Just prints the generated URL to standard output instead of opening it with
-.B mpv(1).
-.TP
-.B [-h, --help]
-Prints an abbreviated set of usage instructions to standard output.
+.PP
+[sitecode|city] \f[B]sitecode\f[] can be any ICAO code, such as KOKX for
+New York City.
+Site codes are case\-insensitive.
+Alternatively, you can specify a \f[B]city\f[] and \f[B]radar\f[] will
+do its best to locate its imagery.
+Running `radar \[lq]New York\[rq]' gives identical results to `radar
+KNQA'.
+.PP
+[\-l, \[en]list] Will print a list of every NEXRAD Doppler radar in the
+United States, showing city, state, and ICAO code, to standard output.
+This information is stored in /usr/local/radar/share/radars.txt.
+.PP
+[\-s, \[en]search regex] This is really a shortcut for `grep \-w regex
+/usr/local/radar/share/radars.txt'.
+Examples: `radar \-s TX:' will list all the sites in Texas; `radar \-s
+AFB' will list all the sites at US Air Force bases.
+.PP
+[\-u, \[en]url sitecode|city] Just prints the URL of the radar imagery
+to standard output instead of opening it with mpv(1).
+.PP
+[\-h, \[en]help] Prints an abbreviated set of usage instructions to
+standard output.
.SH FILES
-.TP
-.B /usr/local/radar/share/radars.txt
-Contains information on all NEXRAD sites in the United States. Each line has the form
-.B City, ST: KABC,
-where
-.B ST
-is the two-letter abbreviation for a US State and
-.B KABC
-is the ICAO code.
+.PP
+/usr/local/radar/share/radars.txt Contains information on all NEXRAD
+sites in the United States.
+Each line has the form `City, ST: KABC', where ST is the two\-letter
+postal abbreviation for the state and KABC is the ICAO code.
.SH BUGS
-.TP
-.B radar
-is a POSIX shell script. On your system,
-.B /bin/sh
-must be a POSIX-compliant shell (or a link to one) for
-.B radar
-to work.
+.PP
+\f[B]radar\f[] is a POSIX shell script.
+On your system, /bin/sh must be a POSIX\-compliant shell for
+\f[B]radar\f[] to work.
.SH LICENSE
-.TP
+.PP
GPLv3
.SH AUTHOR
-.TP
+.PP
Written by Ray Patrick <ray@raypatrick.xyz> in 2020.
-.TP
+.PP
https://raypatrick.xyz
-.TP
-ray@raypatrick.xyz
-.SH LICENSE
-.TP
-GPLv3
-.SH SEE ALSO
-.TP
-.B mpv(1)