Adding local weather to your SharePoint intranet home page

weatherI jokingly said at a recent presentation that I thought adding weather to our intranet’s home page was a good idea for employees like me who work in the basement and don’t see much of “the outside.” But it can also help with planning and decisions depending on your industry and daily routines.

Accuweather has a free script for a widget you can use that resizes perfectly on different screen sizes. I’m impressed with its simplicity and how dynamic it is.

All you need is a script editor where you’re placing the weather on your page and the following script from Accuweather.com. This script will work as-is from a straight copy and paste, but you should generate your own code from their website to paste after the closing style tag so that when clicked, users will be taken to more info specific to their location instead of mine. You can start from scratch on their site, just be sure to add the “style” tag and content below before the script they generate for you. This will get rid of a rather pesky button they include.

<style>
.aw-toggle{
display:none;
}
</style>
<a href="https://www.accuweather.com/en/us/lawrence-ks/66044/weather-forecast/328846" class="aw-widget-legal">
</a>
https://oap.accuweather.com/launch.js
Advertisements

Written by SharePoint Librarian

I'm a SharePoint Business Analyst and Jayhawk from the Kansas City Area.

2 comments

  1. Is it possible to add this to a SharePoint Communication Site? Worked for me on a “regular” sharePoint Online site, but not in the embed web part of the Communication site. Thanks!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.