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

    Ambit Apps Compilation

    Scheduled Pinned Locked Moved Digital service transition
    43 Posts 14 Posters 5.8k Views 17 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.
    • Stas VarazhbitS Offline
      Stas Varazhbit
      last edited by

      I don’t understand a damn thing about it 😁 .But it’s cool to be able to do structured training for A3P again. And I’m very happy for those who understand how to do it.

      Suunto 9P
      Suunto 9 no baro
      Suunto Ambit3S

      1 Reply Last reply Reply Quote 1
      • sebchastangS Offline
        sebchastang Silver Members @pavel.samokha
        last edited by

        @pavel-samokha @margusl One of the best posts of the year 🙌

        Thanks for this 👍

        Suunto Vertical
        Suunto Traverse

        sebchastangS 1 Reply Last reply Reply Quote 0
        • sebchastangS Offline
          sebchastang Silver Members @sebchastang
          last edited by

          Is it possible to create new apps with this method?
          How can we set the output format (0 decimal, 1 decimal, time, …)?
          How to declare new variables?
          Do we set prefix and postfix values just like other variables?

          Thanks a lot for help.

          It is definitely a great step forward to be able to edit Suunto Apps using a command line but it would be much more easy in a graphical way. Any plan for such a user interface?

          Suunto Vertical
          Suunto Traverse

          pavel.samokhaP 1 Reply Last reply Reply Quote 1
          • Z Offline
            zt_zzzzz @Guest
            last edited by

            @pavel-samokha
            Excellent

            1 Reply Last reply Reply Quote 0
            • Z Offline
              zt_zzzzz
              last edited by

              ask for advice,how to use it?😊 😊

              1 Reply Last reply Reply Quote 0
              • Aleksander HA Offline
                Aleksander H Bronze Member
                last edited by

                We’ll, this is just plain wonderfull!

                1 Reply Last reply Reply Quote 0
                • pavel.samokhaP Offline
                  pavel.samokha @sebchastang
                  last edited by

                  @sebchastang said in Ambit Apps Compilation:

                  Is it possible to create new apps with this method?

                  I assume so, though as it lacks proper error handling n etc I’d rather see it as a tool for existing apps users to adjust existing app settings than developing app from scratch.

                  How to declare new variables?

                  See “detailed instructions” section on user variables and sample request. Is that what you are asking for or something else?

                  How can we set the output format (0 decimal, 1 decimal, time, …)?
                  Do we set prefix and postfix values just like other variables?

                  I just added info about that int “detailed instructions” section

                  It is definitely a great step forward to be able to edit Suunto Apps using a command line but it would be much more easy in a graphical way. Any plan for such a user interface?

                  Well, it’s not difficult to create simple UI for that (like editor form & compilation output, not trying to copy Movescount UI) but not sure if I have time to do that and when. Also may be even better to integrate such UI into SL, but we’re unlikely have resources to do that soon.

                  Opinions expressed are solely my own and do not express the views or opinions of my employer

                  sebchastangS 1 Reply Last reply Reply Quote 5
                  • sebchastangS Offline
                    sebchastang Silver Members @pavel.samokha
                    last edited by

                    @pavel-samokha Thanks for the clarification and answers.

                    I also think it is more a way to modify an existing app than creating a new ones.

                    I asked for new variables because there was a specific section to declare them in movescount but I understand I have to declare and set variable values at the same time in the header section now.

                    Suunto Vertical
                    Suunto Traverse

                    1 Reply Last reply Reply Quote 0
                    • pavel.samokhaP Offline
                      pavel.samokha
                      last edited by

                      Added Simple UI for Compiler

                      Opinions expressed are solely my own and do not express the views or opinions of my employer

                      1 Reply Last reply Reply Quote 6
                      • EgikaE Offline
                        Egika Platinum Member
                        last edited by

                        Now I have learned more old watches internal names 🙂

                        t6, S6, Elementum Terra, Ambit 3 Sapphire, Spartan Ultra Copper, Traverse Alpha, S7 Graphite LE, S9B Ambassador, S9P Granite Blue Titanium, S9PP Titanium Sand, Vertical All Black, Race Titanium Charcoal,
                        Race S All Black - TI Canary - Titanium Courtney

                        sebchastangS 1 Reply Last reply Reply Quote 1
                        • sebchastangS Offline
                          sebchastang Silver Members @Egika
                          last edited by

                          Hi,

                          I have compilation error when I set prefix and postfix values in the header section.
                          I have tried:
                          prefix = “xxx”
                          prefix = ‘xxx’
                          prefix = xxx

                          format is OK. Only prefix and postfix give errors.

                          Can anybody help me?
                          Thanks.

                          Suunto Vertical
                          Suunto Traverse

                          ? pavel.samokhaP 2 Replies Last reply Reply Quote 0
                          • ? Offline
                            A Former User @sebchastang
                            last edited by A Former User

                            @sebchastang did you put prefix/postfix in the header?
                            yes (sorry I’ve just relized you wrote that). I moved those in the code .

                            1 Reply Last reply Reply Quote 1
                            • pavel.samokhaP Offline
                              pavel.samokha @sebchastang
                              last edited by

                              @sebchastang I’ll check on the weekend

                              Opinions expressed are solely my own and do not express the views or opinions of my employer

                              sebchastangS 1 Reply Last reply Reply Quote 1
                              • sebchastangS Offline
                                sebchastang Silver Members @pavel.samokha
                                last edited by

                                @G-Q @pavel-samokha thanks for your answers.

                                Suunto Vertical
                                Suunto Traverse

                                pavel.samokhaP 1 Reply Last reply Reply Quote 0
                                • pavel.samokhaP Offline
                                  pavel.samokha @sebchastang
                                  last edited by

                                  @sebchastang prefix = xxx should work now

                                  Opinions expressed are solely my own and do not express the views or opinions of my employer

                                  sebchastangS 1 Reply Last reply Reply Quote 2
                                  • sebchastangS Offline
                                    sebchastang Silver Members @pavel.samokha
                                    last edited by

                                    @pavel-samokha Thanks a lot!
                                    It’s all good now 👍

                                    Do you think there is a possibility (in a near future) to give access to the app simulator we had in movescount to test the apps?

                                    Suunto Vertical
                                    Suunto Traverse

                                    pavel.samokhaP 1 Reply Last reply Reply Quote 1
                                    • pavel.samokhaP Offline
                                      pavel.samokha @sebchastang
                                      last edited by

                                      @sebchastang Unfortunately, I think it’s unlikely

                                      Opinions expressed are solely my own and do not express the views or opinions of my employer

                                      1 Reply Last reply Reply Quote 0
                                      • Z Offline
                                        zt_zzzzz
                                        last edited by

                                        The trial is OK, thank you!

                                        1 Reply Last reply Reply Quote 0
                                        • C Offline
                                          Christos Palikaras
                                          last edited by

                                          @pavel-samokha Thank you for the implementation!

                                          I’ve created the below app, but when trying to create or edit a sport mode, displays are not loading.

                                          d15da542-be98-47cd-85fe-c83b568601af-image.png

                                          curl --location --request POST 'https://ambitappscompiler.azurewebsites.net/api/compile' \
                                          --header 'x-functions-key: qakj8vb/62VgzmSl19mDQzRmW7nCSDv0zAo2A1aC3ldfd8U8r5jksA==' \
                                          --header 'Content-Type: text/plain' \
                                          --data-raw '/* Duration App */
                                          /* Interval 1 */
                                          
                                          /* Initialize variables */
                                          if (SUUNTO_DURATION == 0) {
                                            RESULT = 0;
                                          }
                                          
                                          /* Lap 1, 2 is step type Interval with duration type Time */
                                          if (SUUNTO_LAP_NUMBER == 1 || SUUNTO_LAP_NUMBER == 2) {
                                            prefix = "int";
                                            postfix = "s";
                                            RESULT = 5 - SUUNTO_LAP_DURATION;
                                          }
                                          
                                          /* Lap 3 is step type Interval with duration type Time */
                                          if (SUUNTO_LAP_NUMBER == 3) {
                                            prefix = "int";
                                            postfix = "s";
                                            RESULT = 10 - SUUNTO_LAP_DURATION;
                                          }
                                          
                                          /* Lap 4, 5, 6 is step type Interval with duration type Time */
                                          if (SUUNTO_LAP_NUMBER == 4 || SUUNTO_LAP_NUMBER == 5 || SUUNTO_LAP_NUMBER == 6) {
                                            prefix = "int";
                                            postfix = "s";
                                            RESULT = 15 - SUUNTO_LAP_DURATION;
                                          }
                                          
                                          /* Lap 7 is step type Interval with duration type Time */
                                          if (SUUNTO_LAP_NUMBER == 7) {
                                            prefix = "int";
                                            postfix = "s";
                                            RESULT = 20 - SUUNTO_LAP_DURATION;
                                          }
                                          
                                          /* Check if duration is reached */
                                          if (RESULT < 0) {
                                            RESULT = 0;
                                            /* Alert that duration is reached */
                                            Suunto.alarmBeep();
                                            Suunto.light();
                                          }'
                                          
                                          pavel.samokhaP 1 Reply Last reply Reply Quote 0
                                          • pavel.samokhaP Offline
                                            pavel.samokha @Christos Palikaras
                                            last edited by

                                            @christos-palikaras I guess corrupted index.json may be cause this. I’ll try to update doc with more detailed instructions.

                                            Opinions expressed are solely my own and do not express the views or opinions of my employer

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

                                            Suunto Terms | Privacy Policy