Put Your Wx Station on your "My Yahoo" Home Page!

Yahoo released a new beta of the MyYahoo portal today. It allows you to link to ANY RSS feed, not just the listed feeds like BBC, etc! Here’s what my home page looks like now:

The cool part is that it looks just like a “real” news service. The downside is that Yahoo only seems to update it once per hour. Still, it’s a pretty nice feature to put in your portal…

I’ll put the process for creating this in the next message.

Rich

Basically, all you need to do is have WD create an RSS feed (google RSS FAQ for more info), and upload it to your web site. I wrote a template called wxlocal4.html the same way I would for any custom WD web page. However, this template contains a very simple RSS XML feed. Here’s my version (as seen in MyYahoo above):

<?xml version="1.0"?>

cool :smiley:

why weren’t you here two months ago http://www.weather-watch.com/smf/index.php?topic=4741.0

I tried, failed quickly, then gave up even quicker :roll:

Aha, I missed that one. I just started looking into RSS myself… It’s a pretty cool way to move info around the web. It took me three or four tries to get this all working. The tricky part was waiting for Yahoo to queue the feed – it seemed like it wasn’t really working at first!

Their new RSS works very well. I also have it now reporting via the xml file I’m sending via WD.
Like you said, it took a little bit for it to show up on My Yahoo!.

Thanks for sharing the code… :smiley:

Lar,
What do you mean “I also have it now reporting via the xml file I’m sending via WD.” ?

Lar, What do you mean "I also have it now reporting via the xml file I'm sending via WD." ?
an rss feed is just a xml file. so using WD's xml creation, you can make a rss feed :wink:

Getting an error with my xml page simply using temperature.

[code:1]
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


An invalid character was found in text content. Error processing resource ‘file:///Y:/Inetpub/wwwroot/WeatherPage/rss.xml’…

  <title>Current Temperature 81.8

[/code:1]

Here’s my RSS XML file data

[code:1]

<?xml version="1.0"?> Monrovia, AL Weather http://weather.ruppworld.com/ Greg's Weather Station... en-us Information as of %date%@%time% Current Temperature %temp%(HeatIndex %heati%) Lightening Strikes last minute %lighteningcountlastminute% [/code:1]

Is appears not to like the degree sign and that is an XML no no so how did shelt59 get by with it?

Crud,
Now I have a test rss.xml file and Yahoo says it can’t find it?

Can some one try this page and see if it works?

http://12.219.144.217:8000/weatherpage/rss.xml

I don’t know why it should make a difference in the resulting output file but he’s using temp tags that don’t return the degree symbol.

Greg,
Do you have it set up as a wxlocalXX.html so that WD can fill in the tags. If so, then have the ftp to update to your site changing its name to rss.xml.
Your file looks ok to me and it should process properly as a rss.xml to Yahoo!
I told it where to find the file via the http:… command on their page.
I don’t see anything wrong with your xml file.

Greg,
Do you have it set up as a wxlocalXX.html so that WD can fill in the tags. If so, then have the ftp to update to your site changing its name to rss.xml.
Your file looks ok to me and it should process properly as a rss.xml to Yahoo!
I told it where to find the file via the http:… command on their page.

Well which tag shows the current temp without the degree symbol?

Lar,
Yes I do have it listed as wxlocal1.html and it’s producing the XML file just fine but the degree symbol is an invalid XML symbol. So I temporarilily have it hard coded to 85 just to test it. Now Yahoo states it can not find the file. They must not like ports other than 80. Oh well that’s life. It would have been cool to try.

Here’s my rss file:

<?xml version="1.0"?> Lar's Weather http://www.jlocon.com Lar's Weather Station... en-us Outside: %temp%, %hum%% Humidity at %time% Weather Room: %indoortemp% at %time% Today's High: %hightempinusa% at %maxtempt% Today's Low: %lowtempinusa% at %mintempt%

Lar,
Does your url to your XML file have a port listed or is it being served on a server running on port 80?

Lar,
I cut and pasted your code here and it fails with an invalid character as well. Maybe the RSS parser doesn’t care but the XML 4.0 parser will not render the file.

Greg,
I just upload to my ISP renaming it to the rss.xml, no port is indicated.

That’s probably the problem. I server my own pages and can not use port 80 so it appears yahoo doesn’t like the port in the url. Bummer.