Coder Social home page Coder Social logo

tools's People

Contributors

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

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tools's Issues

any plans to update zh-cn2en.py and base text files for latest firmware?

Hi. Are there any plans to update the zh-cn2en.py script file and base text files such as zh-cn2en.txt for the latest firmware(0.1.0.89)? I think English users might not need this script anymore since the firmware already supports English. But other different language users still need this tool since their languages are not supported in the firmware yet.

I've tried the script with the latest firmware and it didn't work.

How to generate zh-cn2en.txt from firmware?

I'd like to contribute a French translation.
I couldn't find in the documentation how to generate a new zh-cn2en.txt from recent firmware. I understand how it can then be used py zh-cn2en.py and patched into the .fw file, but I don't understand how it must be extracted in the first place.

Unable to extract .json from .bin file

Hi,

Thanks for creating this tool set. I used python dial2img.py -i file.bin -u - but it gives me a bunch of .raw and .png files - it does not extract the json file. As per https://www.reddit.com/r/amazfit/comments/8y14iw/watchface_mod_amazfit_bip_how_to_get_json_data/ this is faced by other users also. The toolset at https://bitbucket.org/valeronm/amazfitbiptools/downloads/ can extract the .json file too but unfortunately that is an .exe file. Any plans of adding extraction of .json too?

Cheers!

bipfont.py unpack is not working

I tried to unpack different amazfit font files, but bipfont.py use an unsupported operand:

bipfont.py unpack ISOCPEUR.ft ('Unpacking', 'ISOCPEUR.ft') Traceback (most recent call last): File "D:\Downloads\Amazfit Bip\AmazfitBip-tools-master\bipfont.py", line 148, in <module> unpackFont(sys.argv[2]) File "D:\Downloads\Amazfit Bip\AmazfitBip-tools-master\bipfont.py", line 33, in unpackFont num_ranges = (header[0x21] << 8) + header[0x20] TypeError: unsupported operand type(s) for <<: 'str' and 'int'

Using Python 2.7, Pillow 5.3.0 and the newest pathlib library for AMD64 on Windows 10. What can I do here to fix this issue?

Update: The amazfitbip tools readme told me that Python 2.7 is required. But it is not working. It seems that Python 3+ is required, because with Python 3.6.6 it is working. So the only issue here is updating the system requirements in the readme file.

About zh-merge_old2new_trans.py script

In Python I use this command zh-merge_old2new_trans.py -o zh-cn2en.txt.0.0.8.96 -i zh-cn2en.txt.0.0.8.74 and occur this error:

C:\Python27>zh-merge_old2new_trans.py -o zh-cn2en.txt.0.0.8.96 -i zh-cn2en.txt.0.0.8.74
Traceback (most recent call last):
File "C:\Python27\Scripts\zh-merge_old2new_trans.py", line 17, in
with open(args.input, 'r') as f:
IOError: [Errno 2] No such file or directory: 'zh-cn2en.txt.0.0.8.74'

Problem with translate zh-cn2en.py

Traceback (most recent call last):
File "./zh-cn2en.py", line 50, in
safe_address=tmp.split(':')[1]
IndexError: list index out of range

res2img testing - new res size

Hi everybody. first of all congrats for your work and thanks

I am testing res2img.py and i found one issue. My testing:

1 - Run res2img.py -u
2 - change all raw files so they are generated again
3 - Run res2img.py -p

Original res file size was 228656 bytes and new res file size is 373207. That is without changing any of the images: all the images are the original ones extracted in step 1.

Further analysis shows that every new raw has exactly double size of the original one (header excluded) and I think that is related with depth of the images extracted which seem to double the original depth read from the original res file

I suppose there should be a limit in memory space in the amazfit, so this colud be a issue

Could you check it?

Combining character

Could you make BIP combine character, cause some character is over/under previous character.
https://en.wikipedia.org/wiki/Combining_character

For example:
ḱṷṓn (U+006B U+0301 U+0075 U+032D U+006F U+0304 U+0301 U+006E)
ḱ (U+006B U+0301)
ṷ (U+0075 U+032D)
ṓ (U+006F U+0304 U+0301)

Could you check it from name like 03012U.bmp ("U" means upper)
and 032D2L.bmp ("L" means lower)

Thank max in advance.

Watch face editor

Hello!
Great tools here, thanks for making them, but would it be hard to make some kind of a simple watch face editor? Something that would disassemble res file, and let a person edit 20(or how ever much there are)pics for the watch face and then save them in right format, then reassemble res file?

Memory Error with latest resource file

Using the latest firware, v1.1.5.56, the resource file contains possibly too many resources? I'm not very familiar with python so maybe I'm missing something.

After making a change to allow the newer header NERES mentioned in #52, I get the following output when trying to run res2img.py -d -u -i chaohu_v69.res:

file is a Haumi resource file
version 69
number of resources: 4294967295
Traceback (most recent call last):
  File "./tools/res2img.py", line 387, in <module>
    extract_list = range(max_rsrc)
MemoryError

Python version is 2.7.15+ and linux 64bit.

Any ideas?

res2img.py - the newest, Windows, Python 2.7

I have got problem with the newest script res2img.py in Windows. When I try to unpack a *.res file (-i test.res -u) have got that error:

Traceback (most recent call last):
File "test.py", line 386, in
raw2png(index)
File "test.py", line 298, in raw2png
PLTE_len='\x00\x00\x00'+chr(len(PLTE_chunk))
ValueError: chr() arg not in range(256)

GPS not tracking

I'm try firmware amazfit bip 0.10.0.87 En force. test with sport mode outdoor running.
after push button and wait a long time for get GPS signal. (not happen 5 mins)

when I'm skip and start running around 10 mins 2-3 km. and stop it for save data.
But It's show message too short distants for save. and no tracking to save
(outdoor very open area)
please help me to check this bug

Error with res2img.py

I got this error when open res2img.py:
SyntaxError: invalid syntax (res2img.py, line 56)
Please help me.
res2img py error

zh-cn2en.py and russian TXT

Traceback (most recent call last):
File "ru-fw.py", line 213, in
s="".join(s_ar)
File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x98 in position 0: invalid start byte

bip font

how to use this awesome bip font tool. I tried to unpack but it didn;t work

Txt. file in Amazfit Bip

Hi, it's possible someone say me how get txt. file to translate a new .fw?. I decompress Mi Fit.apk and I obtain .fw file but I don't know how get .txt file to translate, thanks and best regards.

dial2img.py and problem with unpack *.bin file

python dial2img.py -i dial.bin -u
file isn't a resource file. Exiting
Traceback (most recent call last):
File "dial2img.py", line 368, in
os.exit(1)
AttributeError: 'module' object has no attribute 'exit'

Why?

create new language

hi, i want create language(turkish). But i don't know createing language. Can you halp me?

isn't indexed or uncompressed

Path to reproduce:

  1. ./res2img.py -i Mili_chaohu.res -u
  2. ./res2img.py -i Mili_chaohu.res -u -a
  3. ./res2img.py -i Mili_chaohu.res -p

Result

file is a Haumi resource file
version 255
number of resources: 414
resource 94 | addr: 12333
ERROR: 94 isn't indexed or uncompressed
Traceback (most recent call last):
File "./res2img.py", line 663, in
header_res.extend(img)
TypeError: 'int' object is not iterable

git show:

aa4a3ea

uname -a:

Linux wojtekadams 4.4.0-92-generic #115~14.04.1-Ubuntu SMP Thu Aug 10 15:06:53 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

How to convert PNG to RAW? How edit RAW files?

How to convert PNG to RAW files? How to edit RAW files?
I converted PNG some files to B&W palete (only PNG, without RAW), then packed its, and on my watch the images was with errors.

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.