PDA

View Full Version : Weather module


scotmum
30th June 2009, 11:45
Does anyone know where I can get a weather module for my website? i am looking for Scottish daily weather reports.

Thanks

DotNetWebs
30th June 2009, 11:51
Hi we use the weather.com API on our forum (see signature link)

Regards

Dotty

Private Detective London
30th June 2009, 12:07
Heres another option...

weather.com/services/weather-gadgets/?from=hp_tools

I've just got vista with the weather sidebar - half the fun seems to be it says its sunny when its raining and vice versa :rolleyes:

Dot Net Guru
30th June 2009, 12:15
Does anyone know where I can get a weather module for my website? i am looking for Scottish daily weather reports.

Thanks

The simplest solution would be to develop some code to consume the BBC weather forcasts that they make available in RSS XML format.

Regards
Nick Chambers - Freelance Web Developer
Website: www .nickchambers .co.uk

scotmum
30th June 2009, 12:38
You can actually get the code from the BBC website, but my site doesn't support it unfortunately.

Thanks for all the replies so far though!

fisicx
30th June 2009, 12:56
Scotmum, can't seem to load your site. I can get to scotmum.org but scotmum.com (in your sig and profile) doesn't appear to exist.

scotmum
30th June 2009, 13:06
Yes this is part of my on going hosting nightmare saga. The .com and .co.uk will be back up this week, but the .org works as you say. I'll change the signature link - thanks for letting me know I had forgotten!

LandingNet
1st July 2009, 13:15
If you want a completely customisable option and you only want it to show the current weather, then mweather by Matt Wilson is very good. You'll need to get your hands dirty with a bit of coding to make it work (uses airport/RAF METAR data) and to get it to look the way you want to, but works very well.

Do a google search for click sleaford, and you'll see it in action using RAF Cranwell data

Hope that helps

Shaun

scotmum
1st July 2009, 13:18
Thanks for the tip, but I can't even get the simple weather channel module to work - it just displays the code even though I have followed all the steps it tells me to. It is so frustrating when I can't make things work due to my limited techy abilities.

Private Detective London
1st July 2009, 13:33
Could it be your hosting, can you run scripts on it?

LandingNet
1st July 2009, 13:34
ok, not a problem.

What's the address of the page you can't get to work? I'll take a quick scan over for you to see if I can spot any thing...

scotmum
1st July 2009, 13:40
It could be - I am between hosts at the moment and seem to be floating in cyberspace while I leave one for the other!

scotmum
1st July 2009, 14:46
I have tried to paste the following code into the custom html part of the back end of my site:

<div id="wx_module_9723">
<a href="http://www.weather.com/weather/local/UKXX0052">Edinburgh Weather Forecast, United Kingdom</a>
</div>
<script type="text/javascript">

/* Locations can be edited manually by updating 'wx_locID' below. Please also update */
/* the location name and link in the above div (wx_module) to reflect any changes made. */
var wx_locID = 'UKXX0052';

/* If you are editing locations manually and are adding multiple modules to one page, each */
/* module must have a unique div id. Please append a unique # to the div above, as well */
/* as the one referenced just below. If you use the builder to create individual modules */
/* you will not need to edit these parameters. */
var wx_targetDiv = 'wx_module_9723';

/* Please do not change the configuration value [wx_config] manually - your module */
/* will no longer function if you do. If at any time you wish to modify this */
/* configuration please use the graphical configuration tool found at */
/* https://registration.weather.com/ursa/wow/step2 */
var wx_config='SZ=180x150*WX=FHW*LNK=SSNL*UNT=C*BGI=bo at*MAP=eur|null*DN=SCOTMUM.ORG*TIER=0*PID=11255605 67*MD5=a57ae325430ee333a28068e6bd47cd54';

document.write('<scr'+'ipt src="'+document.location.protocol+'//wow.weather.com/weather/wow/module/'+wx_locID+'?config='+wx_config+'&proto='+document.location.protocol+'&target='+wx_targetDiv+'"></scr'+'ipt>');
</script>

But it just displays this. I can't keep that up as it looks ridiculous. Will keep having a bash/hash at it!

scotmum
1st July 2009, 14:51
I appear to be a web genius! I have uploaded the code as a banner and it seems to have worked and it is now on the front page of my site.

Thanks to you all

LandingNet
1st July 2009, 15:49
Good stuff :cool:

KidsBeeHappy
1st July 2009, 16:06
You don't need a weather module for a Scottish forum. Everyday you simply post the forecast that it will be; sunny, windy, rainy, cloudy, hailstones, blowing a hooley and watch out for sunburn :D

Well, we've had all that today and it's not even teatime yet!!

scotmum
1st July 2009, 16:49
That is so true - there are always 4 seasons in one day up here!