• Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
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.0k 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.
  • ? Offline
    A Former User
    last edited by A Former User 2 Jul 2022, 13:22 7 Feb 2022, 13:20

    @pavel-samokha said in Ambit Apps Compilation:

    Service to compile Ambit Apps into binaries ready for uploading to the watch after Movescount no longer availa

    I’m head over heels in love with this.
    kudos to Suunto!

    Z 1 Reply Last reply 8 Feb 2022, 02:17 Reply Quote 0
    • S Offline
      Stas Varazhbit
      last edited by 7 Feb 2022, 13:32

      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
      • S Offline
        sebchastang Silver Members @pavel.samokha
        last edited by 7 Feb 2022, 17:44

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

        Thanks for this 👍

        Suunto Vertical
        Suunto Traverse

        S 1 Reply Last reply 7 Feb 2022, 18:35 Reply Quote 0
        • S Offline
          sebchastang Silver Members @sebchastang
          last edited by 7 Feb 2022, 18:35

          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

          P 1 Reply Last reply 8 Feb 2022, 17:03 Reply Quote 1
          • Z Offline
            zt_zzzzz @Guest
            last edited by 8 Feb 2022, 02:17

            @pavel-samokha
            Excellent

            1 Reply Last reply Reply Quote 0
            • Z Offline
              zt_zzzzz
              last edited by 8 Feb 2022, 03:32

              ask for advice,how to use it?😊 😊

              1 Reply Last reply Reply Quote 0
              • A Offline
                Aleksander H Bronze Member
                last edited by 8 Feb 2022, 08:20

                We’ll, this is just plain wonderfull!

                1 Reply Last reply Reply Quote 0
                • P Offline
                  pavel.samokha @sebchastang
                  last edited by 8 Feb 2022, 17:03

                  @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

                  S 1 Reply Last reply 10 Feb 2022, 13:23 Reply Quote 5
                  • S Offline
                    sebchastang Silver Members @pavel.samokha
                    last edited by 10 Feb 2022, 13:23

                    @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
                    • P Offline
                      pavel.samokha
                      last edited by 13 Feb 2022, 21:13

                      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
                      • E Offline
                        Egika Platinum Member
                        last edited by 14 Feb 2022, 07:55

                        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

                        S 1 Reply Last reply 15 Feb 2022, 12:05 Reply Quote 1
                        • S Offline
                          sebchastang Silver Members @Egika
                          last edited by 15 Feb 2022, 12:05

                          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

                          ? P 2 Replies Last reply 15 Feb 2022, 13:11 Reply Quote 0
                          • ? Offline
                            A Former User @sebchastang
                            last edited by A Former User 15 Feb 2022, 13:11

                            @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
                            • P Offline
                              pavel.samokha @sebchastang
                              last edited by 15 Feb 2022, 14:01

                              @sebchastang I’ll check on the weekend

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

                              S 1 Reply Last reply 15 Feb 2022, 14:17 Reply Quote 1
                              • S Offline
                                sebchastang Silver Members @pavel.samokha
                                last edited by 15 Feb 2022, 14:17

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

                                Suunto Vertical
                                Suunto Traverse

                                P 1 Reply Last reply 19 Feb 2022, 20:12 Reply Quote 0
                                • P Offline
                                  pavel.samokha @sebchastang
                                  last edited by 19 Feb 2022, 20:12

                                  @sebchastang prefix = xxx should work now

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

                                  S 1 Reply Last reply 21 Feb 2022, 12:15 Reply Quote 2
                                  • S Offline
                                    sebchastang Silver Members @pavel.samokha
                                    last edited by 21 Feb 2022, 12:15

                                    @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

                                    P 1 Reply Last reply 21 Feb 2022, 12:52 Reply Quote 1
                                    • P Offline
                                      pavel.samokha @sebchastang
                                      last edited by 21 Feb 2022, 12:52

                                      @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 23 Feb 2022, 08:05

                                        The trial is OK, thank you!

                                        1 Reply Last reply Reply Quote 0
                                        • C Offline
                                          Christos Palikaras
                                          last edited by 23 Feb 2022, 19:51

                                          @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();
                                          }'
                                          
                                          P 1 Reply Last reply 23 Feb 2022, 21:15 Reply Quote 0
                                          22 out of 43
                                          • First post
                                            22/43
                                            Last post

                                          Suunto Terms | Privacy Policy

                                            This community forum collects and processes your personal information.
                                            consent.not_received