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
    122 Posts 33 Posters 8.6k Views 31 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 try to get thedistance, bearing and coordinates of a POI

      For the distance I use “/Navigation/Poi/Active/Distance” which indeed returns the distance.

      For coordinates I try to use “/Navigation/Targetlocation/Coordinates”. This works in the simulator but no results on the watch
      For bearing I use “/Navigation/Targetlocation/Bearing” which is undocumented, but suggested by the intellisense. This one also doesn’t report any values.

      Is it possible to get the bearing and coordinates of a selected POI?

      Suunto Vertical Titanium Solar
      OnePlus Nord 4

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

        @assaf1007 You are using two different strings for getObject and setObject.

        This should be a minimal working example which pushes settings.active up by 1 whenever you start an exercise:

        var settings = null;
        function onLoad(input, output) {
          settings = {
            maxPace: 12,
            timelapse: 123,
            active: 0,
          };
          loadSettings()
        }
        
        var loadSettings = function () {
          var loaded = localStorage.getObject("appSettings");
          if (loaded != null) settings = loaded;
          // else localStorage.setObject("appSettings", settings);
        
          settings.active++;
          localStorage.setObject("appSettings", settings);
        };
        
        function evaluate(_inp, _out) {
          setText("#active", String(settings.active))
        }
        
        function getUserInterface() {
          return {
            template: 't'
          };
        }
        

        and the html:

        <uiView>
          <div>
            <div id="active" class="p-m">
              0
            </div>
          </div>
        </uiView>
        

        So:

        but i wish to be able to set values at the watch itself (if possible) … in such case, i need (= user need) some kind of a preliminary UI (before app starts) to be able to update settings…

        Possible indeed! The ‘tennis score pro’ application has a start screen which saves the settings for the next time.

        1 Reply Last reply Reply Quote 0
        • A Offline
          aenzed
          last edited by

          @suuntopartnerteam maybe not a stupid question, but is it possible to add two icons (a left and right arrow) to the f-ico classes in the style of F266 and F267? I was looking for something similar, but I wasn’t able to find it so I’ve just used F394 and F402 for now.

          1 Reply Last reply Reply Quote 0
          • A Offline
            AYamshanov Bronze Member
            last edited by

            Hi everyone,

            I have a quick question regarding BLE connectivity that might save me (and hopefully others) some time and unnecessary experimentation.

            I’m currently working on a small add-on that retrieves and displays data from an external third-party device via BLE. Thanks to the documentation, I’ve already built a basic prototype that proves the core concept works.

            However, I’ve hit a roadblock: the external device requires a PIN to establish a secure Bluetooth connection. When testing with devices that don’t require a PIN, the connection works flawlessly.

            My issue is that I cannot find any mention in the documentation on how to explicitly handle PIN entry during the pairing process.

            Does the current Suunto SDK support manual PIN entry pairing? If so, could someone point me toward the right methods or a code snippet?

            Any insights would be greatly appreciated!

            brechtvbB 1 Reply Last reply Reply Quote 0
            • Thibault B.T Offline
              Thibault B. Bronze Member
              last edited by Thibault B.

              It is me again with new questions 🙂

              1. Can we get current ZoneSense zone information? I have not found the key of such data.
                1.bis. Can we get user configuration regarding Intensity Zone he is interested in?
              2. I struggle to make the “PREV INT” data slightly bigger (not as big as current rest/int data - which is sp-d-s -).
                “PREV INT” data is currently sp-d-xs for which I tried to override font size, rescale. Note that on simulator it might looks fine but not on the watch (can be bigger but then uses a default font which includes big spaces between numbers, etc). Can someone help me for that? Thanks!
                suunto_app.png
              Raimo JärviR 1 Reply Last reply Reply Quote 0
              • brechtvbB Online
                brechtvb Bronze Member @AYamshanov
                last edited by brechtvb

                @AYamshanov were you able to connect to your device? I try to connect to garmin speed and cadance sensor.

                Problem: suunto can register both of them (but also allows wheel radius setting on cadance sensor…) but in the end it cannot connect to both of them at the same time during workout.

                Now with a custom suunto app, i try to do that, but it always fails to connect to any of them.

                Line 175 always fails.

                9200471c-31fe-410f-9d05-7d88ab7bccb9-afbeelding.png

                933e3516-da42-4c41-92d0-751a892da685-afbeelding.png

                A 1 Reply Last reply Reply Quote 0
                • Josef NilssonJ Offline
                  Josef Nilsson
                  last edited by Josef Nilsson

                  Im trying to make a copy of ErgSync but for my Merach R50. So far its actually working pretty well aka Im getting Strokes, power etc onto the watch and into the the activity file.

                  My question is. Can I use that data as the primary source instead of the guesstimate that the watch makes itself?

                  One of the short test rows I did went like this
                  Via the watch:
                  Distance: 577m
                  Strokes: 57

                  while the rower reported:
                  Distance 0.52km
                  Strokes: 56

                  Can we replace the watch data with SuuntoPlus app data? Because I trust the distance reported by my rower more than the watch 🙂

                  Edit: can we also change the suffix for pace? And make the distance always say in meters?alt text

                  1 Reply Last reply Reply Quote 1
                  • Raimo JärviR Offline
                    Raimo Järvi @Thibault B.
                    last edited by

                    @Thibault-B. said in [Question] No stupid questions - ask anything here:

                    1. Can we get current ZoneSense zone information? I have not found the key of such data.

                    It’s not mentioned in documentation, but editor’s autocomplete shows there’s /Fusion/Ddfa input resource. I’m not sure how that value maps to zones.

                    1. I struggle to make the “PREV INT” data slightly bigger (not as big as current rest/int data - which is sp-d-s -).
                      “PREV INT” data is currently sp-d-xs for which I tried to override font size, rescale. Note that on simulator it might looks fine but not on the watch (can be bigger but then uses a default font which includes big spaces between numbers, etc).

                    Watch has only a predefined set of font sizes (unless there’s been some improvements to font support). For numbers you should use one of the sp-d- CSS classes, those already cover the available font sizes.

                    Documentation has this somewhat vague sentence: “The older watches do not support every possible font size and thus using the css classes for font sizes (shown below) can generally lead to less errors.” This hints that there might be better font support in some watches, but I don’t know what “older watches” means here. In any case, if you want to support all watches, you’re probably limited to sp-d- classes.

                    Pragmatic Programmer

                    Thibault B.T 1 Reply Last reply Reply Quote 1
                    • Thibault B.T Offline
                      Thibault B. Bronze Member @Raimo Järvi
                      last edited by

                      @Raimo-Järvi
                      Thanks for your answer!

                      1. I hadn’t thought about exploring the autocomplete suggestions—great idea! It works really well. I mapped values to zones based on what I’ve observed in my previous activities using ZoneSense.

                      2. OK. Then, personally, I really miss an intermediate size between sp-d-xs and sp-d-s 😕
                        You seem to confirm that there’s no way to slightly increase the size (I was about to experiment with canvas…). Easily supporting all watches wasn’t my main concern anyway—I would have been fine defining this intermediate font size per watch model if needed.

                      3. Regarding older watches: does it still make sense to support watches older than the Suunto 9 Peak Pro, or is the information in the documentation confirmed?
                        “Note: SuuntoPlus is no longer maintained for UI1 (s, m, l).”
                        Does this mean that my app simply cannot be installed on those watches?

                      1 Reply Last reply Reply Quote 0
                      • A Offline
                        AYamshanov Bronze Member @brechtvb
                        last edited by

                        @brechtvb I had an option to switch my device to NO_PIN mode and I followed this approach to continue development and do not stuck ¯(ツ)/¯

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

                        Suunto Terms | Privacy Policy