How to Automatically Show SharePoint Weather Based on User Location
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.

- 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.
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.
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.
Log into Microsoft Power Apps, click on 'Create', and select 'Blank app' to start a new Canvas app.
Insert a label and use the 'Location.Latitude' and 'Location.Longitude' functions in the formula bar to capture the user's current geographical coordinates.
Go to the 'Data' panel, add a weather connector (such as MSN Weather), and pass the captured coordinates to fetch the local weather details.
Save and publish your Power App. Navigate to the app details page and copy the App ID or Web Link.
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.

Add Multiple Global Office Locations Natively
If custom development is not feasible, use the standard Weather web part to display multiple key office locations simultaneously so users can find their region.
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. Visit the official website: Navigate to wps.com using your web browser.
- 2. Download the software: Click the 'Free Download' button to download the installer for your operating system.
- 3. Install and start: Run the downloaded installer and open WPS Office to start creating documents immediately.

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.




