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";
}
}
}

Parents
  • Spent an hour trying to understand why the simulation was showing the weather station location name and a user's watch wasn't showing it. I also bothered the user for more screenshots to see why it did that on his end and not in the simulator, while all this time, it was a stupid undocumented, poorly implemented decision that was the issue. Thanks a lot Garmin.

Comment
  • Spent an hour trying to understand why the simulation was showing the weather station location name and a user's watch wasn't showing it. I also bothered the user for more screenshots to see why it did that on his end and not in the simulator, while all this time, it was a stupid undocumented, poorly implemented decision that was the issue. Thanks a lot Garmin.

Children
No Data