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
    67 Posts 24 Posters 3.2k Views 24 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 @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
              • ookO Offline
                ook
                last edited by

                guys I need help, anyone know how to use the crown/middle button to scroll to the next ui?

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

                  @ook i would try “onEvent(input, output, eventId)” and display value of eventId on screen and than see if crown produce some events.

                  Suunto Ambit 2 > Suunto 5 > Suunto Race 2

                  ookO 1 Reply Last reply Reply Quote 0
                  • ookO Offline
                    ook @Tomas5
                    last edited by

                    @Tomas5 thanks Tomas I tried your method, it just return 0 to me, but i find out if ur ui is big enough it will able to scroll down,dont have to do anything.

                    1 Reply Last reply Reply Quote 1
                    • Thibault B.T Offline
                      Thibault B.
                      last edited by

                      Hello,

                      What I want to do is quite simple but I do lack experience with JS, and it has been a long time since I developed in HTML.

                      I would appreciate your help :). I want to override down button press to make a lap type 24, but only if activity is ongoing. If it is paused I want the default behavior (stop activity).

                      In my html:

                      <userInput>
                            <pushButton name="down" onClick="$.put('/Zapp/{zapp_index}/Event', 123, null, 'int32');" />
                      </userInput>
                      

                      In my js:

                      function onEvent(input, output, eventId) {
                        if (eventId == 123) {
                          // Down button was pressed
                          $.put('Activity/Trigger', 24);
                        }
                      }
                      

                      I was thinking of conditioning the HTML onClick but do not really know how to access necessary variables, etc. I have tried a few things but I am lost.

                      U 1 Reply Last reply Reply Quote 0
                      • U Offline
                        Unpaired8373 @Thibault B.
                        last edited by

                        @Thibault-B. There is an example in the examples collection. Essentially have a global variable that is set in the start-handler and unset in the stop-handler and then handle the condition in you event

                        Thibault B.T 1 Reply Last reply Reply Quote 0
                        • Thibault B.T Offline
                          Thibault B. @Unpaired8373
                          last edited by

                          @Unpaired8373 Not sure to get what you mean.

                          function onEvent(input, output, eventId) {
                            if (eventId == 123 && output.isPaused == 0) {
                              // Down button was pressed
                              $.put('Activity/Trigger', 24);
                            }
                          }
                          

                          It is not triggering the lap but it is not doing anything else and I wanted to default to initial behavior (so I didn’t want an explicit call to stop, which seems anyway not available?).

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

                          Suunto Terms | Privacy Policy