Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

weatherrc(5) [debian man page]

weatherrc(5)							File Formats Manual						      weatherrc(5)

NAME
weatherrc - configuration file format for the weather(1) utility DESCRIPTION
The weatherrc file format is intended to specify a set of aliases by which to group URIs for METAR station conditions and alert/forecast zones, but other command-line options and flags for the weather utility can be specified as well. The file is organized as an INI-format config, with the alias name in [] brackets and the associated parameter/value pairs on following lines. Parameters and their values are separated by = or : characters. Multi-word values do not need quoting. These parameters are supported... alert include local alert notices (possible values are False and True or 0 and 1) atypes list of alert notification types to display (ex: tornado_warning,urgent_weather_message) cache control all caching (possible values are False and True or 0 and 1) cache_data control retrieved data caching (possible values are False and True or 0 and 1) cache_search control search result caching (possible values are False and True or 0 and 1) cacheage duration in seconds to refresh cached data (ex: 900) cachedir directory for storing cached searches and data (ex: ~/.weather) conditions output current conditions (possible values are False and True or 0 and 1) defargs list of default command-line arguments (ex: avl,rdu) forecast include a local forecast (possible values are False and True or 0 and 1) headers list of conditions headers to display (ex: temperature,wind) imperial filter/convert conditions for US/UK units (possible values are False and True or 0 and 1) metric filter/convert conditions for metric units (possible values are False and True or 0 and 1) quiet skip preambles and don't indent (possible values are False and True or 0 and 1) setpath directory search path for correlation sets (ex: .:~/.weather) verbose show full decoded feeds (possible values are False and True or 0 and 1) EXAMPLES
The following is an example ~/.weather/weatherrc defining a couple aliases named home and work to be displayed when running the utility with no aliases specified... [default] defargs = home,work [home] description = Conditions and Forecast at Home forecast = True metar = http://weather.noaa.gov/pub/data/observations/metar/decoded/KRDU.TXT zone_forecast = http://weather.noaa.gov/pub/data/forecasts/zone/nc/ncz041.txt [work] description = Conditions at Work metar = http://weather.noaa.gov/pub/data/observations/metar/decoded/KGSO.TXT Now if weather is invoked by itself on the command line, it will output conditions for home and work, and also a forecast for home only. AUTHOR
Specification and manual written by Jeremy Stanley <fungi@yuggoth.org>. SEE ALSO
weather(1) 2.0 2012-06-24 weatherrc(5)

Check Out this Related Man Page

Weather::Com::CurrentConditions(3pm)			User Contributed Perl Documentation		      Weather::Com::CurrentConditions(3pm)

NAME
Weather::Com::CurrentConditions - class containing current weather conditions SYNOPSIS
#!/usr/bin/perl -w use Weather::Com::Finder; # you have to fill in your ids from weather.com here my $PartnerId = 'somepartnerid'; my $LicenseKey = 'mylicense'; my %weatherargs = ( 'partner_id' => $PartnerId, 'license' => $LicenseKey, 'language' => 'de', ); my $finder = Weather::Com::Finder->new(%weatherargs); # if you want an array of locations: my @locations = $finder->find('Heidelberg'); my $conditions = $locations[0]->current_conditions(); print "Found weather for city: ", $location->name(), " "; print "Current conditions are ", $conditions->description(), " "; print "Current temperature is ", $conditions->temperature(), "oC "; print "... as found out by observatory ", $conditions->observatory(), " "; DESCRIPTION
Using Weather::Com::CurrentCondition objects provide current weather conditions of its parent object (a location) to you. You get Weather::Com::CurrentConditions objects by calling the method "current_conditions()" of your location object. Weather::Com::CurrentConditions is a subclass of Weather::Com::Cached. An instance of this class will update itself corresponding to the caching rules any time one of its methods is called. CONSTRUCTOR
new(hash or hashref) The constructor will usually not be used directly because you get a ready to use current conditions objects from your location object. If you ever want to instantiate current conditions objects on your own, you have to provide the same configuration hash or hashref to the constructor you usually would provide to the "new()" method of Weather::Com::Finder. In addition it is necessary to add a hash element "location_id" to this config hash. The "location_id" has to be a valid weather.com location id. METHODS
id() Returns the location id used to instantiate this object. name() Returns the name of the location this current conditions belong to. description([$language]) Returns a textual representation of the current weather conditions. This description is translated if you specified the language option as argument for your Weather::Com::Finder. This attribute is dynamic language enabled. dewpoint() Returns the dewpoint. humidity() Returns the humidity (in %). icon() Returns the number of the icon that can be used to display the current weather conditions. These icons are available with the weather.com sdk. You can download this sdk from weather.com after you've registered to get your license. last_updated() Returns a Weather::Com::DateTime object containing the date and time of the last update as provided by weather.com. observatory() Returns the name of the observatory that provided the current conditions to weather.com. pressure() Returns a Weather::Com::AirPressure object. Please refer to Weather::Com::AirPressure for further details. temperature() Returns the temperature (depending on how you instantiated your Weather::Com::Finder you'll get centigrade (default) or degrees fahren- heit). uv_index() Returns a Weather::Com::UVIndex object. Please refer to Weather::Com::UVIndex for further details. visibility() Returns the visibility (depending on how you instantiated your Weather::Com::Finder you'll get km (default) or miles). wind() Returns a Weather::Com::Wind object. Please refer to Weather::Com::Wind for further details. windchill() Returns the windchill temperature (depending on how you instantiated your Weather::Com::Finder you'll get centigrade (default) or degrees fahrenheit). SEE ALSO
See also documentation of Weather::Com, Weather::Com::CurrentConditions, Weather::Com::Units. AUTHOR
Thomas Schnuecker, <thomas@schnuecker.de> COPYRIGHT AND LICENSE
Copyright (C) 2004-2007 by Thomas Schnuecker This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The data provided by weather.com and made accessible by this OO interface can be used for free under special terms. Please have a look at the application programming guide of weather.com (http://www.weather.com/services/xmloap.html) perl v5.8.8 2007-07-09 Weather::Com::CurrentConditions(3pm)
Man Page