Create custom Widget.

Former Member
Former Member
I am new to the forum, I have a vivoactive watch. I would like to know if it is possible to create a widget with data from a file or remote database.
Would it be possible to send data via GET or POST to the clock? What would be the best way??
Server ---> send by http GET ---> Garmin Connect AP-->VIVOACTIVE show data in my widget.

Thanks¡¡¡¡¡
  • Yes.

    Widgets and Watch-App applications can access web services that expose JSON interfaces directly. This has been possible for quite some time. With the latest SDK beta, there is new functionality that will allow Watch Face applications to access such web services periodically via backgrounding. This new bit of functionality is limited in that such requests can only be performed as frequently as once every 5 minutes and will work with newer devices only.

    Travis
  • Former Member
    Former Member over 8 years ago
    Vivoactive seems to be not supported by IQ 2.3.0 Beta.
    In Connect IQ 2.2 SDK how often do you update the widget data?
    In the watchfaces could you also add custom data sent by JSON? How much is updated?

    Thanks
  • The 2.3.0 beta will build/test for the vivoactive, but only 1.x functions are allowed with it (the api doc indicates what's available in 1.x vs only 2.x, as well as specific devices where it's needed)

    In the case of the background process, that's new in 2.3.x, so only devices that have a 2.3.x version of CIQ on them, but also just for the f5 family and the 935. At most the background can only run every 5 minutes, and then will only run for 30 seconds.

    As travis said, the ability to get info from the internet by widgets and watch-apps has been around since very early days of connect IQ and works on the vivoactive. But something to note is in general how widgets work on the va. They have a shorter timeout before returning to the watchface than other devices (with the va, it started as only 10 seconds, but I think that may be more now) but if you are doing comm, in a widget, the timeout is longer, but is still shorter than other watches.

    When I do comm in a widget (that works on the va), I can two do requests, where I do the first, and using a bit of fata I get back, do a second request.
  • Former Member
    Former Member over 8 years ago
    Thank you very much. I will try to make a simple widget for my VA.