Skip to main content
Laura Rogers @WonderLaura

Laura Rogers @WonderLaura

Go Search
SharePoint911
Our Services
Training
Our Team
About SP911
Important Links
SharePoint 2010
Contact Us
  

SharePoint911 > Blogs > Laura Rogers @WonderLaura > Posts > My Weather RSS Feed

 Posts

My Weather RSS Feed

Do you want logged in users to see a RSS feed of their own weather?  If you have MOSS Enterprise, this can be done using the Current User Filter web part and the RSS Viewer web part!

One thing that needs to be done ahead of time: Your zip code field needs to be set in the SSP as visible by everyone and replicable.  (I'll go over this at the end)

This is the URL that I obtained from the weather.com site, that will display a RSS feed of just weather from my zip code.  See that my zip (35242) is in the middle.
http://rss.weather.com/weather/rss/local/35242?cm_ven=LWO&cm_cat=rss&par=LWO_rss

  1. Add the Current User Filter web part and the RSS Viewer web part to the page.
  2. In the Current User Filter properties: Set the SharePoint Profile Value field to "Zip Code"
  3. Expand the "Advanced Filter Options" section:
  4. Dissect the weather URL, and put only the part before the zip code in the box "Text to insert before values".
  5. Put the part of the URL after the zip code in the box "Text to insert after values", and click <OK>.
  6. Now, it's just as simple as creating the connection between the two web parts.  On the Current User Filter, click to create a new connection to send filter values to the RSS Viewer web part.
  7. Select to "Get Feed URL From"
  8. Done.  Now, your RSS Viewer should display the current logged in user's zip code weather.

So, for those of you who need help with the SSP part, here's how to add the zip code field:

In your SSP, go to "user profiles and properties", and then "View Profile properties".  If you don't see zip code in there, click "New Property".  Change the default privacy setting to Everyone.  Now, you may want to run this by a few people, because once we set this property to Replicable, it will always show on the user info list on each site, and can't be undone.  The Data Soucrce field to map from Active Directory is called postalCode.

Comments

Mark

Thanks Laura, my VP eats this kind of stuff up.  Would love to see a whole book of these sort of things.
John Ross at 10/16/2009 6:28 PM

Jeff (no, the other one)

We’ll use this on our revamped Intranet; maybe we can wean some users off their WSFA Weather Bug addiction.

Thanks!
John Ross at 10/16/2009 6:28 PM

Nancy

Is there any way to know in advance if the zip code field is present already?

And I would SO buy such a book, FYI!
John Ross at 10/16/2009 6:28 PM

Laura Rogers

Nancy,
When you add the Current User Filter web part to a page, and look at the drop-down list in the web part’s properties, that will show you the fields that already exist.

Laura
John Ross at 10/16/2009 6:28 PM

aparna_kurunkar@infosys.com

hi laura,

The Data Soucrce field to map from Active Directory is called postalCode.

In case in the SSP if the postalcode field is not there.How do we go about then?
at 12/28/2009 12:26 AM

Laura

Arparna,
You can open adsiedit.msc on a server.  Then, navigate to a user opject and open its properties.  Scroll through all the properties until you find the one that contains the zip code.  Note the name of it, and that's the one you need.

Laura
Laura Rogers at 12/29/2009 9:54 AM

prasad.mj@sonata-software.com

Hi, I've the following requirement

a. When user logs into the sharepoint portal, it should display the next travel city and the weather details at the location ( travel date + 2 future days after travel date with weather images).

b. User should be able to select a city and see the weather information in that city (current date + 2 days after current date with weather images).

Can you suggest me the best web service which will help me take care of this requirement.

Thank
Prasad
at 4/12/2010 11:30 PM

Add Comment

Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights. More information on content approval.

Your Name or Email *


Body *


CommentUrl


Today's Date *

Attachments

 

 

   

 Pages

About Me
Data View Web Part Screencasts
SharePoint FREE Resources
Speaking Engagements
Webcasts

 Our Book for End Users

 Our Book for Admins