Suunto app Forum Suunto Community Forum
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    [Question] No stupid questions - ask anything here

    Scheduled Pinned Locked Moved Suunto Plus Development
    61 Posts 23 Posters 2.7k Views 23 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • surfboomerangS Offline
      surfboomerang
      last edited by

      @suuntopartnerteam I’m still a little bit confused about the setText() behavior.

      For example
      I create two template files, both with a <div id="testid" ....> section.
      In the main.js evaluate() function I set the text setText('#testid', 'testvalue');

      This put’s the text in th div-section. If the text is changed, the div-section updates accordingly.

      However, when I change the template to the second tempate (and call unload('_cm');) the div-section on the new template, which has the same id, isn’t updated at all.

      Do you have any advise on how to handle this?

      Suunto Vertical Titanium Solar
      OnePlus Nord 4

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        SuuntoPartnerTeam @surfboomerang
        last edited by

        @surfboomerang

        1. As with web development, ids are meant to uniquely determine an element. You shouldn’t use the same id for different elements. This is true even when those elements are inside different HTML templates, if both templates may be active at some point during the runtime of the app

        2. You cannot change a template that is not active. The uiViewSet might be something worth looking at, depending on what you’re trying to achieve

        surfboomerangS 1 Reply Last reply Reply Quote 1
        • S Offline
          SuuntoPartnerTeam @hitriy
          last edited by

          Hey @hitriy .

          You can fetch data from any device which supports being in peripheral mode – even a laptop. In your case, you would need to write an application for your phone which communicates with the watch using Bluetooth Low Energy.

          H 1 Reply Last reply Reply Quote 0
          • S Offline
            SuuntoPartnerTeam @harry08
            last edited by

            Hi @harry08 .

            That is right, you can only get precise current time or the day of the week. The rest needs to be calculated manually

            1 Reply Last reply Reply Quote 0
            • I Offline
              Isotop7
              last edited by

              Is it possible to get the Suunto Plus Guide a user has selected for the current workout? The goal would to the show a graphic representation (for example bar chart) to show all intervals of the workout and vertical ruler showing the current point in the workout.

              1 Reply Last reply Reply Quote 1
              • surfboomerangS Offline
                surfboomerang @SuuntoPartnerTeam
                last edited by

                @SuuntoPartnerTeam said in [Question] No stupid questions - ask anything here:

                The uiViewSet might be something worth looking at

                Thanks for the hint! This worked for my case.

                Suunto Vertical Titanium Solar
                OnePlus Nord 4

                1 Reply Last reply Reply Quote 1
                • H Offline
                  hitriy @SuuntoPartnerTeam
                  last edited by

                  Awesome, works fine for me. Worth buying new watches then!

                  1 Reply Last reply Reply Quote 0
                  • Ecki D.E Offline
                    Ecki D. Bronze Member
                    last edited by

                    Connect watch to macbook - VSCode

                    Should this work?

                    I have a older (rather old 😉 macbook running monterey. I couldn’t connect the watch to deploy my app on it.
                    Maybe it failed cause the watch hasn’t been properly disconnected from the phone see my other thread over here:

                    https://forum.suunto.com/post/187290

                    https://www.strava.com/athletes/37982563
                    https://www.instagram.com/macdev

                    1 Reply Last reply Reply Quote 0
                    • U Offline
                      Unpaired8373
                      last edited by

                      Does the watches JS-runtime support WASM by any chance?

                      1 Reply Last reply Reply Quote 0
                      • Tomas5T Offline
                        Tomas5 Gold Members
                        last edited by Tomas5

                        Hello, can anyone help, I am trying to display Graph for HearthRate.

                        I am using this code for displaying graph, it is taken from one of examples just modified input path for current hearth rate:

                        <graph style="position:absolute;
                                      left:0px; top:0px; width:100%; height:100%;
                                      box-sizing: border-box;
                                      padding-right:90px; padding-top:60px; padding-bottom:60px;
                                      font-size:21px;"
                               valueFormat="HeartRate_Fourdigits"
                               type="line"
                               grid="three lines"
                               inputType="subscribe"
                               input="/Activity/Move/-1/HeartRate/Current"
                               min="0.6666666667"
                               max="3"
                               slack="0.1"
                        />
                        

                        and it works fine in simulator and I see this:

                        Snímka obrazovky 2026-03-20 210235.png

                        but when I upload app to watch (Suunto 5 or Race 2), than there is no graph line for Heart Rate:

                        1774037407881-img_2476.jpg

                        Suunto Ambit 2 > Suunto 5 > Suunto Race 2

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post

                        Suunto Terms | Privacy Policy