The place name of the location is not displayed correctly.

Hello, since some time (I don't know, maybe it's a new update) the name of the place is not displayed correctly. It doesn't match the actual place where I am.

I am attaching my code here and if I may ask someone please tell me what I am doing wrong?

function drawLocation(dc) {
var x = $.SCREEN_WIDTH / 2 + 24, y = 76;


var observationLocationName = Weather.getCurrentConditions().observationLocationName;
observationLocationName = observationLocationName == null ? "--------" : observationLocationName;
var comm = observationLocationName.find(",");
observationLocationName = observationLocationName.substring(0, comm == null || comm > 14 ? 14 : comm);

dc.setColor($.colorLocation, Graphics.COLOR_TRANSPARENT);
dc.drawText(x, y, $.fontSmall, observationLocationName, Graphics.TEXT_JUSTIFY_CENTER);
 }
}

Thank you

  • Last I checked, with Android, the weather data is only updated every 20 minutes, and with iOS, once an hour. Is the location you see where you were in the last few hours?    Maybe display observationTime to see how old the reading is.

  • Yes, but now I'm elsewhere and it's been over a day and it's still showing up wrong.

    I tried a different watch face as a test and it works fine there and it changes depending on the location, so the problem is probably somewhere else. I reinstalled the CIQ app on my phone and it doesn't work properly there either.

    I have two phones and two watches and it still doesn't display correctly.

    This is the Czech Republic...


    I use phone settings to determine location.

  • In GCM, under Settings>User Data, what do you have for Weather Location?  It can be phone location or "use fixed location".  You also want to make sure "Current Location Permission" is on. This is in GCM and not the CIQ app.

    Are you seeing location that could be where the readings were made and not the location of your phone?  Something like a nearby airport?

  • I'm using my phone's location settings, I have everything turned on. and as I wrote on WF from another developer it works correctly.

    That's right, I can't see the airport, but a place about 22 km away.

  • Depending on your watch, if you go to the native weather widget, you may see what the device thinks the location is as well as the observationTime.  What does it show?  Does it match your watch face?

  • So I didn't find it on the F6 watch, where can I find it to compare?

  • From a watch face, up/down takes you through the widget loop.  You may need to add the weather widget by doing a long press of the middle left button when a glance is displayed and add it.

  • I use the weather widget on my watch, but I couldn't find the name of the place - the location where I am right now - anywhere in the overview.

    So I don't know if it's some other version of the watch, but I'm using the CZ distribution.

  • Try this watch face.  It uses on device settings where it's got options for what weather data is displayed.  With "all" you'll see location and time.  For me, it matches what I see in the weather widget on a fr255

    https://apps.garmin.com/en-US/apps/c051f37a-8fad-4907-b124-0112fe010c91

  • Interestingly:

    I searched for your watch face through the app on my phone under the name:

    Simple Lean G2, but it didn't find it at all on my watch.

    I use a quatix® 6 watch, but I couldn't find support for your watch face for my model anywhere...