Members: 16,996
Threads: 38,845
Posts: 159,389
Online: 19

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 11.11.2004, 21:41   #1 (permalink)
Junior Mamber
 
webfitz's Avatar
 
Join Date: Apr 2004
Posts: 25
webfitz is on a distinguished road
Default Weather Modules for 4.5.1

I noticed there were some people wanting to display weather on their 4.5.1 sites so I re-coded the Canadian weather module. There are now two to choose from: Weather for Canadian cities (shows weather in celcius and wind conditions) and for some US cities (which shows temperature in fahrenheit - there are no wind conditions for the US as they display in km/h rather than miles so I just removed that line). The other thing is that with 4.5.1 you can make a copy of your modules. So, if you want to display the weather for more than one city on your site, just make a copy of the module and select a different city.

You can see them in action and download from here:

www.webfitz.ca
webfitz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 16.11.2004, 03:01   #2 (permalink)
Baby Mamber
 
Join Date: Aug 2004
Posts: 5
dondo521 is on a distinguished road
Default Re: Weather Modules for 4.5.1

Hello, I have added an airport in the xml page but get this error on my website...any ideas why?
Thanks,
dondo521


Warning: strpos(): Offset not contained in string. in /home/adelphia/domains/adelphiama.com/public_html/modules/mod_usaweather.php on line 96

Warning: strpos(): Offset not contained in string. in /home/adelphia/domains/adelphiama.com/public_html/modules/mod_usaweather.php on line 102
dondo521 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 16.11.2004, 04:16   #3 (permalink)
Junior Mamber
 
webfitz's Avatar
 
Join Date: Apr 2004
Posts: 25
webfitz is on a distinguished road
Default Re: Weather Modules for 4.5.1

What airport are you trying to add to the xml page?
What airport code are you using?
webfitz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 16.11.2004, 04:25   #4 (permalink)
Baby Mamber
 
Join Date: Aug 2004
Posts: 5
dondo521 is on a distinguished road
Default Re: Weather Modules for 4.5.1

Plymouth Massachusetts
KPYM
http://weather.noaa.gov/weather/current/KPYM.html
dondo521 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 16.11.2004, 04:32   #5 (permalink)
Junior Mamber
 
webfitz's Avatar
 
Join Date: Apr 2004
Posts: 25
webfitz is on a distinguished road
Default Re: Weather Modules for 4.5.1

This weather modules doesn't use the codes from the noaa website.
The only codes you can use are found here:

http://weatheroffice.ec.gc.ca/forecast/usa/us_e.html

This is the Canadian weather office and there only SOME cities in the US (and Canada) that they forecast for. You will need another weather module in order to display Plymouth as I don't see it on their list.
webfitz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 16.11.2004, 04:38   #6 (permalink)
Baby Mamber
 
Join Date: Aug 2004
Posts: 5
dondo521 is on a distinguished road
Default Re: Weather Modules for 4.5.1

Thank you my friend, I'll have a look-great job on the module by the way...!
dondo521
dondo521 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 16.11.2004, 04:43   #7 (permalink)
Baby Mamber
 
Join Date: Aug 2004
Posts: 5
dondo521 is on a distinguished road
Default Re: Weather Modules for 4.5.1

Do you have the exact link to the listing of the codes? I cant seem to find them at the site you gave me...
dondo521
dondo521 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 16.11.2004, 08:21   #8 (permalink)
Baby Mamber
 
Join Date: Nov 2004
Posts: 2
webjay is on a distinguished road
Default Re: Weather Modules for 4.5.1

Nice, but why didnt you include the images?
webjay is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 16.11.2004, 10:53   #9 (permalink)
Junior Mamber
 
webfitz's Avatar
 
Join Date: Apr 2004
Posts: 25
webfitz is on a distinguished road
Default Re: Weather Modules for 4.5.1

Note: As stated, the weather module does not fully support all cities (even if they're on the list). If you don't get an image, it's because the weather office does not receive the current conditions for that city. If you follow this link you can see an example - look under the heading 'Currently'. It says 'Not observed' so you won't get an image. The four letters (KANB) after the ? is the code for the city. I tried to only include cities that will display current forecasts.

http://weatheroffice.ec.gc.ca/forecast/city_e.html?KANB
webfitz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 16.11.2004, 10:59   #10 (permalink)
Junior Mamber
 
webfitz's Avatar
 
Join Date: Apr 2004
Posts: 25
webfitz is on a distinguished road
Default Re: Weather Modules for 4.5.1

You have to look for the code in the browser line. For example, the code for Boston is KBOS, as shown here after the ?:

http://weatheroffice.ec.gc.ca/forecast/city_e.html?KBOS

It appears that Boston is the only city that will display the current weather conditions, all other places in Mass are 'Not Observed'. This is the big drawback to this module for US users.
webfitz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
4.5 Modules in 4.5.1 perlom Mambo 4.5.1 General Talk 0 05.11.2004 07:59
4.5.1RC1 Admin Modules idigital Mambo 4.5.1 Bugs 4 22.10.2004 22:34
Javascript error while administering modules (document.adminForm.task is null or not harshadoak Mambo 4.5.1 Bugs 0 25.08.2004 09:32
New Modules -> Panda Pack setup Development Announcements 6 23.07.2004 18:42


All times are GMT +2. The time now is 09:21.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.