2019년 9월 8일 일요일

How to make your own amazfit verge lite/GTS/GTR WF

  • Requirements
    • PC
    • text editor
      • vscode, notepad++, sublime text, atom, whatever...
    • image editor
      • gimp, MS paint, photoshop, ...
    • tool
      • https://github.com/ghtalpo/py_amazfit_tools 
      • https://github.com/amazfitbip/py_amazfit_tools/releases
      • https://github.com/ghtalpo/py_amazfit_tools/tree/master/resunpacker_qzip_bin
  • Step 1(uncompress)
    • If WF has zip or cmp on their name, it is compressed.
    • use resunpacker in resunpacker_qzip_bin to uncompress it
  • Step 2 (unpack)
    • If you know what Python is and how to use cmd(or shell, terminal)
      • install python3
      • install pip
      • install pillow (using pip)
      • go to the tool directory
      • packing demo watchface
        • "python main.py example_watchface/demo.json"
        • this will generate demo_packed.bin, demo_packed_animated.gif, demo_packed.log in example_watchface folder
        • open demo.json with text editor and you can easily understand what each section is.
      • unpacking watchface
        • download WF on online
        • "python main.py SOME_WATCH_FACE_NAME.bin"
        • this will geneate SOME_WATCH_FACE_NAME folder with one json and lots of pngs
          • if not, make sure bin is valid WF for verge lite.
            • there's some variants in amazfit(verge lite, mi band, bip, gtr and more?)
          • if that WF is working in your watch correctly, please submit a issue on github
    • If you don't know about Python and cmd stuffs
      • use main.exe
        • packing demo watchface
        • drag & drop example_watchface/demo.json onto main.exe(from uncompressed folder)
      • unpacking watchface
        •  drag & drop SOME_WATCH_FACE_NAME.bin onto main.exe(from uncompressed folder)
  • Step 3 (edit .json)
    • syntax is relatively simple but there's some trick in there
    • you can learn by uncompress others' WF.
  • Step 4 (pack)
    • read Step 2
    • check your new WF size
      • if it is too big, your watch will be unstable or some part will be missing
      • HW limitation
        • 1.5 MiB for GTS
        • 2.0 MiB for GTR(maybe) 
    • Keep your .bin size small
  • Step 5 (compress)
    • use respacker in resunpacker_qzip_bin
    • this will reduce WF size and time for installation on your watch
  • Nothing happened or seems not working?
    • there'll be a WATCH_FACE_NAME.log after packing/unpacking
    • look up the last 20(?) lines to see what happened
    • names of pngs should be continuous
    • battery without percent cause trouble in GTS
  • Done?
    • Unpack other's WFs to learn some tricks
    • Have a fun and make lot of WFs!
  • KEEP YOUR WF SMALL AT ANY COST!

    댓글 없음:

    댓글 쓰기