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


Displays nice weather graphics for a specific location


This plugin displays weather information for a specific location. It uses CPAN:Weather::Com and requires a free Weather.com 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. %WEATHERPLUGIN_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 = 0000000000
    • Set LICENSE = fdfdfdfdfdfdfdfd

  • 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.

  • For an automated installation, run the configure script and follow "Find More Extensions" in the in the Extensions section.

  • Or, follow these manual installation steps:
    • Download the ZIP file from the Plugins home (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
    • Set the ownership of the extracted directories and files to the webserver user.
    • Install the dependencies (if any).

  • Plugin configuration and testing:
    • Run the configure script and enable the plugin in the Plugins section.
    • Configure additional plugin settings in the Extensions section if needed.
    • Test if the installation was successful:
%WEATHER{Zurich, Switzerland}%

Plugin Info

Plugin Author: TWiki:Main.AndreBonhote
Copyright: © 2004 TWiki:Main.AndreBonhote
© 2008-2011 TWiki:TWiki.TWikiContributor
License: GPL (GNU General Public License)
Plugin Version: 2011-04-11
Change History:  
2011-04-11: TWikibug:Item6638: Doc improvements -- TWiki:Main.PeterThoeny
2004-11-01: Initial version
TWiki Dependency: $TWiki::Plugins::VERSION 1.024
CPAN Dependencies: Weather::Com
Other Dependencies: none
Perl Version: 5.005
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/WeatherPlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/WeatherPluginDev

Related Topics: TWikiPlugins, UserDocumentationCategory, TWikiPreferences

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatmd5 WeatherPlugin.md5 r3 r2 r1 manage 0.2 K 2011-04-12 - 04:35 PeterThoeny  
Compressed Zip archivetgz WeatherPlugin.tgz r3 r2 r1 manage 4.7 K 2011-04-12 - 04:35 PeterThoeny  
Compressed Zip archivezip WeatherPlugin.zip r4 r3 r2 r1 manage 6.1 K 2011-04-12 - 04:35 PeterThoeny  
Unknown file formatEXT WeatherPlugin_installer r3 r2 r1 manage 3.4 K 2011-04-12 - 04:35 PeterThoeny  
Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r9 - 2013-10-16 - PeterThoeny
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.