7.16 Update 1.2 version
1. The latest self-use and self-written simulator sharing
2. Fix the black screen problem
7.9 Update 1.1 version
1. Support more APIs and fix several problems
The following content is original, please indicate the source and author @GiveMeFive for reprinting
Maybe everyone is very distressed. When the dial is developed, you can't see what it looks like until you install it. When the applet is developed and installed on the bracelet, nothing comes out, and no problem can be found.
The official only has a watch simulator at present, and the installation is troublesome. It only supports the linux system, and has persuaded countless people, including the author himself (it took three or four hours to do a good job)
Hence, the idea of a homemade simulator came to mind. Supports most dial controls, the calling and rendering of applet interfaces, supports click events, and supports Timer functions.
If you encounter unsupported ones, please leave a message, and adapt and upgrade when you see it.
The above is the preface, followed by the tutorial, the following tutorial is basically completed within 10 minutes
1. Unzip the attachment to get the following folder, note that the unzip path cannot contain Chinese! 浏览附件13017
2. Click 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 decompression path contains Chinese, and if port 8088 is occupied 浏览附件13022 浏览附件13023
4. ok, the simulator has been started, the next step is to modify the dial. The watch face files are in the following directory.
The files inside are the same as those extracted from the normal dial. However, note that the decompressed images should be converted to normal png, and manually converted to tga format when packaging.
See another post for the conversion tool, there is a post 浏览附件13019
5. Then, you can use any development tools to modify, just refresh the browser after modification. Sometimes the browser has a cache, clear the cache and refresh it.
Please use the browser's F12 function to debug
Well, the above tutorial is over. Note the following, if the path of the watch face file is not watchface/index.js, please modify the path address in the following file 浏览附件13020