[Question] No stupid questions - ask anything here
-
@SuuntoPartnerTeam thanks for explaining, i was mistaken that logIndex -1 is reading log forcurrently recorded excercise.
-
@SuuntoPartnerTeam
Hi, one question regarding date calculations. I saw in the Suunto Reference that Date is not supported in the standard built in objects.
So I need to do all date calculations based on seconds? Is this true?Thanks
-
@suuntopartnerteam I’m still a little bit confused about the
setText()behavior.For example
I create two template files, both with a<div id="testid" ....>section.
In the main.jsevaluate()function I set the textsetText('#testid', 'testvalue');This put’s the text in th div-section. If the text is changed, the div-section updates accordingly.
However, when I change the template to the second tempate (and call
unload('_cm');) the div-section on the new template, which has the same id, isn’t updated at all.Do you have any advise on how to handle this?
-
-
As with web development, ids are meant to uniquely determine an element. You shouldn’t use the same id for different elements. This is true even when those elements are inside different HTML templates, if both templates may be active at some point during the runtime of the app
-
You cannot change a template that is not active. The uiViewSet might be something worth looking at, depending on what you’re trying to achieve
-
-
Hey @hitriy .
You can fetch data from any device which supports being in peripheral mode – even a laptop. In your case, you would need to write an application for your phone which communicates with the watch using Bluetooth Low Energy.
-
Hi @harry08 .
That is right, you can only get precise current time or the day of the week. The rest needs to be calculated manually
-
Is it possible to get the Suunto Plus Guide a user has selected for the current workout? The goal would to the show a graphic representation (for example bar chart) to show all intervals of the workout and vertical ruler showing the current point in the workout.
-
@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.
-
Awesome, works fine for me. Worth buying new watches then!
-
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: -
Does the watches JS-runtime support WASM by any chance?
-
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:

but when I upload app to watch (Suunto 5 or Race 2), than there is no graph line for Heart Rate:
