aboutsummaryrefslogtreecommitdiff
path: root/doc/wx.1.scd
blob: a11f65cdf622f4f6b45fc9a65c4c59e2c572ffbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
wx(1)

# NAME

wx - a command line interface for aviation weather

# SYNOPSIS

wx _command_

# COMMANDS

*metar* [_station_ ...]
	fetch METAR data for _station_

# METAR

When fetching METARs, a time constraint must be supplied. A time constraint can
either be in the form "past x" or "between x and y".

Options:

*--past* _duration_
	fetch METARs from the past _duration_, formatted as a Go duration string
	(e.g. _3h_).

	*Default:* 1h

*--since* _time_
	fetch METARs since _time_, formatted as YYYY-MM-DDTHH:MM:SS

*--until* _time_
	fetch METARs until _time_, formatted as YYYY-MM-DDTHH:MM:SS

*--rect* _minLat_,_minLon_,_maxLat_,_maxLon_
	fetch METARs within the specified rectangle

*--radial* _dist_,_lat_,_lon_
	fetch METARs within _dist_ statute miles of the specified point

*--path-dist* _dist_
	when used with *--waypoint*, specify a maximum distance around the flight
	path in which to fetch METARs.

*--waypoint* _point_
	fetch METARs along a flight path specified by multiple *--waypoint* arguments
	in order from origin to destination. The _point_ may be either an ICAO
	identifier or a lon,lat pair.

*--min-dist* _dist_
	when fetching METARs from multiple sources, enforce a minimum distance of
	_dist_ degrees of latitude or longitude between stations to reduce the
	density.

*--most-recent*
	fetch only the single most recent METAR that matches the station filters.

*--most-recent-by-station* _type_
	fetch the most recent METAR for each station that matches using _type_ as the
	filter type, which can be one of constraint, postfilter, or false.

	See _https://www.aviationweather.gov/dataserver/example?datatype=metar_ for
	information about these options.

	*Default:* constraint

# AUTHORS

Ben Burwell <wx@benburwell.com>. For more information, see
_https://git.sr.ht/~benburwell/wxcli_.