Page 1 of 1

Help with simulating watchface using Zepp OS [ balance]

Posted: 16 Jan 2025, 00:33
by piotarock
Hello community,

How are you? I am trying to preview my watchface via the Zeus simulator. I have been able to install Zeus SLI and simulator. However, I am stuck at making the preview/simulation. I am attaching the screen shots and when you have some time, please let me know where I am making a mistake. Plus, screenshot 7 includes an error that I get after copying the app.json file from my packed watchface. In addition, my project appears to be empty in the simulator regardless of making changes to the project.

Note: I have tried the unofficial online simulator but as suggested it cannot fully simulate the watchfaces.

Kind regards.
Spoiler
Image

Image

Image

Image

Image

Image

Image

Re: Help with simulating watchface for the balance

Posted: 16 Jan 2025, 15:55
by SashaCX75
The sequence of actions is correct. You have an error somewhere in your code.

Re: Help with simulating watchface for the balance

Posted: 16 Jan 2025, 18:42
by taw_bip
You could run your code through Claude or ChatGPT to see if it can spot the error.

Re: Help with simulating watchface for the balance

Posted: 17 Jan 2025, 03:42
by piotarock
SashaCX75 wrote: 16 Jan 2025, 15:55
The sequence of actions is correct. You have an error somewhere in your code.
Thank you for the reply. Yes, there is a problem. First, I created the watchface using the amazing watchface maker you made (v13.0). I packed the watchface but I needed to simulate it via Zepp OS and zeus CLI.

I created a job using the command zeus create Epsilon
Then, I selected the type of application, in this case, watchface.
I chose balance as my watch. New folders were created. Now, here is where the challenge is, I cannot get to so the simulation from here. I tried to copy my images to the assets folder, the index.js to the watchface folder and the app.js file to the root of working folder. However, nothing seems to be working.

After copying the app.json, I get the error select at least one package.

Is there a specific code that I am supposed to use to start the simulation?

I am really confused about this.

Kind regards.

Re: Help with simulating watchface using Zepp OS [ balance]

Posted: 17 Jan 2025, 07:27
by SashaCX75
Of course it's going to cause an error. Because if you look at the structure of the files before changing them, you will see that it is different. In the best case you can copy the init_view() function from one file to another. But you also need to m,eltn copy other elements besides the function.

Re: Help with simulating watchface using Zepp OS [ balance]

Posted: 17 Jan 2025, 09:15
by piotarock
SashaCX75 wrote: 17 Jan 2025, 07:27
Of course it's going to cause an error. Because if you look at the structure of the files before changing them, you will see that it is different. In the best case you can copy the init_view() function from one file to another. But you also need to m,eltn copy other elements besides the function.
Thank you. Yes, I realized that the files have a different structure. I will try that out.
What do you mean by "m,eltn copy"?

Re: Help with simulating watchface using Zepp OS [ balance]

Posted: 17 Jan 2025, 09:28
by piotarock
Here are the screen shots of the two json files. The one on the right is generated by Zeus CLI while the one on the left is from the packed watch face. I cannot find the init_view() function. Which lines should I specifically copy to the zeus app.json for the simulation to commence?
Spoiler
Image

Re: Help with simulating watchface using Zepp OS [ balance]

Posted: 17 Jan 2025, 19:02
by SashaCX75
piotarock wrote: 17 Jan 2025, 09:15
What do you mean by "m,eltn copy"?
"But you will need to copy other elements besides the function."
A typo in the translation.

Re: Help with simulating watchface using Zepp OS [ balance]

Posted: 17 Jan 2025, 19:18
by SashaCX75
@piotarock
1. The editor makes watch faces on API 1. In Zeus CLI you have created code on API 2. They have fundamentally different code and cannot be copied. Create a watch face on API 1. If it is important for your design to use functions that are available only on API 2, you can take only coordinates of elements from the editor, and the whole code will have to be rewritten.

2. You don't need to change the app.json file. You only need to change the lockscreen parameter in it if you want to add AOD. And permissions section if you use API 2. You need to change the *.js file in the watchface folder.

3. Maybe you don't need to use Zeus CLI. If you need to make small changes in the code, it is easier to edit the code in any editor and test the result in ZeppPlayer. But not everything works in it.

Re: Help with simulating watchface using Zepp OS [ balance]

Posted: 17 Jan 2025, 21:38
by piotarock
I see. Thank you very much.

Re: Help with simulating watchface using Zepp OS [ balance]

Posted: 17 Jan 2025, 21:52
by piotarock
@SashaCX75 This worked. Thank you very much.