Giter VIP home page Giter VIP logo

tools's Introduction

Amazfit bip tools

This is a suite of tools to make easier to translate and tweak Amazfit bip (A1608) watch.

Usually each tool have its -h flag that allow you to understand better how it works.

Requirements:
Python 2.7.x

res2img.py

small tool to convert amazfit bip resource file to a standard image file.

./res2img.py -h

./res2img.py -u [-a] [-i Mili_chaohu.res]

edit your bmp you will find in a new direcory freshly created

./res2img.py -p [-i Mili_chaohu.res]

repack the res file with new name

if you call it without any parameter actually it will look for "Mili_chaohu.res_3.0.4"

it will generate splitted a number of raw file and for each file a correspondent png file.

*** The bip display has 8 colors only (black, white, red, green, blue, yellow, cyan, magenta) The stock res only uses 0 or 255 as r g b values. If a resource uses transparent we translate this as 254,254,0 in the png If a png uses 254,254,0 as first color we use it as transparent creating that resource ***

zh-cn2en.py

./zh-cn2en.py [-h] [-l en] [-p]

Process zh-cn2en.txt by looking for hex string pattern, connect to google translate and add the english translation to the txt file this tool can be useful for replacing string from chinese to english

zh-check_translation.py

It can help you check the translation (the length of translated strings must be less than or equal to the length of the chinese strings). It prints the line number where the problem occurred

zh-merge_old2new_trans.py

If there will be a new zh-cn2(lang).txt file from next firmware upgrades, the tool can be used to merge your translations from the old "zh" file to the new one

tools's People

Contributors

dpeddi avatar heartlandzf avatar winni159 avatar tymcio avatar flippy12 avatar storm43 avatar wojtekadams avatar till0196 avatar duartefq avatar yener90 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.