rgrund
Junior Member
Austria
206 Posts |
Posted - 10 June 2004 : 12:58:54
|
HI,
I am finishing up these days a weather mod which gets the data from the website weather.noaa.gov and retrieves a metar file. These metar files are updated from all the airports allover the world.
I have taken a mod from mambo and converted the php script into asp.
The module can be configured as any other itz module from the administration area.
station = XXXX The metar station is a four letter uppercase code for your geographic area. If you don't know your closer metar station, take a look at AboutMetarStations. Default is LPPT, the metar station code for Lisbon, Portugal.
location = local The default is Lisbon, Portugal. You can freely choose the content of this parameter. It's used to describe your area.
align = center|left|right Defaults to left. It's just the alignment of the whole module, when displayed on your site.
unit = C|F Temperature unit, in Celsius (C) or Fahrenheit (F). Default to C.
display_temperature = yes|no If you want the temperature to not be displayed, choose no. Defaults to yes.
display_humidity = yes|no If you want the humidity information to not be displayed, choose no. Defaults to yes.
display_wind = yes|no If you want the wind velocity to not be displayed, choose no. Defaults to yes.
display_dew_point = yes|no If you want the dew temperature point to not be displayed, choose no. Defaults to yes.
display_visibility = yes|no If you want the visibility to not be displayed, choose no. Defaults to yes.
display_clouds = yes|no If you want the clouds information to not be displayed, choose no. Defaults to yes.
display_barometer = yes|no If you want the barometer to not be displayed, choose no. Defaults to yes.
display_conditions = yes|no If you want the local conditions to not be displayed, choose no. Defaults to yes. This looks something like 'very cloudy' or 'rain'. The conditions only are displayed if this option is set to yes and the metar station returns information about it. The don't give this information when not needed.
use_icon_status = yes|no If you want the icons to not be displayed, choose no. Defaults to yes.
local_time = x The time offset in hours from your location relative to EST. Defaults to 0.
use_border_icon = 1|0 Just displays a border around incons. Defaults to 0.
wind_unit = km/h|mps|kt|bf The wind unit to use. At the moment, you can choose from kilometers (km/h), miles (m), knots (kt) or beaufort (bf). Defaults to km/h.
visibility_unit = km|miles The visibility unit to use. You can choose from kilometers (km) or miles (m). Defaults to km.
layout=horizontal|vertical If you want the module to be displayed vertically, choose vertical. Otherwise, choose horizontal. Defaults to vertical.
display_wind_chill=yes|no If you want the wind chill factor calculation to not be displayed, choose no. Defaults to yes.
cache_timeout=x The time to cache locally the metar information, in seconds. The use of this parameters is highly recommended because of performance. If you don't want to cache data, set to 0. Defaults to 1800.
icon_theme = themeName The icon theme you want to use. This is a directory name present at modules/myweather/themedirectory that contais all the icons used by MyWeather. Defaults to default.
display_conditions = yes|no Shows or hides the local conditions if available.
display_observation= yes|no Shows or hides the last report observation time in UTC.
display_time= yes|no Shows or hides the local time.
The Mod can be loaded any where within the snitz forum or the sitenews (serverhacker version).
SO if you are interested to test that mod out, please send an email to mailto:robertgrund@yahoo.com
You will then get by Sunday the zip file and also the instructions.
Best regards,
Bob |
Internet should be OPENSOURCEd! |
|