Fenix 3 built-in Widgets source code

Former Member
Former Member
Hi,

Is it possible for Garmin to provide the source code for the Altimeter, Barometer, Temperature, and Compass Widgets as examples?
  • Former Member
    Former Member over 10 years ago
    The built in widgets are part of the native device environment and are not written with ConnectIQ.
  • Former Member
    Former Member over 10 years ago
    Can they be written with ConnectIQ?
  • Former Member
    Former Member over 10 years ago
    Many of the aspects of those widgets could be reproduced in ConnectIQ, but the core functionality (historical temperature/pressure/elevation) is not something that is available via a ConnectIQ API at this time. I would also guess that the historical data has low likelihood of being exposed by an API because it is a feature none of the other ConnectIQ devices would be able to support.

    The Native Compass widget could probably reproduced nearly identically in ConnectIQ.
  • Former Member
    Former Member over 10 years ago
    What about the graphs? Do any of the samples in the API provide examples on how to do the graphs?
  • Former Member
    Former Member over 10 years ago
    I don't believe there are any samples in the SDK that draw a graph at this time.
  • Both the Sensor and MO2Display sample programs draw graphs. They aren't as fancy as the ones on the fenix3, but they could be used as a starting point.
  • Former Member
    Former Member over 10 years ago
    Great, thank you. I'll take a look.

    Is there anyway Garmin can provide an example of the fancy graph?
  • Former Member
    Former Member over 10 years ago
    Well, It seems I forgot about the Sensor sample. (Which is especially troublesome since I wrote it...)

    I think we have far too many bugs to fix right now to spend time putting out fancier samples, but there is a chance one of the friendly developers here in the forums might be able to help you out.

    The graph class included in the sensor sample isn't really that different from the ones on the Fenix. The Fenix graphs fill the area below the line graph with a color, and draw axes and points at max/min.

    I do need to warn you that that graph class does not draw very fast. Drawing a graph with the detail of the native Fenix graphs with that code probably won't work terribly well. I don't know how faster it could go with improvements.
  • Former Member
    Former Member over 10 years ago
    I'll take a look at the samples and do some testing.

    Thanks for your help guys, I appreciate it.