
Announcements
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
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