Getting Yahoo weather to show in sitemap

I’m trying to populate a few weather items into my sitemap. I’ve tried setting up the Weather binding, and I’ve also tried following the wiki sample instructions for the Yahoo Weather icons
( )

Neither one is producing results. For simplicity, I’ll stick with the Yahoo sample from the wiki for now. Here are the steps I’ve taken:

  1. I have successfully downloaded and renamed the weather icons to the webapps/images directory.

  2. I’ve created the xsl file as instructed, copying the code directly from the wiki page. Was I supposed to edit something in that code?

  3. I created the translation map for the weather code numbers. I know this one works correctly, because of a result I will explain in a moment.

  4. I added the number item to my .items file. I edited the region code in the URL to be for my region. (Wiki didn’t explain having to do this part, but I dug into the yahoo API a bit and figured it out. As a non-programmer, this kind of thing is still very new to me!)

  5. I added a text item to my sitemap, using a direct copy/paste of the sample code with no edits.

Results: The text item shows up on the UI, but it’s blank aside from the label. I took a look at the log and saw that it was complaining "Could not find a mapping for ‘-’ in the file ‘’. So, I added a “-” line to the map file, and set it to say “error.”

Now when I reload the UI, the text item says “error” instead of being blank, and there are no more errors in the log. I take this to mean that the transformation map is set up correctly.

Unfortunately, I’m still not getting any weather-related results. :frowning:

I suspect that the error is in the xsl file? Maybe I was supposed to edit something in there? Or maybe Yahoo has changed something in its output since the wiki was last updated?

Nevermind, I figured out the yahoo issue. The wiki didn’t explicitly say that the HTTP binding was needed, but of course it is… I installed the binding and now the yahoo weather icons are working as expected.

I still have an issue with the weather binding, but I’ll give that one it’s own thread.

See this thread to see some working examples using the weather binding.

Thanks, Rich. I actually just finished reading through that thread. I’m in the process drafting a new post now, since even after reviewing that thread and a few others, I can’t seem to get the weather binding to work. Stay tuned!

New thread for weather binding is here.