Page 1 of 1
need to fix code
Posted: 17 Aug 2024, 11:20
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
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.
Re: need to fix code
Posted: 17 Aug 2024, 15:05
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.
Re: need to fix code
Posted: 17 Aug 2024, 17:05
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
Re: need to fix code
Posted: 17 Aug 2024, 17:23
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.