Weather

The Yahoo! Weather RSS feed for any city can be shown as an HTML page using an XML file and an XSLT stylesheet. These files ship on all NTBs made since V4.3.0 in June 2006.

Requirements

  1. The NTB must be successfully subscribed to the Yahoo! Weather newsfeed for the city in question.
  2. The newsfeed must be named "Yahoo Weather" (case sensitive)
  3. The newsfeed must be playlisted in at least one Layout on the NTB.
  4. There must be a file named "Weather.xml" and a folder named "Weather_files" in the "media/Weather" folder.

How to Change the City

  1. Browse to Yahoo! Weather at http://weather.yahoo.com.
  2. Locate your Country, State and City and view the forecast for your city.
  3. Get the four-letter, four digit code for your city from the address bar in the browser. London, for example, is "UKXX0085" and Boston, MA is "USMA0046".
  4. Browse to the "Yahoo Weather" newsfeed in the "Newsfeeds" on the NTB
  5. Replace the existing city code in the URL for the feed with the new one.
  6. Click the "Update" button for the newsfeed.

How to Switch Between Celsius and Fahrenheit

  1. Browse to the "Yahoo Weather" newsfeed in the "Newsfeeds" on the NTB
  2. Change the last letter in the URL from "c" to "f" or vice versa.
  3. Click the "Update" button for the newsfeed.

How to Create the Yahoo Weather Newsfeed

  1. Browse to Yahoo! Weather at http://weather.yahoo.com.
  2. Locate your Country, State and City and view the forecast for your city.
  3. Click the "C" or "F" to get temperatures in Celsius or Farenheit.
  4. Click the orange "RSS" button to view the newsfeed for your city.
  5. Copy the entire URL as it appears in the address bar of your browser.
  6. Browse to the "Newsfeed Manager" on the NTB.
  7. Create a new newsfeed named "Yahoo Weather" (exactly) and paste the URL in.
  8. Set the refresh interval to 1 hour.
  9. Click the "Add" button to add this newsfeed to the system.
  10. Check the message to make sure the NTB was able to access the feed.

How PlayList the Yahoo Weather Newsfeed

Unfortunately the newsfeeds do not read well as scrolling text. Degree symbols, for example, are not included in the text.

  1. Edit the Playlist of a Zone that can accept HTML and Scrolling text in the desired Layout.
  2. In the PlayList (yellow-shaded) section, click all "Remove item" buttons that may be there to empty the PlayList.
  3. In the Special Items (pink-shaded) section, locate the "Yahoo Weather" newsfeed.
  4. Click the "Add" button to add the Yahoo Weather newsfeed to the playlist.
  5. In the PlayList section, click the "Edit" button for the Yahoo Weather newsfeed.
  6. Set the speed to 0 and the duration to 5 seconds.
  7. Remove the tick from the "Description" box.
  8. Click the "Apply" button.
  9. In the Folders (blue-shaded) section, locate the folder "media/Weather".
  10. In the Files (green-shaded) section, locate the file "Weather.xml".
  11. Click the "Add" button to add "Weather.xml" to the playlist.
  12. In the PlayList section, click the "Edit" button for "Weather.xml".
  13. Set the duration to one hour (or more).
  14. Click the "Apply" button.
  15. In the "Layout Manager" page, click the "Activate Diary and Layouts" button to make the changes live.

How To Change the Appearance of the Weather Page

The weather page is an RSS newsfeed converted to HTML by an XSLT stylesheet.

The stylesheet is located in the "media/Weather/Weather_files" folder. Feel free to download it, modify it for your own purposes and re-upload it.

It will require some skill in XSLT stylesheets to modify the file. People with HTML only experience should, however, find it intuitive after reading the file.

Troubleshooterer

No text appeared in the weather zone.

Ensure that the NTB has internet access and that the Yahoo Weather newsfeed URL is correct.

The weather data shows "n/a"

You have probably subscribed to the URL for a small town. Try using a bigger city nearby.

Connecting Live Sensors

It is possible to connect sensors (temp, wind speed, etc) and to show these data on the display.

You need software running on another PC to read the data from the instruments and to publish the data in a web page or RSS newsfeed on a server. You then get the NTB to show the web-page or show the newsfeed. You can buy IP temperature sensors that publish the temperature as an XML feed. See www.papouch.com

ONELAN is the 26th fastest growing technology company in the UK — Deloitte Technology Fast50

© Copyright 2008. ONELAN Limited.
Tel: +44 (0)1491 411400
Email: sales@onelan.co.uk