Fenix 3 HR - Getting the current temp in an app

Former Member
Former Member
I have the following code, but it seems the Fenix 3 HR is not returning any temp data

var Info = Toybox.Sensor.getInfo();
If (Info != null && Info.temperature != null)
{
var LastTemp = Info.temperature;
}

I'm sure I'm getting something for Info, since i can use it to get the current altitude, but it seems the current temp is not being set.

I have the permission set in my manifest file:

<iq:uses-permission id="Sensor"/>

What am I missing or should I be getting the temp using another class/method?

Thanks
  • Former Member
    Former Member over 8 years ago
    That was my idea, to write field that will get internal temperature from Sensor history.
    I'm thinking about tempe but all the reviews of tempe field in Connect IQ store saying that it doesn't work with VAHR are making me think again;)
    Other thing is that I would generally like to have one device. Tempe can be better, more usefull but I'm not sure if I can easily mount it on bike when I'm sure I can mount watch in a place which is the same where Edge devices are placed.
    I think I'll end up with Tempe sensor anyway but just to show myself that I can I'll write the field first:)

    Thanks for your reply it was very useful.
  • Garmin's got a Tempe DF in the CIQ store and that might be what you're looking at, but you don't actually need it, as on the va-hr, Temperature is a DF native field. The Garmin DF does Ant+ stuff itself and doesn't treat the Tempe as a native sensor. (so it can support the fr920 and get 24min and 24max temps)

    As far as mounting it, here's what I have:



    I have it clipped to a #3 "S-Biner" clip ($2 at home depot), and can attach it to almost anything easily. (on a bike, maybe under the seat?)
  • Former Member
    Former Member over 8 years ago
    temperature on datafield for swimmers

    Hello folks, I've had that problem with my very first development tryout :confused:

    I wanted to create a datafield which would calculate body heat wasted while swimming, specially open water wise. In this case the watch's internal sensor would do just fine, since skin temp quickly falls close to water temp while swimming. Would there be any chances that temp be exposed in Info in the near future ? Also, since I would need to estimate body fat (to determine as closely as possible the amount of 'skin insulation'), can I read users profile data (height, weight and age) into the datafield ? Or would I have to make those configuration parameters ... Of course it would be nice if everyone had a bioimpedance scale like I do, but I guess that won't be the case.

    Thanks for your time !
  • You should have no problem reading the user profile info in a DF (but you'll have to set that permission for your app).

    Temperature is a different matter, as neither internal or Tempe based Temp is in Activity.Info, and on most devices, only Tempe data is available in Sensor.Info. However, in a data field, you can't access Sensor.Info at all, so no way of getting any temp info in a DF, unless you do your own ant+ things for a Tempe. But then again, Tempe probably isn't water proof..

    So..... You can use the User Profile info, but not the temperature in a DF.