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
    15 Posts 7 Posters 558 Views 7 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.
    • Dimitrios KanellopoulosD Offline
      Dimitrios Kanellopoulos Community Manager @brechtvb
      last edited by

      @brechtvb no afaik. So for example its not so hard to read a service and sub to a characteristic etc

      Community Manager / Admin @Suunto
      Creator of quantified-self.io a portal that allows you to analyze your data from various providers, upload fit activity files to Suunto app, gpx routes and more…

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

        On several occasions the docs mention a reference documentation. Did I miss a link? Where can I find this? Would be good to see all subscribable values for example.

        brechtvbB 1 Reply Last reply Reply Quote 0
        • brechtvbB Offline
          brechtvb Bronze Member @Isotop7
          last edited by

          @Isotop7 if you create a new application with vscode, you can click here and see the information on the right.

          Did not find a vscode entry point in the palette to find the same documentation.

          1291d2c3-bdd2-4b9c-ba0f-dde9603e7307-afbeelding.png

          I 1 Reply Last reply Reply Quote 1
          • brechtvbB Offline
            brechtvb Bronze Member @Dimitrios Kanellopoulos
            last edited by

            @Dimitrios-Kanellopoulos i almost feel obligated to buy the garmin sensors and make it work after all.

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

              @brechtvb nvm, i found a shortcut with cmd-key + p and Suunto Plus: Open Documentation

              1 Reply Last reply Reply Quote 2
              • S Offline
                SuuntoPartnerTeam @mabe2k
                last edited by

                Hi @mabe2k!
                You can but in most cases you probably shouldn’t. The touch functionality is prone to draining the battery faster than usual and might not be available for all watches. <div> elements (and some other elements) have attributes onTap, onDoubleTap and onLongTapStart that can be used to register event listeners for touch actions (clicks, double clicks and longpress-then-move respectively). To use these, you need a compatible watch with up-to-date software and touch functionality enabled (select “Touch” to be “On” under “Exercise options” when you start an exercise or under “Control panel” from the pause menu during an exercise). The root element (<uiView>) has an even wider variety of touch action related event listeners, but you can probably get started with the ones mentioned (please feel free to ask a follow-up question about this if you’re interested in these).

                Here is a basic example of the explained functionality using the built-in setStyle function to change the color of a box when it is interacted with:


                t.html:

                <uiView>
                  <div id="suuntoplus">
                    <div id="box"
                      style="width: 40%; height: 40%; left: calc(50% - 50%e); top: calc(50% - 50%e); border-radius: 25px; background-color: #FFFFFF;"
                      onTap="setStyle('#box', 'background-color', '#00AAFF')"
                      onDoubleTap="setStyle('#box', 'background-color', '#44CC00')"
                      onLongTapStart="setStyle('#box', 'background-color', '#FF7733')"
                      ></div>
                  </div>
                </uiView>
                

                Please note that you will need a manifest.json with the mandatory fields and a main.js with getUserInterface function defined. Minimal versions of these are provided here for your convenience:


                main.js:

                function getUserInterface() { return {template: 't'}; }
                

                manifest.json:

                {
                  "name": "Touch",
                  "description": "Touch example",
                  "author": "Your Name",
                  "version": "1.00",
                  "modificationTime": 1770000000,
                  "type": "feature",
                  "usage": "workout",
                  "template": [{"name": "t.html"}]
                }
                

                Hope this helps. Happy coding!

                1 Reply Last reply Reply Quote 3
                • TieutieuT Offline
                  Tieutieu Platinum Member
                  last edited by

                  My question (before using maybe some third party apps someday ?) : how does battery consumption will be impacted and what is the « bug » risk for the watches ?
                  I guess it will depend on how apps will be coded and tested ?

                  Suunto’s devices at home :
                  Vertical titanium solar
                  Suunto Race S
                  S9pp titanium sand
                  Suunto Wing
                  S9B titanium Ambassador edition, A3P, X6

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

                    @Tieutieu

                    … how does battery consumption will be impacted …

                    I don’t believe we test the battery consumption of submitted applications. Ultimately, it all depends on how much work the app is actively doing during an exercise.

                    … what is the « bug » risk for the watches …

                    Certainly buggy software will be written 🙂 You can give written feedback to a developer in the store. Bugs shouldn’t cause any ‘‘risky’’ behaviour in the watch – the firmware usually disables any applications that crash. It may happen that a crashing application leads to a soft-reset of other running applications.

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

                      Is it possible to catch the “Press Lap Button” event in my app? If yes, how? I’ve searched the reference but can’t find it or I am unable to understand it 😧

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

                        @Isotop7 Good question! This is somewhat hidden in the documentation. You can respond to a lap button press using the onLap callback:

                        function onLap(input, output) { ... }
                        

                        Also note that the lap button will work automatically, as long as you don’t override its user input handling.

                        Automatic laps can be handled with the onAutoLap callback:

                        function onAutoLap(input, output) { ... }
                        
                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post

                        Suunto Terms | Privacy Policy