Imperial and celcius

There isn't an option to set the temperature to either C or F on the 920. I think if the units are metric it assumes C.

So how can a user have there watch set to imperial but show C in a widget?

I know there is the Sys.getDeviceSettings().temperatureUnits to determine what its set to but how can I have distance in feet and temperature in C?

Perhaps a change to the 920 software (and VA and epic?) is required to allow users to set the temp units?

Also it would be nice to be able to set it via the simulator too.

Some users world wide want distance in feet but temperature in C

[edit]

interesting

My 920 is to use all metric units and use this in my widget

if(Sys.getDeviceSettings().temperatureUnits == Sys.UNIT_METRIC)

but it's determining that this isn;t true so showing temp units in F

How can I ensure I show the CORRECT tenp units?! Ta
  • It's true that temperature units are not correctly handled by 920XT and temperatureUnits are not set by System. It should be documented if it is the standard behavior on watches without thermometer. Or maybe better to add temperature units settings to the watch settings because it has dedicated property in the API.
  • It's true that temperature units are not correctly handled by 920XT and temperatureUnits are not set by System. It should be documented if it is the standard behavior on watches without thermometer. Or maybe better to add temperature units settings to the watch settings because it has dedicated property in the API.


    Actually, it is a setting available on the vivoactive, which doesn't have an internal thermometer - but the va does handle the Tempe as a system sensor.
  • Strange.. I don't have Tempe sensor but if I check http://developer.garmin.com/connect-iq/compatible-devices/ it seems that 920XT should support Tempe as well..
  • So Garmin, are there any ways to determine what temperature units to use for ...

    epix
    va
    920?

    Ta
  • So Garmin, are there any ways to determine what temperature units to use for ...

    epix
    va
    920?

    Ta


    On the va, there is a system setting for temperature_units, so you can just use that.

    On the real 920 or Epix, when you query temperature_units, what's it value? Does it track to distance_units, always one or the other, or is it null?

    With your widget, you could always put up a menu to select one or the other, and save it in the Object Store (maybe putting up a menu when "menu" is pressed?). Read the OS when you start and use that saved setting.

    You could even allow for "c/km","f/km","c/mi", or "f/mi" with a menu and not use the system settings at all if you want.
  • Strange.. I don't have Tempe sensor but if I check http://developer.garmin.com/connect-iq/compatible-devices/ it seems that 920XT should support Tempe as well..


    The thread about the Tempe App has the CIQ guy state that 920 does not support the Tempe unless thru ANT+ connection (as in write it yourself)
  • on the 920 this

    Sys.println("getDeviceSettings().temperatureUnits = " + Sys.getDeviceSettings().temperatureUnits);

    returns

    getDeviceSettings().temperatureUnits = true

    That doesn't exactly help I dont think as

    UNIT_METRIC = 0
    UNIT_STATUTE = 1

    So it seems to me on the VA (which works) the call returns 0 for metric but on the 920 the call returns 1 which is statute!

    Argh!

    Is there a sensible way to get the right C/F to display on VA, Epic and 920.

    Please Garmin, this is IMPORTANT!

    P.S. Help!
    P.P.S How can I determine what device my code is running on? Please provide code examples. Ta
  • With a menu and by using the object store, you can allow the user to select C or F today. (and remember it - this can be done today)

    As far as device type, Here's a thread with an example. https://forums.garmin.com/showthread.php?297524-Check-device-type&highlight=device+type
  • With a menu and by using the object store, you can allow the user to select C or F today. (and remember it - this can be done today)

    As far as device type, Here's a thread with an example. https://forums.garmin.com/showthread.php?297524-Check-device-type&highlight=device+type


    Thanks but still seems like a shortcoming of the device/firmware etc that I have to go to these lengths! The connectIQ SDK isn't exactly helping us devs to make cool apps for Garmin what with all the inconsistencies/hoops to jump through.

    I'm thinking sod it write for 920 and screw all devices. Shane but there it is!!!
  • Thanks but still seems like a shortcoming of the device/firmware etc that I have to go to these lengths! The connectIQ SDK isn't exactly helping us devs to make cool apps for Garmin what with all the inconsistencies/hoops to jump through.

    I'm thinking sod it write for 920 and screw all devices. Shane but there it is!!!


    Coding for a simple menu and storing/getting it from the Object Store is actually very simple to do. (5-10 minutes of coding). You can use a default based on temperatureUnits as a default if nothing is in the Object Store.

    When User Config for things like watchfaces comes out, I'm fairly certain the Object Store will be involved, so it doesn't hurt to learn about it.

    Personally, I would like to see a simple value in CIQ that can be used to determine the device type, but the method I posted the link to seems to be the next best thing and not hard to do.