Página 1 de 1
buttons don't work
Publicado: 31 Ago 2025, 22:19
por marrud12
I have some questions about "hmApp.startApp" on my Active 2(NFC), all installed by V14.1.1 in the "Buttons"-menu from pulldown without changes.
What should do Respiration (url: 'RespirationControlScreen')? When I click the button, nothing happens.
The same problem with Breathing ({url: 'RespirationwidgetScreen', both in "Activities".
Also the App World Time (hmApp.startApp({url: 'WorldClockScreen') does nothing. In watch menu I can select worldclock and it works, but the button doesn't call it.
All this apps should work, but don't, because they are exactly like this in the firmware-files.
Other apps like Calendar, Alarm, BaroAltimeter, Compass, Sun etc. work fine.
Does somebody know how to call navigation-screen by "Button"?
PS: Also on Lattenknaller's "Illuminator Active 2" World Time (tap on analog watch) doesn't work...
Re: buttons don't work
Publicado: 04 Sep 2025, 14:00
por SashaCX75
In the new firmware, the World Time app is not part of the firmware but is installed as an external programme. Therefore, the path to launch it has changed. I think the same problem applies to Breathing.
I thought I had added new buttons in the latest version of the editor. But now I looked and it turns out they are missing somewhere.
hmApp.startApp({ appid: 1049670, url: “page/wclk_showLayer”}) - start world time
Re: buttons don't work
Publicado: 04 Sep 2025, 14:09
por SashaCX75
For breathing appid: 1053484
And url can take the following values
"page/gt/home/index.page",
"page/gt/help/help.page",
"page/gt/result/result.page",
"page/gt/start/start.page",
"page/gt/select/select.page",
"page/gt/measure/measure.page",
"page/gt/setting/setting.page",
"page/gt/edit/edit.page",
"page/gt/week/week.page",
"page/gt/repeat/repeat.page"
I haven't checked which of these actually works. You can check for yourself and write about it here.
Re: buttons don't work
Publicado: 05 Sep 2025, 22:55
por marrud12
Thanks for this answer for World Time, but first, instead a watchface, only a black screen on the watch...
Your hmApp... is wrong with double quotes, only singe quotes allowed + a semicolon at the end:
hmApp.startApp({appid: 1049670, url: 'page/wclk_showLayer'});
like this it works.
World Time works fine, but your urls for breathing appid: 1053484 all do nothing...
Do you know a command for navigation-screen?
Re: buttons don't work
Publicado: 06 Sep 2025, 08:47
por SashaCX75
marrud12 escribió: 05 Sep 2025, 22:55
Your hmApp... is wrong with double quotes, only singe quotes allowed + a semicolon at the end:
Actually, that's not entirely true. Semicolons are not required at the end. Double quotes can be used in the code. But if you add code via the editor, double quotes are converted to another character due to data storage features, and this causes an error. I will try to fix this in future versions.
marrud12 escribió: 05 Sep 2025, 22:55
but your urls for breathing appid: 1053484 all do nothing...
It works. Just not quite the way I would like it to. The most suitable command is
Código: Seleccionar todo
hmApp.startApp({ appid: 1053484, url: “page/gt/home/index.page”})
This application was not installed on my watch by default, so I had to download it from the store. Please check that it is installed on your device. It has been tested on Balance 2 and Active 2 Premium.
marrud12 escribió: 05 Sep 2025, 22:55
Do you know a command for navigation-screen?
Show a screenshot to understand what is meant.
Re: buttons don't work
Publicado: 08 Sep 2025, 15:53
por marrud12
Now it works with the downloaded app. It would be fine if you write, e.g. in "Tips for use", what App from the store is needed for a function.
Active 2 premum has a navigation screen (map) and I am looking for a function for a button to call it.
Re: buttons don't work
Publicado: 08 Sep 2025, 18:05
por SashaCX75
Try the command
Código: Seleccionar todo
hmApp.startApp({url: 'OfflineMapScreen', native: true });