aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-02-22 14:59:34 +0100
committerMattias Andrée <m@maandree.se>2026-02-22 14:59:34 +0100
commit1e837dbb468edd76cf9a554b03ee7019c4b5ac29 (patch)
tree263e7cf2a000ed1da6336eb15794f80c170f1f51
parentUpdate e-mail and address (diff)
downloadmetar-1e837dbb468edd76cf9a554b03ee7019c4b5ac29.tar.gz
metar-1e837dbb468edd76cf9a554b03ee7019c4b5ac29.tar.bz2
metar-1e837dbb468edd76cf9a554b03ee7019c4b5ac29.tar.xz
Signed-off-by: Mattias Andrée <m@maandree.se>
-rw-r--r--DEPENDENCIES3
-rw-r--r--README6
-rwxr-xr-xmetar3
-rw-r--r--metar.118
4 files changed, 13 insertions, 17 deletions
diff --git a/DEPENDENCIES b/DEPENDENCIES
index 56d6c8e..854d815 100644
--- a/DEPENDENCIES
+++ b/DEPENDENCIES
@@ -7,14 +7,11 @@ RUNTIME DEPENDENCIES:
coreutils
python3
-
BUILD DEPENDENCIES:
(none)
-
INSTALL DEPENDENCIES:
make
coreutils
-
diff --git a/README b/README
index e2603ca..4ecccd4 100644
--- a/README
+++ b/README
@@ -9,9 +9,9 @@ SYNOPSIS
metar 'closest' [latitude longitude] [list]
DESCRIPTION
- metar is a simple utility for find whether stations (hence referred to
- as METAR stations,) and get METAR reports. Most METAR stations are
- airports.
+ metar is a simple utility for finding weather stations (hence referred
+ to as METAR stations,) and getting METAR reports. Most METAR stations
+ are airports.
ACTIONS
get
diff --git a/metar b/metar
index 39797a6..9d7c0f7 100755
--- a/metar
+++ b/metar
@@ -44,7 +44,7 @@ get_location ()
geof=/etc/geolocation
fi
if test -z "$geo"; then
- printf '%s\n' 'No location has been specificed or configured.' >&2
+ printf '%s\n' 'No location has been specified or configured.' >&2
exit 1
fi
if ! test $(printf '%s\n' $geo | wc -l) = 2; then
@@ -134,4 +134,3 @@ elif test $# = 4 && test "$1" = "closest"; then
else
usage
fi
-
diff --git a/metar.1 b/metar.1
index 74842c1..b1f88d1 100644
--- a/metar.1
+++ b/metar.1
@@ -1,6 +1,6 @@
.TH METAR 1 METAR
.SH "NAME"
-metar - Trivial weather report
+metar \- Trivial weather report
.SH "SYNOPSIS"
.B metar
get
@@ -23,8 +23,8 @@ closest
.RI [ list ]
.SH "DESCRIPTION"
.B metar
-is a simple utility for find whether stations (hence referred to
-as METAR stations,) and get METAR reports. Most METAR stations are
+is a simple utility for finding weather stations (hence referred to
+as METAR stations,) and getting METAR reports. Most METAR stations are
airports.
.SH "ACTIONS"
.TP
@@ -62,7 +62,7 @@ not as good, list you can look at
<http://\:www.aviationweather.gov/\:static/\:adds/\:metars/\:stations.txt>.
To speed up the listing process, you can filter the output
-by select the
+by selecting the
.I prefix
of the ICAO station identifiers. If you look at the page with
the URL above, you will find the prefix for your country.
@@ -72,9 +72,9 @@ listed in
<https://\:codeberg.org/\:maandree/\:metar/\:raw/\:branch/\:master/\:prefixes>.
Note however, this list is not guaranteed to be up to date.
-Each station is will be printed on a line, containing the its
-name, country, ICAO station identifier, and location. The
-ICAO station identifier is in parenthesis.
+Each station will be printed on a line, containing its name,
+country, ICAO station identifier, and location. The ICAO station
+identifier is in parentheses.
.TP
\fBclosest\fP [\fIlatitude\fP \fIlongitude\fP] [\fIlist\fP]
Given a
@@ -94,7 +94,7 @@ are omitted, ~/.config/geolocation, or /etc/geolocation,
is used.
.SH "FILES"
.TP
-~/config/metar
+~/.config/metar
Contains the ICAO station identifier for the selected weather
station, and nothing else, except an LF at the end. This will
never change. Other programs are encouraged to use this file
@@ -112,7 +112,7 @@ Used to get your location in case
.B metar closest
is invoked without
.I latitude
-annd
+and
.IR longitude .
This file contains your geographical location using the Global
Positioning System in decimal format. This will never change.