web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Showing current temper...
Power Apps
Unanswered

Showing current temperature on page

(1) ShareShare
ReportReport
Posted on by 121

Hi team,

I'm wanting to return current weather conditions to a page on my app, starting simple such as the current temperature.

 

I have found the free MSN Weather connector, however this appears to require manual entry of a location to return weather details. I'm wondering if anyone has any ideas how I would be able to use the inbuilt location functions of PowerApps to have the MSN weather connector return the temperature at the location of where the user device is?

 

Thanks in advance!

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at

    Hi @Marty_Dub ,

    I can give you what a use for the weather today and tomorrow at a location - first set a Variable (after connecting MSN Weather

    UpdateContext(
     {
     varWeatherToday: MSNWeather.TodaysForecast(
     Location.Latitude & "," & Location.Longitude,
     "Metric"
     ).responses,
     varWeatherTomorrow: MSNWeather.TomorrowsForecast(
     Location.Latitude & "," & Location.Longitude,
     "Metric"
     ).responses,
     varWeather:true
     }
    )

    then a HTML box

    "<h3><u>Today</u></h3>
    <p><b>Location: </b>" & varWeatherToday.source.location & "</p>
    <p><b>Forecast:</b><br>" & varWeatherToday.daily.day.summary & "</p>
    <p><b>Temperature (Day):</b> &nbsp;&nbsp; Low: " & varWeatherToday.daily.tempLo & "&nbsp;&nbsp; High: " & varWeatherToday.daily.tempHi & "</p>
    <p><b>UV Index:</b>&nbsp;&nbsp;" & varWeatherToday.daily.uv & " (" & varWeatherToday.daily.uvDesc & ")</p>
    <p><b>Wind:</b>&nbsp;&nbsp;" & varWeatherToday.daily.day.windSpd & " kph (max " & varWeatherToday.daily.windMax & ") from " & varWeatherToday.daily.day.windDir & " Degrees</p>
    <p><b>Conditions:</b>&nbsp;&nbsp;" & varWeatherToday.daily.day.cap & "</p>
    <h3><u>Tomorrow</u></h3>
    <p><b>Forecast:</b><br>" & varWeatherTomorrow.daily.day.summary & "</p>
    <p><b>Temperature (Day):</b>&nbsp;&nbsp;Low: " & varWeatherTomorrow.daily.tempLo & "&nbsp;&nbsp; High: " & varWeatherTomorrow.daily.tempHi & "</p>
    <p><b>UV Index:</b>&nbsp;&nbsp;" & varWeatherTomorrow.daily.uv & " (" & varWeatherTomorrow.daily.uvDesc & ")</p>
    <p><b>Wind:</b>&nbsp;&nbsp;" & varWeatherTomorrow.daily.day.windSpd & " kph (max " & varWeatherTomorrow.daily.windMax & ") from " & varWeatherTomorrow.daily.day.windDir & " Degrees</p>
    <p><b>Conditions:</b>&nbsp;&nbsp;" & varWeatherTomorrow.daily.day.cap & "</p>"

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • Marty_Dub Profile Picture
    121 on at

    Thankyou @WarrenBelz - that worked perfectly.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard