key Log In

You are here: wiki.fini > TWiki Web > WeatherPlugin

Start of topic | Skip to actions


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

Syntax Rules

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


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


  • 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, see Weather::Com manpage (Free of charge))
    • Set PARTNERID = 1010477700
    • Set LICENSE = 7404700e4f99a91b

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

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 in your twiki installation directory. Content:
    File: Description:
    data/TWiki/WeatherPlugin.txt Plugin topic
    lib/TWiki/Plugins/ 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: Weather::Com
Other Dependencies: none
Perl Version: 5.005
Plugin Home:

Related Topics: TWikiPreferences, TWikiPlugins

-- TWiki:Main/AndreBonhote - 01 Nov 2004

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 wiki.fini? Send feedback
Note: Please contribute updates to this topic on at TWiki:TWiki.WeatherPlugin