Hi,
Is there a problem with the Weather provide by Garmin? Some users are saying that the current temperature is not displyed on the watchface after a Garmin software update.
Hi,
Is there a problem with the Weather provide by Garmin? Some users are saying that the current temperature is not displyed on the watchface after a Garmin software update.
Hi, good day. I had a similar issue report since this update. Apparently Garmin changed the temperature from integer to float (I had 2 user feedbacks saying that my watchface was showing a "huge" number of decimal cases in the temperature field. Maybe there's chance this is related to your error (say if you check if the temperature is of type integer instead of not null, whatever)
In API i see that temperature from current condition is still Number, not Float
By "API" you mean the reference? If so, you can ignore that, maybe it's not updated yet. I couldn't reproduce the error on my watch because it's a Venu 2 and didn't got any update recently. The report came from a Venu 3, I solved the issue "blindly" by adding the .format("%02d") to the temperature reading because these decimals cases didn't show on the simulator either.
If you are display the temp in F, you'll already be doing something like this, or should be, as the result of a proper conversion will be a float.....
Yeah, exactly. I had this .format("%02d") only inside the if(system temp is F), outside (if the system temp is C) I displayed as it came from the watch system, and it displayed as an integer without issues. After the update it became a float and I had to format both cases.
I am having this issue with my watchface, and I cannot reproduce the error on the emulator... But... can you confirm that we have to check that it is a Lang.Number in some fw/dev and Lang.Float in others??? I am also checking if it is Null... BTW...Thanks
Hi, I only check if it's null and trust the return type of the api reference... anyway, do a .format("%02d") and you're safe from displaying a lot of decimal cases
Thank you! I was already formatting the output, but I was cheking null and type... so it ended up displaying nothing... Thanks a lot!