How to use temperature in data field

Hi,

I'm writing a simple data field and I would like to take the current temperature but somehow I can not find this variable. Does anyone know where to look for this variable?


Thank you,
Peter
  • Former Member
    Former Member over 9 years ago
    Well, it rather depends on want you mean with 'the temperature'. From a tempe sensor? From the built-in sensor, from a nearby airfield, from another weather info provider?
  • temperature isn't in activity info, and data fields are very restricted in what they can do. There is no access to the sensor module or to communications from a CIQ data field.

    I other words, there is no access to the temperature from a CIQ data field, at least using the 1.1.4 SDK... You can access sensors and Comm from a widget or watch-app however...
  • Thanks guys for your reply. So, this is a big shortcoming. Data Fields should have read only access to all the information, exactly like the standard built-in fields. So far, I was programming Suunto Ambit, which actually allows you to create only data fields but with access to all possible information. I hope that this failure will be quickly removed and the object Activity will contain complete information.

    Well, it rather depends on want you mean with 'the temperature'. From a tempe sensor? From the built-in sensor, from a nearby airfield, from another weather info provider?


    From all sensors of course.

    There is no access to the sensor module or to communications from a CIQ data field.


    Well, we have a great inconsistency: currentPower, currentSpeed etc. came form sensors, do they not?

    I would like to have a simple data field: Temperature.Altitude eg .: 15.2302 or -12.5200. But instead to write a few lines of code I have to at least write a widget that is not as handy as the data field is. Completion of data in the Activity should not take too much time, and I hope that the development team will do it, what I wish for all of us.

    Thank you,
    Peter.
  • Former Member
    Former Member over 9 years ago
    Is there actually shared memory possible between two different types of programs?

    So, for example, a Widget or Application could retrieve data and store it in the object store. Then a Watchface or Datafield would retrieve the data for displaying purposes.

    This would create limitless possibilities for Watchfaces (weather, calendar, sunset info) and datafields (temp)
  • I wonder what happened but I can not see my previous answer.
  • Is there actually shared memory possible between two different types of programs?

    So, for example, a Widget or Application could retrieve data and store it in the object store. Then a Watchface or Datafield would retrieve the data for displaying purposes.

    This would create limitless possibilities for Watchfaces (weather, calendar, sunset info) and datafields (temp)


    The team of developers would have to redo all the activity. It would be simpler to add the missing information to the Activity.info.
  • I would like to thank you all for the information. Taking all this into consideration I decided to write a multi-field widget.

    Regards,
    Peter
  • I would like to thank you all for the information. Taking all this into consideration I decided to write a multi-field widget.

    Regards,
    Peter


    yes, with a widget you can do far more, and a widget can be 64k vs the 16k limit of data fields on some devices. I have one that uses GPS and comm to get the current weather for a location, and an app that looks like a watchface but includes data from the Tempe Sensor.

    With an app, you can also access about anything, while recording a .fit file too...
  • Do you mean that in full app I'll be able to calculate e.g power, based on some other data and write it as power samples?

    For Suunto Ambit2 I wrote function for calculating power of YORK 302X (orbitrek), based on the ANT speed sensor from bike and given the level of resistance. For each level of resistance I have set the regression equation and I had very accurate indication of the power in my watch.

    I need exactly the same in Epix.