Complete

Cannot get location of GARMIN weather for fenix8 series devices

Hi:

When I tried to get the location of GARMIN weather for fenix843mm, it seems that cc.observationLocationName is null. Both the simulator and real fenix8 devices reported the same issue. The SDK is 7.3.0.

Moreover, Users with other devices reported that they'd encountered the same issue after they upgraded their system of the watch.

Can somebody help on it? Thanks.

for example:

if(Toybox has :Weather) {
var currentConditions=Weather.getCurrentConditions();
if (null != currentConditions) {
// city
var cc = currentConditions as Weather.CurrentConditions;
var city;

if (null != cc.observationLocationName) {
var index = cc.observationLocationName.find(",");
city = (null != index) ?
cc.observationLocationName.substring(0, index) :
cc.observationLocationName;
} else {
city = "unknown";
}
}
}

  • This was identified during beta testing of the fenix 8 products and we enquired about it. Without getting into too much detail, the location names we were receiving were often incorrect, so the product team has dropped support for the location name in firmware. Since this renders the observationLocationName in CIQ basically useless, we're going to deprecate that particular member of the Weather API.

  • I also started seeing this with a 965.

    At one time, the locationName was the city I was actually in (it would change if I was in the town right across the freeway), then it changed to the actual location of the weather station (in my case, it was the main airport), and then changed again to being null.

  • hi, I can also confirm this behavior, on real Fenix7PRO with 17.28: ok, same with 18.13, null is returned on observationLocationName