• Administrator
  •  
    Support Ukraine
    If you experience any problems with the forum (it is not visible, there is no way to post messages, or some functionality does not work), please let us know. If you have problems with registration or you did not receive confirmation letter, let us know and we will activate your account manually.
    If you get an "The submitted form was invalid. Try submitting again" error, delete cookies, then try again.
     

buttons don't work

A branch of the forum to discuss everything that is connected with Huami Zepp OS.

Moderators: asoo, Watchmens

Forum rules
All communication in this branch should only be in English.
Post Reply
marrud12
Posts: 19
Joined: 21 Sep 2022, 17:13
Location: CH
Contact:

buttons don't work

Post by 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...
User avatar
SashaCX75
Posts: 820
Joined: 26 Oct 2019, 15:18
Location: Ukraine
Has thanked: 13 times
Been thanked: 1029 times
Contact:

Post by 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
User avatar
SashaCX75
Posts: 820
Joined: 26 Oct 2019, 15:18
Location: Ukraine
Has thanked: 13 times
Been thanked: 1029 times
Contact:

Post by 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.
marrud12
Posts: 19
Joined: 21 Sep 2022, 17:13
Location: CH
Contact:

Post by 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?
User avatar
SashaCX75
Posts: 820
Joined: 26 Oct 2019, 15:18
Location: Ukraine
Has thanked: 13 times
Been thanked: 1029 times
Contact:

Post by SashaCX75 »

marrud12 wrote: 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 wrote: 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

Code: Select all

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 wrote: 05 Sep 2025, 22:55
Do you know a command for navigation-screen?
Show a screenshot to understand what is meant.
marrud12
Posts: 19
Joined: 21 Sep 2022, 17:13
Location: CH
Contact:

Post by 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.
User avatar
SashaCX75
Posts: 820
Joined: 26 Oct 2019, 15:18
Location: Ukraine
Has thanked: 13 times
Been thanked: 1029 times
Contact:

Post by SashaCX75 »

Try the command

Code: Select all

hmApp.startApp({url: 'OfflineMapScreen', native: true });
Post Reply

Return to “Zepp OS”

Who is online

Users browsing this forum: No registered users and 1 guest