Tags:
component2Add my vote for this tag integration2Add my vote for this tag localization1Add my vote for this tag create new tag
, view all tags

WeatherPlugin

Simple plugin to display weather information for a specific location. It uses Weather::Com and requires a free Weather.com subscription (see the Weather::Com manpage).

Syntax Rules

  • %WEATHER{City, Country}%
  • %WEATHER{Citycode}%

Examples

  • %WEATHER{Zurich, Switzerland}%
  • %WEATHER{GMXX0040}%

Bugs

  • Yes!
  • The citycode is only necessary in case you have some non-alphabetic chars in your string, e.g Frankfurt/Main. I didn't manage to get Weather::Com parse that. So if you have more than one cities with the same name in the country, you'd rather take the city code. Feel free to fix that smile

Plugin Settings

Plugin settings are stored as preferences variables. To reference a plugin setting write %<plugin>_<setting>%, i.e. %INTERWIKIPLUGIN_SHORTDESCRIPTION%

  • One line description, is shown in the TextFormattingRules topic:
    • Set SHORTDESCRIPTION = Displays nice weather graphics for a specific location

  • Partner ID and License Key (Get them from Weather.com, see Weather::Com manpage (Free of charge))
    • Set PARTNERID = 0000000001
    • Set LICENSE = fdfdfdfdfdfdfdfd

  • Debug plugin: (See output in data/debug.txt)
    • Set DEBUG = 0 Has no effect currently

Plugin Installation Instructions

Note: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the server where TWiki is running.

  • Download the ZIP file from the Plugin web (see below)
  • Unzip WeatherPlugin.zip in your twiki installation directory. Content:
    File: Description:
    data/TWiki/WeatherPlugin.txt Plugin topic
    lib/TWiki/Plugins/WeatherPlugin.pm Plugin Perl module
  • Test if the installation was successful:

%WEATHER{Zurich, Switzerland}%

Plugin Info

Plugin Author: TWiki:Main/AndreBonhote
Plugin Version: 01 Nov 2004 (0.002)
Change History:  
01 Nov 2004: Initial version
TWiki Dependency: $TWiki::Plugins::VERSION 1.024
CPAN Dependencies: CPAN:Weather::Com
Other Dependencies: none
Perl Version: 5.005
TWiki:Plugins/Benchmark: GoodStyle nn%, FormattedSearch nn%, WeatherPlugin nn%
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/WeatherPlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/WeatherPluginDev

Related Topics: TWikiPreferences, TWikiPlugins

-- TWiki:Main/AndreBonhote - 01 Nov 2004

Topic attachments
I Attachment Action Size Date Who Comment
zipzip WeatherPlugin.zip manage 4.4 K 01 Nov 2004 - 09:06 AndreBonhote Weather Plugin
Topic revision: r4 - 19 Jul 2005 - 03:23:17 - WillNorris
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback