logo
search
Others

How to Automatically Show SharePoint Weather Based on User Location

WPS EditorWPS Editor Oct 7, 2026 871 views

Question details

The user wants to configure the SharePoint Weather web part to dynamically update based on the geographical location of the person viewing the site.

How to Automatically Show SharePoint Weather Based on User Location
Product
Microsoft SharePoint
Device & OS
not provided
Scenario
Customizing a SharePoint intranet page to provide personalized local weather information for globally distributed teams.
Observed behavior
The standard SharePoint Weather web part requires a manually configured city or region and does not automatically detect or display weather based on individual user locations.
Before you start

Ensure you have Site Owner or Designer permissions to add and edit web parts on your SharePoint page, and verify that users' browsers are configured to allow location tracking.

Solution 1Recommended

Develop a Custom Dynamic Weather Widget using Power Apps

Since SharePoint does not support dynamic location-based weather natively, you can embed a custom Power App that utilizes browser location services to fetch and display local weather.

The standard Weather web part in SharePoint requires hardcoding a specific city or region. To make the display dynamic for each viewer, you must create a custom application using Microsoft Power Apps that requests the user's location coordinates and fetches weather data via an API.

Note that this approach requires custom development knowledge and appropriate Power Apps licensing within your Microsoft 365 environment.

1
Create a new Canvas app

Log into Microsoft Power Apps, click on 'Create', and select 'Blank app' to start a new Canvas app.

2
Capture location coordinates

Insert a label and use the 'Location.Latitude' and 'Location.Longitude' functions in the formula bar to capture the user's current geographical coordinates.

3
Connect a Weather API

Go to the 'Data' panel, add a weather connector (such as MSN Weather), and pass the captured coordinates to fetch the local weather details.

4
Publish and get the App ID

Save and publish your Power App. Navigate to the app details page and copy the App ID or Web Link.

5
Embed in SharePoint

Go to your SharePoint site, click 'Edit' on the page, add a 'Power Apps' web part, and paste the App ID into the web part property pane to display your dynamic widget.

Develop a Custom Dynamic Weather Widget using Power Apps
Browser Permissions Required: Users will be prompted by their web browser to allow location access the first time they view the embedded web part. If denied, the app cannot display their local weather.
Free Microsoft Office alternative

Looking for a Better Office Suite? Try WPS Office

While configuring Microsoft SharePoint sites for your team, you might also be looking for a cost-effective way to manage your desktop documents. WPS Office provides a free, lightweight, and highly compatible alternative to Microsoft Office, perfect for teams looking to streamline workflows without expensive licensing.

  1. 1. Visit the official website: Navigate to wps.com using your web browser.
  2. 2. Download the software: Click the 'Free Download' button to download the installer for your operating system.
  3. 3. Install and start: Run the downloaded installer and open WPS Office to start creating documents immediately.
Fully compatible with Microsoft Word, Excel, and PowerPoint file formats for seamless site documentation sharing.Lightweight installation ensures fast performance, even on older devices.Familiar, tabbed user interface allows for instant migration and easy onboarding.Built-in robust PDF editing tools combined with standard office applications.
microsoft office alternative - wps office

Frequently Asked Questions

Can I use a third-party weather widget in SharePoint?

Yes, you can use the 'Embed' web part to integrate third-party HTML or iframe weather widgets that support IP-based location tracking. However, this depends on your organization's security policies regarding external scripts.

Why does the SharePoint Weather web part show the wrong temperature unit?

The standard web part may default to Celsius instead of Fahrenheit, or vice versa. To fix this, edit the SharePoint page, edit the Weather web part properties, and switch the temperature units to your preferred regional setting.

Is it possible to hide the Weather web part for specific users?

Yes, you can enable 'Audience Targeting' in the web part settings. This allows you to show the weather information only to specific Microsoft 365 groups or security groups within your organization.