wmpager: drop tooltip suport
[dockapps.git] / wmweather+ / wmweather+.1.in
blobb58d725be8c0fa5517fd6fd11841bca20b648dd2
1 .de Sh
2 .br
3 .if t .Sp
4 .ne 5
5 .PP
6 \fB\\$1\fR
7 .PP
8 ..
9 .TH wmweather+ 1x "@DATE@"
10 .SH NAME
11 wmweather+ \- A dock app for displaying weather information
13 .SH SYNOPSIS
14 .B wmweather+
15 .RB [\| options \|]
16 .SH DESCRIPTION
17 \fBwmweather+\fP downloads current conditions, forecast data, and optionally a
18 radar image. It will also watch for various warnings and display them using an
19 external command.
20 .SH OPTIONS
21 Note that later options override earlier ones, and command line options
22 override configuration file options. All multi-character options may be
23 specified with one or two leading dashes. The configuration file is simply one
24 option (with value if necessary) per line, leading dashes optional. Empty lines
25 and lines beginning with the '#' character are ignored.
26 .SS General Options
27 .TP
28 .BI "-display " <display\ name>
29 Name of display to use.
30 .TP
31 .BI "-c " <file>
32 Specify a configuration file instead of the default. This option is ignored in
33 the configuration file.
34 .TP
35 .BI "-display-mode " <string>
36 Specify the starting display mode. Valid values are "cur"/"current",
37 "fcst"/"forecast", and "map"/"radar".
38 .TP
39 .BI "-location " <latitude+longitude>
40 Specify a latitude and longitude, for example "41'59'00N 87'55'00W" or
41 "N41.9833333333333 W87.9166666666667". You may use either the decimal or DMS
42 notation, with either a prefixed sign or a prefixed or suffixed N/S/E/W. If
43 this option isn't given, the program will assume you live on the equator and
44 guess your longitude based on your system timezone offset.
45 .TP
46 .BR "-e\fR,\fP\ -email " <address>
47 Specify the anonymous FTP password.
48 .TP
49 .BR -v ", " -version
50 Display version number and exit.
51 .TP
52 .BI "-viewer " <program>
53 External program for viewing weather warnings. This command must take the text
54 to display from standard input. It will be executed as '/bin/sh -c
55 \fI<program>\fP' with stdout redirected to /dev/null. If not specified, it will
56 default to "xless".
57 .TP
58 .BR -animate ", " -noanimate
59 Turn animation on or off. Animation may still be toggled with the middle mouse
60 button as described below. The default is on.
61 .SS Station Options
62 .TP
63 .BI "-s\fR,\fP\ -station " <ID>
64 Station ID for all stations. Equivalent to 
65 .RI "'-metar-station " <ID> " -avn-station " <ID>
66 .RI " -eta-station " <ID> " -mrf-station " <ID> '.
67 .TP
68 .BI "-metar-station " <ID>
69 Station ID for METAR observations. See \fBCurrent Conditions\fP for more
70 information. A value must be provided.
71 .TP
72 .BI "-avn-station " <ID>
73 Station ID for AVN forecasts. See \fBForecasts\fP for more information.
74 .TP
75 .BI "-eta-station " <ID>
76 Station ID for ETA forecasts. See \fBForecasts\fP for more information.
77 .TP
78 .BI "-mrf-station " <ID>
79 Station ID for MRF forecasts. See \fBForecasts\fP for more information.
80 .TP
81 .BI "-warning-zone " <zoneID>
82 Zone ID for weather warnings. See \fBWarnings\fP for more information. This
83 option may be repeated for multiple zones.
84 .TP
85 .BI "-forget-warning-zones"
86 Cause wmweather+ to forget all warning zones found to this point. Useful for
87 user configuration files to override the warning zones specified in the
88 system-wide configuration.
90 .BI "-metar-uri " <URI>
91 .br
92 .BI "-avn-uri " <URI>
93 .br
94 .BI "-eta-uri " <URI>
95 .br
96 .BI "-mrf-uri " <URI>
97 .br
98 .BI "-warning-uri " <URI>
99 .RS
100 URI to download the specified data from. See \fBURIs\fP for more information.
103 .BI "-metar-post " <DATA>
105 .BI "-avn-post " <DATA>
107 .BI "-eta-post " <DATA>
109 .BI "-mrf-post " <DATA>
111 .BI "-warning-post " <DATA>
113 Post data for downloading the specified data. See \fBURIs\fP for more
114 information. Note that the post option must follow the corresponding URI
115 option. Note that the post data will \fInot\fP be URL-encoded for you.
118 .B -noradar
119 Do not display a radar image. This is the default.
121 .BI "-radar-uri " <URI>
123 .BI "-radar-post " <DATA>
125 Retrieve an image from the specified URI. See \fBRadar Map\fP for more
126 information.
129 .BI "-radar-crop " <string>
130 How to crop the radar image. 
131 .IR X x Y + W + H
132 format. See \fBRadar Map\fP for more information.
134 .BI "-radar-cross " <string>
135 Where to draw radar crosshairs. 
136 .IR X x Y
137 format. See \fBRadar Map\fP for more
138 information.
139 .SS Measurement Options
141 .BR -m ", " -metric
142 Same as '-cm -hPa -kph -tempc'.
144 .B -in
145 Display precipitation amounts in inches. This is the default.
147 .B -cm
148 Display precipitation amounts in centimeters.
150 .B -inHg
151 Display pressure in inches of mercury. This is the default.
153 .BR -hPa ", " -mbar
154 Display pressure in hectopascal (millibars)
156 .B -mmHg
157 Display pressure in millimeters of mercury.
159 .B -atm
160 Display pressure in atmospheres.
162 .B -mph
163 Display windspeed in miles/hour. This is the default.
165 .B -kph
166 Display windspeed in kilometers/hour.
168 .B -knots
169 Display windspeed in knots.
171 .B -mps
172 Display windspeed in meters/second.
174 .B -beaufort
175 Display windspeed on the Beaufort scale.
177 .B -tempf
178 Display temperature in degrees Fahrenheit. This is the default.
180 .B -tempc
181 Display temperature in degrees Celcius.
182 .SH DISPLAY
183 The dockapp has three display modes: Current Conditions, Forecasts, and Radar
184 Map. Modes are selected by the buttons across the top of the icon. Weather
185 Warning status is indicated by the font color. At any point
186 double-(left)clicking the main display will send SIGUSR1 to the process (see
187 \fBSIGNALS\fP).
188 .Sh "Current Conditions"
189 This mode displays the current conditions as given in the METAR report for the
190 selected station, as downloaded from
191 .UR http://weather.noaa.gov/pub/data/observations/metar/stations/
192 http://weather.noaa.gov/pub/data/observations/metar/stations/
194 .RI .
195 Downloads are attempted every 15 minutes. Find your station at
196 .UR http://www.nws.noaa.gov/tg/siteloc.shtml
197 http://www.nws.noaa.gov/tg/siteloc.shtml
199 .RI .
201 The station ID is displayed at the top left of the display. The observation
202 date (local) is to the right, and the time (local and UTC) occupies the line
203 below. Under that, to the right is the temperature and relative humidity, the
204 wind direction and speed, the atmospheric pressure (indicated by "P"), the
205 heat index (indicated by "HI"), and the wind chill (indicated by "WC").
207 To the left is a graphical display of the current weather. The sky condition is
208 indicated as clear (sun), partly cloudy (sun with small clouds), mostly cloudy
209 (sun behind a large cloud), or overcast (large cloud). This image may be
210 covered by fog (foggy overlay), dust/sand/haze (brownish particles), or blowing
211 snow/dust/sand (blue wind-lines), with the level of transparency indicating the
212 degree of visibility. If a funnel cloud or tornado was reported, a tornado
213 graphic will be displayed instead of the sky condition.
215 Beneath this graphic, icons will depict rain (raindrop), snow (snowflake),
216 freezing precipitation (hailstones), and thunderstorms (lightning bolt). If
217 animation is enabled, the icons will appear and vanish on a ten second cycle
218 to indicate precipitation intensity. Animation may be enabled or disabled by
219 middle-clicking the display.
220 .Sh Forecasts
221 This mode displays the current conditions as given in the AVN, ETA, and MRF
222 data for the selected stations, as downloaded from
223 .UR http://www.nws.noaa.gov/tdl/synop/products/bullform.mav.htm
224 http://www.nws.noaa.gov/tdl/synop/products/bullform.mav.htm
226 .RI ,
227 .UR http://www.nws.noaa.gov/mdl/synop/products/bullform.met.htm
228 http://www.nws.noaa.gov/mdl/synop/products/bullform.met.htm
231 .UR http://www.nws.noaa.gov/tdl/synop/products/bullform.mex.htm
232 http://www.nws.noaa.gov/tdl/synop/products/bullform.mex.htm
234 .RI .
235 AVN and ETA reports are downloaded at startup, 0000Z, and 1200Z. MRF reports
236 are downloaded at startup and 0000Z. In the event of failure, downloads will be
237 retried every 15 minutes. See the URIs given to find your stations.
239 The display is divided into two sections. A small window at the top indicates
240 the date and hour (local time) for which this forecast is valid. Left-clicking
241 this window or clicking the small arrow-button to the right will advance to
242 the next forecast; right-clicking or clicking the small arrow-button to the
243 left will move to the previous forecast. Middle-clicking will return to the
244 first forecast in the list.
246 The larger display at the bottom shows the forecast for the selected date and
247 time. To the right from top to bottom are the station ID, the daily high and
248 low temperatures, the predicted temperature and relative humidity, and the
249 wind direction and speed. The final line may display the heat index (HI), the
250 wind chill (WC), the amount of snow to fall in that period (SN), the amount of
251 liquid-equivalent precipitation to fall in that period (P), or the forecast
252 type (e.g. "AVN" or "MRF").
254 To the left is a weather display similar to that for the Current Conditions.
255 The animation here indicates the percent chance of rain, snow, freezing
256 precipitation, thunderstorms, and severe thunderstorms (large lightning bolt).
257 Animation may be turned on or off with the middle button. When animation is
258 off, the mouse wheel may be used to adjust the cutoff chance for the display
259 (hold Shift to adjust faster). The cutoff will be displayed briefly when first
260 turning off animation, when first displaying forecasts, whenever button 6
261 (typically, the 'side' button) is held down in the large display. Permanent
262 cutoff display may be toggled by double-middle-clicking the large display.
263 .Sh "Radar Map"
264 The radar image will be downloaded every 30 minutes from the URI specified.
265 Then, if -radar-crop was specified in the form
266 .IR X x Y + W + H ,
267 a subimage of witdh \fIW\fP and height \fIH\fP will be taken, with the
268 upper-left pixel taken from
269 .RI ( X ", " Y ).
270 If \fIX\fP or \fIY\fP is negative, it will be measured from the right/bottom of
271 the image instead of the top/left. The image is then resized to fit within the
272 52x40 rectangle available. A border around the image indicates the current font
273 color. If -radar-cross was specified in the form
274 .IR X x Y ,
275 crosshairs will then be
276 drawn over the pixel
277 .RI ( X ", " Y )
278 when the middle button is held on the radar map.
280 If -noradar was specified or no radar data is available, an image to that
281 effect will be displayed instead.
283 Some nice images are available from
284 .UR http://weather.noaa.gov/radar/mosaic/DS.p19r0/ar.us.conus.shtml
285 http://weather.noaa.gov/radar/mosaic/DS.p19r0/ar.us.conus.shtml
288 .UR http://www.weather.com/common/home/maps.html
289 http://www.weather.com/common/home/maps.html
291 .RI .
292 Be kind, since the display is so small pick the smallest version of the image
293 to download.
294 .Sh "Weather Warnings"
295 Various weather warnings, watches, and statements for the specified zone are
296 downloaded from 
297 .UR http://weather.noaa.gov/pub/data/watches_warnings/
298 http://weather.noaa.gov/pub/data/watches_warnings/
300 .RI .
301 Downloads are attempted at the same time METAR observations are retrieved. Find
302 your zone at
303 .UR http://weather.noaa.gov/
304 http://weather.noaa.gov/
307 .UR http://weather.gov/
308 http://weather.gov/
310 .RI .
311 Note that some areas issue weather warnings by multiple geopolitical units
312 (e.g. "zones" and "counties"). The -warning-zone option may be specified
313 multiple times, so all appropriate files may be inspected.
315 If any new warnings are downloaded, all text will be displayed in an
316 orange/red scheme instead of the normal blue/orange. The new warnings may then
317 be viewed by left-clicking the large display window in any mode. At any point,
318 all current warnings may be displayed by right-clicking the large display.
319 .SH "URIs"
320 The URIs from which the various observations, forecasts, and images are
321 downloaded can be easily customized by supplying values for the various
322 .I -*-uri
323 options. The following substitution variables are available:
325 .B %s
326 The station ID for the specified data type (note that warnings have no station
327 ID).
329 .B %z
330 The zone ID, for warnings.
332 .B %f
333 The warning type, for warnings (e.g. "tornado", "special_weather_stmt").
335 The substitutions can be manipulated with the standard
336 .BR printf (3)
337 modifiers for strings, in particular the
338 .BR # ", " 0 ", " - ", "
339 .BR "' '" ", " + ", and " '
340 flags, the
341 .BR "field width" ,
342 and the
343 .B precision
344 fields are accepted. Also, an additional flag
345 .B !
346 is recognized to use the capitalized versions of various numeric flags (e.g.
347 \fBX\fP versus \fBx\fP) and to capitalize character or string values, and an
348 additional syntax
349 .BI ">" "<offset>"
350 after the precision is recognized to start at an offset into the string value
351 (negative values indicate offset from the end of the string).
353 The current defaults are:
355 metar-uri
357 http://weather.noaa.gov/pub/data/observations/metar/stations/%s.TXT
360 avn-uri
362 http://www.nws.noaa.gov/cgi-bin/mos/getmav.pl?sta=%s
365 eta-uri
367 http://www.nws.noaa.gov/cgi-bin/mos/getmet.pl?sta=%s
370 mrf-uri
372 http://www.nws.noaa.gov/cgi-bin/mos/getmex.pl?sta=%s
375 warning-uri
377 http://weather.noaa.gov/pub/data/watches_warnings/%f/%.2z/%z.txt
379 .SH FILES
381 .I $HOME/.wmweather+/
382 Directory used to store downloaded data files. These files may be deleted at
383 any time.
385 .I $HOME/.wmweather+/conf
386 User configuration.
388 .I /etc/wmweather+.conf
389 System configuration.
391 .I $HOME/.wmweather+/.dir-test
392 Created and deleted to test write access to \fI$HOME/.wmweather+/\fP
393 .SH SIGNALS
395 .I SIGUSR1
396 Forces downloads for the current mode to be attempted immediately.
398 .I SIGUSR2
399 Forces all downloads to be attempted immediately.
400 .SH BUGS
401 Before reporting a bug, please check the HINTS file (in particular,
402 proxy instructions are in that file). Also, please verify that you have
403 the latest version of wmweather+, and that your bug has not already been
404 reported. Bugs may be filed at
405 .UR http://sourceforge.net/tracker/?group_id=60336&atid=493854
406 http://sourceforge.net/tracker/?group_id=60336&atid=493854
408 .RI .
409 .SH AUTHORS
410 \fBwmweather+\fP was written by \fIBrad Jorsch
411 <anomie@users.sourceforge.net>\fP, using the wmgeneral code by \fIMartijn
412 Pieterse <pieterse@xs4all.nl>\fP.
414 Email regarding wmweather+ should be sent to
415 \fIanomie@users.sourceforge.net\fP.
416 .SH INSPIRATION
417 wmWeather was a good idea, but it didn't give me enough information. However,
418 no code from wmWeather was used in writing wmweather+.