[Question] No stupid questions - ask anything here
-
@suuntopartnerteam I am working with a sprite map currently and have two approaches where I would need some guidance on:
Is it better to have a bigger sprite map with different permutations of individual elements or is it better to have a smaller map with each element as individual sprite but more
<img>tags in the HTML? -
@SuuntoPartnerTeam Thanks for your reply.
I tested your code in a fresh default project created from scratch. It works correctly in the simulator, but still not on my Suunto Race S.
I also reviewed the watch settings. The only options that seem potentially related to the touchscreen are “Do Not Disturb” and display settings (AOD, full wake-up), and both are configured correctly.
In my case, the touch event is not critical—it’s mainly a nice-to-have feature used to manually cycle through data, which already rotates automatically every few seconds.
-
@surfboomerang said in [Question] No stupid questions - ask anything here:
I’m trying to pass the default index of a uiViewSet like this:
main.js
function getUserInterface(input) { return { template: "t", uiViewSet:{index: input} }; }This is assigning all input resource values (i.e an array) to
index, perhaps that’s not what you’re looking for? You could use an individual input or output value, e.g.:function getUserInterface(_input, output) { return { template: "t", uiViewSet: { index: output.index } }; }There also seems to be some string case conversion going on, I only get it to work if I use all lowercase
{zapp_uiviewset_index}in HTML.Perhaps the more standard solution in the previous answer is better, but using input or output values is also possible.
Also, if you return
uiViewSet:{index: input}, the minified JavaScript code will be:return{template:'t',uiViewSet:{index:input}}. This seems incorrect, becauseinputvariable doesn’t exist in the minified code. Maybe there’s no use case for this, but looks like a JavaScript conversion / minifier bug anyway. -
@Raimo-Järvi Nice find! Thanks for diving into this as well.
In the mean time I had to change some other code and the issue became obsolete, but I will definitly remember this in future projects. -
Hi.
Is there a way to obtain the GPS position using a input resource other than
/Navigation/Gps/Coordinates/{Filter}
which requires enabling navigation on the watch at the start of the exercise, something that’s not desirable for the app I’m developing?
Thanks.
Edit: That service provides the coordinates even if navigation is disabled. It’s possible that if navigation is disabled, it takes a few seconds to provide them, which is why my code failed as initially written.
-
@Tomas5 the only diff is see between us is the stroke color. maybe default is black so you don’t see it?

-
2 questions regarding Settings
-
How can a user approach my app’s seetings if i bypass the suuntoplus app? (i deploy directly…)
-
and another settings question:
on vsCode i wish to keep a setting value for the next time, so , as a test to see if it works i do:
var loadSettings = function(input, output) {
settings = localStorage.getObject(“appSettings”);
settings.active++;
if (settings == null) {
settings = {
maxPace: 12,
timelapse: 123,
active: 0
}
}
localStorage.setObject(“appVariables”, settings); //save
}so i’m advancing ++ and saving.
- on vsCode indeed it works (i added debug on UI to view value), but on my watch it stays 1…
ideas?
-
-
@assaf1007 said in [Question] No stupid questions - ask anything here:
How can a user approach my app’s seetings if i bypass the suuntoplus app? (i deploy directly…)
You can use a “data.json” file to enter the settings. Is that what you’re looking for?
-
@assaf1007 thanks it helped, in simulator line is always blue regardless storke color, but in watch it needs defined stroke-color to work properly.
-
@surfboomerang i’m using data.json and may use its values inside the .js file
but i wish to be able to set values at the watch itself (if possible), not at vsCode or suuntoplus app.
imagine a co2 table (for freedive practice) where user must set specific personal values.- in such case, i need (= user need) some kind of a preliminary UI (before app starts) to be able to update settings…