cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sajarac
Kudo Kingpin
Kudo Kingpin

Weather app issue

Hi there,

 

I have this app using the MSN weather and I have the following:

 

App OnStart:

Set(myLocation, BingMaps.GetLocationByPoint(Location.Latitude, Location.Longitude))

 

Button:

UpdateContext({Weather: MSNWeather.CurrentWeather(myLocation.name, "Imperial")})

 

Label to check Postal Code Retrieved:

myLocation.address.postalCode

Result: L5A 3C6

 

Label Temp: 

MSNWeather.CurrentWeather(myLocation.address.postalCode,"Imperial").responses.weather.current.temp

 

Label Wind:

MSNWeather.CurrentWeather(myLocation.address.postalCode,"Imperial").responses.weather.current.windSpd

 

Label Humidity:

MSNWeather.CurrentWeather(myLocation.address.postalCode,"Imperial").responses.weather.current.rh

 

And the problem is, sometimes the app only catch the first 3 letters for my postal code and showing this error:

 

Any help?

 

thanks in advance

 

image0.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-siky-msft
Community Support
Community Support

Hi @sajarac ,

 

The Valid inputs of Location parameter in MSNWeather.CurrentWeather function are City, Region, State, Country, Landmark, PostalCode, and Lat.Long. 

If the postal code it returns is not complete, please change to use other input.  For example:

MSNWeather.CurrentWeather(myLocation.name,"Imperial").responses.weather.current.temp

Or

Weather.responses.weather.current.temp

 

Hope this helps,

Sik

 

View solution in original post

1 REPLY 1
v-siky-msft
Community Support
Community Support

Hi @sajarac ,

 

The Valid inputs of Location parameter in MSNWeather.CurrentWeather function are City, Region, State, Country, Landmark, PostalCode, and Lat.Long. 

If the postal code it returns is not complete, please change to use other input.  For example:

MSNWeather.CurrentWeather(myLocation.name,"Imperial").responses.weather.current.temp

Or

Weather.responses.weather.current.temp

 

Hope this helps,

Sik

 

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,738)