1,804 articles and 14,696 comments as of Saturday, March 5th, 2011

EndUserSharePoint has combined resources with NothingButSharePoint.com. You can now find End User (Mark Miller), Developer (Jeremy Thake) and IT Pro SharePoint (Joel Oleson) content all in one place!

This site is a historical archive and is no longer being updated. Please update your favorites, bookmarks and RSS feeds.

NothingButSharePoint.com
Tuesday, March 30, 2010

Project for a Rainy Day: Create a Weather Magnet for a SharePoint Dashboard

Weather MagnetIt’s a rainy, nasty Tuesday in New York City, so I stayed home from the office to have a day long playdate with my five year old daughter.

After building three tents from bedsheets, painting a house that stores her stuffed animals, coloring fingernails with bright red nail polish, and having her help me cook a lunch of her favorite angel hair pasta with tomato sauce, we decided to do something REALLY fun: create a weather magnet for the dashboard in a SharePoint site. Yeh, I know… she’s a real geek.

We did a little search on Google and found that AccuWeather allows you to create a site magnet without having to register, so we chose that one.

The sign in page starts a three step process: Basic info, Themes and Get Your Weather. We started by filling in our basic info:

Weather Magnet - Step 1

We then chose the size we wanted. At first we went with the small one, but there wasn’t enough detail so we moved it up to the 240 x 420 version, although the 728 x 90 banner was pretty cool. We chose “Basic Colors” and then “Orange” so that we could have a nicely colored magnet:

Weather Magnet - Step 2

The third screen we had to agree to give away her pet turtle by checking the box at the bottom:

Weather Magnet - Step 3

We were then able to access the code to be pasted into our web page:

Weather Magnet - Step 4

And the final output is this: a real time weather indicator.

From there, we moved into our SharePoint site looking for a place to place the magnet. Aurora gently reminded me that you don’t try out a new concept on the front page of a site. She suggested that we build a test web part page to test the code first. I reluctantly agreed, although sometimes I do enjoy hosing an entire site by inserting untested code from an unknown web site.

Inside the SharePoint site, we created a blank web part page and then inserted a Content Editor Web Part. Using the source view, we pasted the weather magnet code to see what would happen:

Weather Magnet - Step 5

After a little touch up, turning off the chrome and centering the content, we were ready to export the web part and place it on the front of our entrance dashboard.

Weather Magnet - 6

So there you have it, a nice little rainy day project that will make you a hero in your five year old daughter’s eyes as she proudly shows off her major achievement from the safety of her bedroom tent.

Weather Magnet - 7

View all entries in this series: Rainy Day Project»
Entries in this series:
  1. Project for a Rainy Day: Create a Weather Magnet for a SharePoint Dashboard
 

Please Join the Discussion

28 Responses to “Project for a Rainy Day: Create a Weather Magnet for a SharePoint Dashboard”
  1. shona says:

    loved this. I added it to my my site

  2. Michael says:

    How do you center the content inside the webpart zone?
    Very useful article thank you Mark, daughter and rainy Tuesday!!

  3. Jay says:

    Pretty slick Mark, thanks for sharing. That is actually something that will be handy here with all the severe weather we get in the spring and fall.

  4. Natasha says:

    Griff and I say: Great job Aurora!!!! Oh and you too Mark.

  5. Jay_G says:

    This is a really cool enhancement. Simple, yet elegant.

    Is there any way to have this refresh, say every couple of minutes?
    I’ve added a meta refresh but that refreshes the whole page. I’m not too familiar with jQuery, but are there any jQuery solutions to auto-refresh just a single web part?

  6. Xene says:

    Okay Mark, Seeing that your picture is from the Sharepoint Community Calendar, I think the weather should reflect the conference locations. So as I sit here at home wishing I was there listening to all of you, I can also envy the weather you are enjoying. Next rainy day project perhaps?

    • That’s an interesting project. Each of the events “knows” it’s location. If there was a way to feed that information into a weather magnet on the View Item page, it might work. However, Aurora has insisted that I create a bank of analog time clocks before I enhance the weather magnet.

      Looks like you’re on your own for enhancing the weather magnet project.

      Mark

  7. Trudy says:

    OK, I am so glad my kids aren’t the only SharePoint kids around! My oldest and I are messing around building a homework site on my SharePoint Foundation test site on my home network. We are planning on trying out some of those great visualizations, gantt chart enhancements, and sparklines we learned in the workshops last week.

    I love the weather magnet project, it was quick, easy, and packs a nice visual punch. My users love it! Thanks for the project!

    • You users love it? You’ve already implemented it? That was quick!

      • Trudy says:

        We had been using bamboos world clock and weather to display weather for three different plant locations on our site. However we are currently only running one location so we didn’t need to display the others any more. Since we aren’t showing the three location we had the room for the extras, and I liked the 5 day forcast and radar views and thought those would be added benefits for our users.

        It was so fast and easy to implement I just created it real quick on the test sight and then exported the web part and redeplyed on the home page. all while waiting for another process to run. It was perfect!

        Thanks again!

  8. Beckie White says:

    Sweet! That could be useful to our outfacing site @ work!

    (& we have all the colors of the chairs, not just the blue.)

  9. Juli says:

    I like this. I wanted to use one of the Weather Stickers from Weather underground but the one I want to use gives me a tag error.

    Maybe you can look at it and give me some ideas.

    Here is the code link

    http://www.wunderground.com/geo/htmlSticker/US/GA/Suwanee.html

    It is the Weather Undergrounds searchable HTML.

  10. Another simple, easy to implement solution from EUSP! Thanks Mark, this works great!
    I now have a customized one for each regional division home page on our intranet.

  11. Paul UK says:

    Hi thanks for this, looks nice, do you know if this can be modified for UK weather?

    I tried to change the code of the webpart from zipcode to postcode but no joy.

    Perhaps the Accuweather widget doesnt support this, so I might have to set this up with another one. (Currently use Met Office)

  12. Mary Grace Hune says:

    I loved this and added it to my site. I have been trying to add an RSS viewer (I am on WSS 3.0). I keep getting an error when I import some of the free RSS Viewer web parts. Do you one of these on this site as well. The Weather Magnet was so easy and it worked exactly as you describe.

  13. That was a little too easy, Mary Grace. Download the handy-dandy, latest articles on EndUserSharePoint.com RSS Web Part for your viewing enjoyment. — Mark

    PS: You can build your own here: http://landmark-project.com/feed2js/build.php

  14. Ross says:

    This is great.

    Odd though I had to use the “My Space Code” for our site here in Canada. The standard “Web page code” didn’t work.

    Great webpart though!

  15. Juan Guzman says:

    Great webpart. Very easy to do. Looks good on our front page.

Trackbacks

Check out what others are saying about this post...
  1. [...] they click them to see the important ‘News’ announcements underneath? Then Mark Miller posted Create a Weather Magnet for a SharePoint Dashboard. The timing was perfect because I had just caught the end of a History channel show on meteorology [...]




Notify me of comments to this article:


Speak and you will be heard.

We check comments hourly.
If you want a pic to show with your comment, go get a gravatar!