1 .TH WEATHERRC 5 "March 15, 2010" "" \" -*- nroff -*-
2 \" Copyright (c) 2006-2010 Jeremy Stanley <fungi@yuggoth.org>.
3 \" Permission to use, copy, modify, and distribute this software is
4 \" granted under terms provided in the LICENSE file distributed with
7 weatherrc \- configuration file format for the
11 The weatherrc file format is intended to specify a set of macros
12 by which to group a METAR station ID for current conditions data with a
13 city/state combination for a forecast, but many of the other
14 command\-line options and flags for the weather utility can be specified
15 as well. The file is organized as an INI-format config, with the alias
16 name in [] brackets and the associated parameter/value pairs on following
17 lines. Parameters and their values as separated by = or : characters.
18 Multi-word values do not need quoting.
20 These parameters are supported...
23 include local alert notices
26 alert notification types to display
29 alert URL (including %atype% and %zone%)
32 the city name (ex: Raleigh Durham)
35 output current conditions (possible values are False and True or 0 and 1)
38 maximum number of forecast lines to show (integer value, 0 means unlimited)
41 include a local forecast (possible values are False and True or 0 and 1)
44 forecast URL (ex: http://forecast.org/%st%/%city%.txt)
47 the conditions headers to display (ex: temperature,wind)
50 the METAR station ID (ex: KRDU)
53 filter/convert for US/UK units
56 filter/convert for metric units
59 METAR URL (ex: http://metar.org/%id%.txt)
62 skip preambles and don't indent (possible values are False and True or 0 and 1)
65 the state abbreviation (ex: NC)
68 show full decoded feeds (possible values are False and True or 0 and 1)
71 alert zones (ex: nc/ncc183,nc/ncz041)
73 The placeholders %city% and %st% in the furl URL and %id% in the murl URL
74 will be replaced with the city, st and id definitions respectively. If the
75 placeholder has all letters lowercased, the replacement will be forced to
76 all lowercase. If the placeholder has all letters uppercased, the
77 replacement will be forced to all uppercase. If the placeholder has its
78 first letter uppercased and the remainder lowercased, then all words in the
79 replacement will start with an uppercase letter and the rest will be
80 lowercase. If the placeholder has its last letter uppercased and the
81 remainder lowercased, then case will be preserved in the replacement. Also,
82 after replacement, any spaces in the resulting URL will be converted to
83 underscore characters prior to use.
85 Following is an example
87 defining the default settings to be used when running the utility with no
88 aliases specified, and a couple definitions for aliases named home and
104 City = Raleigh Durham
121 Specification and manual written by Jeremy Stanley <fungi@yuggoth.org>.