In this “Get Current Weather in Power Automate from MSN Weather” article, we will learn how to get current weather from MSM Weather for a given location using the Power Automate Flow. Here I will show you the step-by-step process to develop this current weather flow.
In my previous article, I showed how to get the weather forecast summary for the day, and here I will show how to get the weather summary report for the particular current time. Without delay, let’s get started with the actual implementation and demo of the current weather summary using Power Automate Flow.
Get Current Weather in Power Automate from MSN
Let’s follow the below steps to implement the current weather in Power Automate Flow:
Step: Build an instant cloud flow (Create a manually triggered test flow).
Add a manually triggered Power Automate flow. Click on the “My Flows” menu from the left-side panel.
Click on the “Instant cloud flow” template.
In the “Build an instant cloud flow” screen, enter the flow name and select “Manually trigger this flow” under “Choose how to trigger this flow“, then click on the “Create” button.
Then, we will have the “manually trigger a flow” trigger ready.
Step: Add Get Current Weather Action from MSN Weather
Add a “Get current weather” action from the MSN weather section.
Once we add the “Get current weather” action, we need to configure the below parameters:
- Location: Enter your location. The valid inputs are city, region, state, country, landmark, postal code, latitude, and longitude.
- Units: Select imperial for Fahrenheit (°F) or metric for degrees Celsius (°C).
Get current weather action in Power Automate configuration
Let’s run this flow now. We will see the below outputs:
Step: Add the Send an email (V2) action to send the weather report email.
Add a “Send an email (V2) or Send an email (V3)” action based on which action works for you to send the weather report, then configure the below parameters in your “Send and email” action:
- To: Your email ID or group email ID for the larger audiences
- Subject: Your weather email subject; just copy and paste the below:
Subject:
Current weather summary for your location: @{outputs('Get_current_weather')?['body/responses/source/location']}
- Body: Your weather email body; just copy and paste the below using the code view mode:
Body:
<p><span style="font-si()</li>>px; font-family:Helvetica;color: rgb(44,130,201)"><strong>Hi - Here is your current (@{utcNow()}) weather summarry:</strong></span></p> <ul> <span style="font-size: 14px; font-family:Helvetica"> <li><b>Conditions:</b> @{outputs('Get_current_weather')?['body/responses/weather/current/cap']}</li> <li><b>Location:</b> @{outputs('Get_current_weather')?['body/responses/source/location']}</li> <li><b>Temperature:</b> @{outputs('Get_current_weather')?['body/responses/weather/current/temp']}(@{outputs('Get_current_weather')?['body/units/temperature']})</li> <li><b>Dewpoint:</b> @{outputs('Get_current_weather')?['body/responses/weather/current/dewPt']}(@{outputs('Get_current_weather')?['body/units/temperature']})</li> <li><b>UV Index:</b> @{outputs('Get_current_weather')?['body/responses/weather/current/uv']}(@{outputs('Get_current_weather')?['body/responses/weather/current/uvDesc']})</li> <br> </span> </ul>
This is the complete Get Current Weather Summary email configuration to get the current weather summary for your location in your inbox:
Notes:
- If you want to copy and paste all the action configurations used in this get current weather forecast report, you must have the same name for each action; otherwise, it will not work. You then need to configure these manually by yourself.
- Along with sending an email notification about the current weather forecast, you also can post this as an adaptive card in the Microsoft Teams channel. Refer to my previous article on how it works: Get Weather Forecast Using Power Automate For Today
- To design the adaptive card, we need to use the Microsoft Adaptive Card Designer tool.
Demo Output: Get Current Weather in Power Automate from MSN
Let’s run the flow manually, let it completed successfully.
We can see the current weather summary report email, like below:
Current weather summary email output:
Summary: Get Current Weather Summary in Power Automate from MSN
Thus, in this article, we have learned about how to get current weather using Power Automate flow from MSN and how to use the get current weather action in Power Automate.
See Also: Power Platform Articles
You may also visit the Power Platform article hub, where you will see a bunch of articles focusing on Power Platform, like Power Automate, Power Apps, etc. All the articles are written with real-time project scenarios and troubleshooting techniques.
If you found this article helpful and enjoyed it, please consider sharing it with your friends and colleagues. Please don’t forget to subscribe to our site to receive our latest articles directly in your inbox. 🙂