• 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.
     

need to fix code

Topics for the request of watch faces development.

Moderators: asoo, Watchmens

Forum rules
When adding a new topic, use the template: Topic title [device name]
For example: How to create watch face [Falcon]
All communication in this branch should only be in English.
Post Reply
youcohama
Posts: 11
Joined: 26 Sep 2019, 15:19
Location: egypt
Has thanked: 1 time
Contact:

need to fix code

Post by youcohama »

i hve problem with code
* need to make it when you press the right side of the watch face to move between time, steps, and weather
*when click on hand buttom disapear hands
Spoiler
Image
Thank you for your help asoo & SashaCX75 ,I'm trying to learn how to do version 11 but I am not an expert with JavaScript. All my work was simple with gtr 47 and other old virgin of amazfit watches, but with version 11, the situation is complicated for me.
Attachments
yh_gear2.zip
(668.04 KiB) Downloaded 66 times
User avatar
asoo
Posts: 2130
Joined: 03 Jan 2019, 01:48
Location: ͼͽ Thailand ͼͽ
Has thanked: 411 times
Been thanked: 2050 times

Post by asoo »

I think if you want to create a dial with the function you specified,
studying someone else's script is a good thing.
But from what I have checked from the attached file, it seems that you do not understand the script you are using.
I recommend studying and understanding the script line by line to understand what it is doing.

The problem is the same as last time you asked.

The problem is that you used someone else's script and you didn't check its correctness. You called a function that wasn't enabled in the main script. Therefore, the dial malfunctioned.
ͼͽ To request please use the interrelated forum in action ͼͽ
Please do not PM to me for requests ported watchface.
youcohama
Posts: 11
Joined: 26 Sep 2019, 15:19
Location: egypt
Has thanked: 1 time
Contact:

Post by youcohama »

can you fixed for me ?
and if you can record steps by any screen record tool to teach me the steps
thanks alot
User avatar
asoo
Posts: 2130
Joined: 03 Jan 2019, 01:48
Location: ͼͽ Thailand ͼͽ
Has thanked: 411 times
Been thanked: 2050 times

Post by asoo »

youcohama wrote: 17 Aug 2024, 17:05
can you fixed for me ?
and if you can record steps by any screen record tool to teach me the steps
thanks alot
I can't provide you with a screenshot of the solution.
Because I don't think it's the right way to help you.
The right solution is to understand the script that you used from others.

But I can provide you with a modified example. If you want to know where you must fixed it, you can compare the index.js file to find out where you went wrong yourself.
yh_gear2fix.zip
(630.56 KiB) Downloaded 72 times
ͼͽ To request please use the interrelated forum in action ͼͽ
Please do not PM to me for requests ported watchface.
Post Reply

Return to “Watchfaces creation (order table)”

Who is online

Users browsing this forum: No registered users and 0 guests