7.16 Update 1.2
1. Share the latest self-use self-writing emulator
2. Fix the black screen issue
7.9 Update 1.1
1. Support more APIs and fix several problems
The following content is original, please indicate the source and the author's @GiveMeFive for reprinting
Maybe everyone is very distressed, you can't see what it looks like when you develop the dial, and you don't know until you install it;
The official only has an emulator for the watch at present, and it is troublesome to install, only supports the Linux system, and dissuades countless people, including the author himself (I didn't do it well for three or four hours)
Hence the idea of a homemade simulator. It supports most of the watch face controls, the invocation and rendering of the applet interface, the click event, and the Timer function.
If you encounter something that is not supported, please leave a message on the post, and adapt and upgrade when you see it.
The above is the preface, and the tutorial will be put later, and the following tutorial will be basically completed in 10 minutes
1. Unzip the attachment to get the following folder, note that the unzip path cannot have Chinese! 浏览附件13017
2. Click on start.exe to open the service (actually the nginx service)
3. Open Google Chrome (preferably Google Chrome), enter http://127.0.0.1:8088/ in the address bar, and open the following screen. If you can't access it, see if the extraction path contains Chinese and whether port 8088 has been occupied 浏览附件13022 浏览附件13023
4. OK, the emulator has been started, and the next step is to modify the watch face. The watch face file is in the following directory.
The files inside are the same as those that are extracted from the normal watch face. However, it should be noted that the decompressed images should be converted to normal PNG, and they should also be manually converted to TGA format when packing
See another post on the conversion tool, which is posted 浏览附件13019
5. Then, you can use any development tool to modify it, just refresh the browser after the modification. Sometimes the browser has a cache, and the cache is cleared and refreshed.
For debugging, please use the browser's F12 function for debugging
Okay, that's the end of the tutorial. Note that if the path of the watch face file is not watchface/index.js, please modify the path address in the following file 浏览附件13020