weatherreport

NP_Weatherreport.php

This plugin shows detailed weather information for most major cities in the world.

General Plugin info
Author: Edelpils / Cris
Current Version: V3.01
Download: http://www.xs4all.nl/~edelpils/nucleus_plugins/
Forum Thread: http://forum.nucleuscms.org/viewtopic.php?p=15088

Installing

  1. Check your server PHP Version. Must be V5.0 or higher !!. If you do not have PHP5 , download the V2.8 of this plugin!
  1. Download the right version (.zip for windows , .tar.gz for linux)
  2. Unzip / Untar the file and upload the contents to your plugin directory.
  3. Install the plugin...
  4. Go to http://xoap.weather.com/search/search?where=rotterdam and replace the city with the name of the city you want the weather information for. Write the loc_id (In this example NLXX0015) number down as you will need it in the configuration!

How to use the plugin

Insert <%Weatherreport%> on the desired place in your skin.

Available SkinVars and/or TemplateVars

  • I believe there are no restrictions.

Options

  • From version V3.0 of this plugin the following options are available
  1. Show graphical weather icon (128×128 , 64×64 or 32×32) (included)
  2. Show name of the city
  3. Show weather conditions (only in english)
  4. Show temperature
  5. Show feels like temperature
  6. Show humidity
  7. Show windspeed
  8. Show winddirection
  9. Show air-pressure
  10. Show air-pressure arrows
  11. Show Erythemal UV index
  12. Show Dew point temperature
  13. Show Visability

Screenshot

All temperatures and distances can be chooses either metric or imperial , but not both or individual.

Screenshot

:weatherreport.png

Tips and Tricks

PNG Transparency and IE

IE does currently not support transparent PNG. Here is a forum post with a good tip when you have problems using PNG and the Weather icons in PNG

http://forum.nucleuscms.org/viewtopic.php?t=10089

Switching from Metric to Iperial and visa versa

If you switch from Metric (Celcius) to Iperial (Fahrenheid) or visa-versa keep in mind that your settings will be read from cache until the refresh timer is triggerd. (!)

To make it easier for testing you should set the cache timer to 1 sec until you are satisfied with your current settings!

Wishlist

  • More options
  • Individual metric or imperial (or both)
  • Better layout support
  • You name it ;)

Bugs

  • Let me know!

History

Changelog

NP_Weatherreport Changelog

NP_Weatherreport V3.01

  • Fixed a little bug for weather conditions.
  • Some code improvements added.
  • Added option to provide a meaningfull sentence when weather conditions are N/A
  • Added support for the N/A icon when no weather conditions are available.

NP_Weatherreport V3.0

  • Rewrote and cleaned the code.
  • Takes full advantage of the simple_xml function of PHP5 (so do not use this version on PHP 4.x)
  • Added wind direction
  • Added Barometric Pressure
  • Added Barometric Pressure trend arrows
  • Added more icons (128×128 , 64×64 , 32×32) and simplified the use of them.

NP_Weatherreport V2.8

  • Adds SqlTablePrefix support (Thanks admun for reporting) (PHP4 compatible)

NP_Weatherreport V2.7

  • Checks retreived input for validity
  • Added air-pressure option.

NP_Weatherreport V2.6

  • Fixed URL in Plugin summary
  • Added cache control. (Decrease loading time)

NP_Weatherreport V2.5

  • Added GNU Licence
  • Fixed some bugs
  • Added better support for calm wind and unlimited sight

NP_Weatherreport V2.4

  • Valid XHTML 1.0 Transitional
  • Added some extra breaks in the output code for better readability
  • When visability is unlimited , clear the visability Unit
  • When wind is calm, clear the wind Unit

NP_Weatherreport V2.3

  • Fixed compatibilty with older PHP versions.

NP_Weatherreport V2.2

  • Optimized some code
  • Added option for visability

NP_Weatherreport V2.1

  • Optional extension (jpg / png / gif) can be used.
  • Relative path or URL to Icons can be used (i.e. ../weathericons/)
  • Added Show Erythemal UV index
  • Added dewpoint temperature
  • Cleaned some unused code
  • Inserted a space between temperature and F (Fahrendheid) and MPH

NP_Weatherreport V2.0

  • Changed name to english (instead of Weerreport)
  • Added lots of options (show temp yes/no , humidity yes/no)
  • Use graphic to display weather
  • Can display the weather conditions
  • Multi language (You can change it to suit your own needs)
  • Time Out protection when server is down (Experimental)

NP_Weerreport V1.0 Release

  • Initial release. Stopped working (disposed / Do not use)

Plugin review

NP_Weatherreport version 3.01 works with Nucleus CMS 3.31 - 2007-10-29 admun

 
weatherreport.txt · Last modified: 2007/10/29 16:57 by admun