wmweather+(1) | General Commands Manual | wmweather+(1) |
wmweather+ - A dock app for displaying weather information
wmweather+ [options]
wmweather+ downloads current conditions, forecast data, and optionally a radar image. It will also watch for various warnings and display them using an external command.
Note that later options override earlier ones, and command line options override configuration file options. All multi-character options may be specified with one or two leading dashes. The configuration file is simply one option (with value if necessary) per line, leading dashes optional. Empty lines and lines beginning with the '#' character are ignored.
-metar-uri <URI>
-avn-uri <URI>
-eta-uri <URI>
-mrf-uri <URI>
-warning-uri <URI>
-metar-post <DATA>
-avn-post <DATA>
-eta-post <DATA>
-mrf-post <DATA>
-warning-post <DATA>
-radar-uri <URI>
-radar-post <DATA>
The dockapp has three display modes: Current Conditions,
Forecasts, and Radar Map. Modes are selected by the buttons across the top
of the icon. Weather Warning status is indicated by the font color. At any
point double-(left)clicking the main display will send SIGUSR1 to the
process (see SIGNALS).
Current Conditions
This mode displays the current conditions as given in the METAR report for the selected station, as downloaded from http://tgftp.nws.noaa.gov/data/observations/metar/stations/ . Downloads are attempted every 15 minutes. Find your station at http://www.nws.noaa.gov/tg/siteloc.shtml .
The station ID is displayed at the top left of the display. The observation date (local) is to the right, and the time (local and UTC) occupies the line below. Under that, to the right is the temperature and relative humidity, the wind direction and speed, the atmospheric pressure (indicated by "P"), the heat index (indicated by "HI"), and the wind chill (indicated by "WC").
To the left is a graphical display of the current weather. The sky condition is indicated as clear (sun), partly cloudy (sun with small clouds), mostly cloudy (sun behind a large cloud), or overcast (large cloud). This image may be covered by fog (foggy overlay), dust/sand/haze (brownish particles), or blowing snow/dust/sand (blue wind-lines), with the level of transparency indicating the degree of visibility. If a funnel cloud or tornado was reported, a tornado graphic will be displayed instead of the sky condition.
Beneath this graphic, icons will depict rain (raindrop), snow
(snowflake), freezing precipitation (hailstones), and thunderstorms
(lightning bolt). If animation is enabled, the icons will appear and vanish
on a ten second cycle to indicate precipitation intensity. Animation may be
enabled or disabled by middle-clicking the display.
Forecasts
This mode displays the current conditions as given in the AVN, ETA, and MRF data for the selected stations, as downloaded from http://www.nws.noaa.gov/tdl/synop/products/bullform.mav.htm , http://www.nws.noaa.gov/mdl/synop/products/bullform.met.htm and http://www.nws.noaa.gov/tdl/synop/products/bullform.mex.htm . AVN and ETA reports are downloaded at startup, 0000Z, and 1200Z. MRF reports are downloaded at startup and 0000Z. In the event of failure, downloads will be retried every 15 minutes. See the URIs given to find your stations.
The display is divided into two sections. A small window at the top indicates the date and hour (local time) for which this forecast is valid. Left-clicking this window or clicking the small arrow-button to the right will advance to the next forecast; right-clicking or clicking the small arrow-button to the left will move to the previous forecast. Middle-clicking will return to the first forecast in the list.
The larger display at the bottom shows the forecast for the selected date and time. To the right from top to bottom are the station ID, the daily high and low temperatures, the predicted temperature and relative humidity, and the wind direction and speed. The final line may display the heat index (HI), the wind chill (WC), the amount of snow to fall in that period (SN), the amount of liquid-equivalent precipitation to fall in that period (P), or the forecast type (e.g. "AVN" or "MRF").
To the left is a weather display similar to that for the Current
Conditions. The animation here indicates the percent chance of rain, snow,
freezing precipitation, thunderstorms, and severe thunderstorms (large
lightning bolt). Animation may be turned on or off with the middle button.
When animation is off, the mouse wheel may be used to adjust the cutoff
chance for the display (hold Shift to adjust faster). The cutoff will be
displayed briefly when first turning off animation, when first displaying
forecasts, whenever button 6 (typically, the 'side' button) is held down in
the large display. Permanent cutoff display may be toggled by
double-middle-clicking the large display.
Radar Map
The radar image will be downloaded every 30 minutes from the URI specified. Then, if -radar-crop was specified in the form XxY+W+H, a subimage of witdh W and height H will be taken, with the upper-left pixel taken from (X, Y). If X or Y is negative, it will be measured from the right/bottom of the image instead of the top/left. The image is then resized to fit within the 52x40 rectangle available. A border around the image indicates the current font color. If -radar-cross was specified in the form XxY, crosshairs will then be drawn over the pixel (X, Y) when the middle button is held on the radar map.
If -noradar was specified or no radar data is available, an image to that effect will be displayed instead.
Some nice images are available from
http://weather.noaa.gov/radar/mosaic/DS.p19r0/ar.us.conus.shtml
and
http://www.weather.com/common/home/maps.html
. Be kind, since the display is so small pick the smallest version of the
image to download.
Weather Warnings
Various weather warnings, watches, and statements for the specified zone are downloaded from http://tgftp.nws.noaa.gov/data/watches_warnings/ . Downloads are attempted at the same time METAR observations are retrieved. Find your zone at http://weather.noaa.gov/ or http://weather.gov/ . Note that some areas issue weather warnings by multiple geopolitical units (e.g. "zones" and "counties"). The -warning-zone option may be specified multiple times, so all appropriate files may be inspected.
If any new warnings are downloaded, all text will be displayed in an orange/red scheme instead of the normal blue/orange. The new warnings may then be viewed by left-clicking the large display window in any mode. At any point, all current warnings may be displayed by right-clicking the large display.
The URIs from which the various observations, forecasts, and images are downloaded can be easily customized by supplying values for the various -*-uri options. The following substitution variables are available:
The substitutions can be manipulated with the standard printf(3) modifiers for strings, in particular the #, 0, -, ' ', +, and ' flags, the field width, and the precision fields are accepted. Also, an additional flag ! is recognized to use the capitalized versions of various numeric flags (e.g. X versus x) and to capitalize character or string values, and an additional syntax ><offset> after the precision is recognized to start at an offset into the string value (negative values indicate offset from the end of the string).
The current defaults are:
http://tgftp.nws.noaa.gov/data/observations/metar/stations/%s.TXT
http://www.nws.noaa.gov/cgi-bin/mos/getmav.pl?sta=%s
http://www.nws.noaa.gov/cgi-bin/mos/getmet.pl?sta=%s
http://www.nws.noaa.gov/cgi-bin/mos/getmex.pl?sta=%s
http://tgftp.nws.noaa.gov/data/watches_warnings/%f/%.2z/%z.txt
Before reporting a bug, please check the HINTS file (in particular, proxy instructions are in that file). Also, please verify that you have the latest version of wmweather+, and that your bug has not already been reported. Bugs may be filed at http://sourceforge.net/tracker/?group_id=60336&atid=493854 .
wmweather+ was written by Brad Jorsch <anomie@users.sourceforge.net>, using the wmgeneral code by Martijn Pieterse <pieterse@xs4all.nl>.
Email regarding wmweather+ should be sent to anomie@users.sourceforge.net.
wmWeather was a good idea, but it didn't give me enough information. However, no code from wmWeather was used in writing wmweather+.
April 24, 2020 |