You are here: TWiki> Plugins Web>WeatherPlugin (2008-12-12, SopanShewale)
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
elsemd5 WeatherPlugin.md5 manage 0.2 K 2008-12-12 - 12:50 SopanShewale checksum file , Uploaded as a part of Release Process
ziptgz WeatherPlugin.tgz manage 4.5 K 2008-12-12 - 12:50 SopanShewale See WeatherPlugin for details. Untar and run the installer script, Uploaded as a part of Release Process
zipzip WeatherPlugin.zip manage 5.8 K 2008-12-12 - 12:50 SopanShewale See WeatherPlugin for details. Unzip and run the installer script , Uploaded as a part of Release Process
elseEXT WeatherPlugin_installer manage 3.4 K 2008-12-12 - 12:50 SopanShewale Installer Script, Uploaded as a part of Release Process
Topic revision: r6 - 2008-12-12 - 12:50:42 - SopanShewale
 
TWIKI.NET
This site is powered by the TWiki collaboration platform
Ideas, requests, problems regarding TWiki? Send feedback
Copyright © 1999-2009 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.