amazfitbip / tools Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v2.0
License: GNU General Public License v2.0
how to use this awesome bip font tool. I tried to unpack but it didn;t work
As like in topic, please look on my commit:
https://github.com/wojtekadams/amazfitbip_tools/commit/f7ab87606fd7b4b11b534f84a2123437deebf545
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?
how to pull language txt from firmware amazfit bip?
can anyone share 0.1.0.17 en txt?
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!
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
it couldn't unpack T-Rex font, whilst it is ok for Bip font. I uploaded default font of T-Rex in last FW as your reference.
I would like to add Polish, could you briefly explain how to do it? :)
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.
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?
Path to reproduce:
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:
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
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.
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
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.
I couldn't make it using flow I found for AMAFIT BIP - I get error for COR firmware
Thanks
Oren
When I am checking length of translation (en, pl) it shows me, that it's too long.
https://scr.hu/d5Gkpn
Traceback (most recent call last):
File "./zh-cn2en.py", line 50, in
safe_address=tmp.split(':')[1]
IndexError: list index out of range
Is it possible for dial2img.py to be modified to work with Mi Band 4 .bin file?
@dpeddi Hi, please someone can say me what command it's necesary?, thanks.
I noticed that the script does not take up the space at the beginning and end of the strings as HEX 32. How to change it?
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.
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.
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?
Hi first thanks for awesome project!
You guys miss a string in italian translation ( alarm )
pict: https://s26.postimg.org/ia693txnt/IMG_20170912_131608.jpg
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'
@dpeddi Do you have 0.0.8.97.txt in english?, thanks.
Since Version 3.2.8 of MiFit I can't extract the resource file.
The file now got a "NERES" header instead of "HMRES"
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.
hi, i want create language(turkish). But i don't know createing language. Can you halp me?
Is any chance for adaptation res2img to Amazfit Band?
Is possible install the same fw modified, when i try with gadgetbridge error is using the same firmware.
Downgrade is possible?
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)
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.