Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Gordon Saxby 1347 posts 1608 karma points
    Feb 20, 2009 @ 14:56
    Gordon Saxby
    0

    help and suggestions on how to treat weather RSS

    A customer wants local weather displayed on their web site. I found the RSS feed on the BBC web site and have got it displaying in it's raw format (see http://twitpic.com/1l3bv), but it could do with looking a whole lot nicer!

    The RSS data is below. If you compare that against the page it came from - http://www.bbc.co.uk/weather/5day.shtml?id=2073 - you'll see that the information supplied in the RSS is rather short of what's shown on the web site! (I'm using the "3 day forecast feed")

    Does anyone have any advice / tricks / etc on how to format the info better? Alternatively, are there better weather RSS feeds available?


    [code]



    xmlns:blogChannel="http://backend.userland.com/blogChannelModule"
    xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
    xmlns:atom="http://www.w3.org/2005/Atom"




    [/code]

  • rorythecheese 110 posts 56 karma points
    Feb 20, 2009 @ 15:57
    rorythecheese
    0

    We use - http://xoap.weather.com/ and the xml looks like this for london - http://xoap.weather.com/weather/local/UKXX0085?cc=*&dayf=5 . THere's a instrucitons and icons if you sign up.
    Ii think thats here - http://www.weather.com/services/oap.html

  • bob baty-barr 1180 posts 1294 karma points MVP
    Feb 20, 2009 @ 16:00
    bob baty-barr
    0

    @gordon... here is how i work with the xml feed from yahoo weather....

    [code]

    ]>
    <>
    version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxml="urn:schemas-microsoft-com:xslt"
    xmlns:umbraco.library="urn:umbraco.library"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt"
    xmlns:str="http://exslt.org/strings"
    extension-element-prefixes="str"
    xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0"
    xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns"
    exclude-result-prefixes="msxml rdf umbraco.library yweather">



























     







    [/code]

    hope that helps for ideas on accessing the data, etc.

  • Gordon Saxby 1347 posts 1608 karma points
    Feb 20, 2009 @ 17:18
    Gordon Saxby
    0

    Thanks Bob - that's great! Could I be cheeky and ask to see your CSS for "weatherContainer" and associated?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies