mino260806 / miwtool Goto Github PK
View Code? Open in Web Editor NEWA tool for manipulating Redmi Watch 2 Lite watchface files
License: GNU General Public License v3.0
A tool for manipulating Redmi Watch 2 Lite watchface files
License: GNU General Public License v3.0
Is it possible to add support for mi smart band 7pro in the future? This model is identical in terms of internal resources ( like redmi watch 2 china), the only difference is in the screen resolution.
Screen size - 1.64"
Resolution - 456x280
PPI - 326
Amoled
Traceback (most recent call last):
File "main.py", line 53, in
decoder = WatchFaceDecoder(input_file)
File "C:\Temp\RedmiWatch2SOFT\miwtool-main\decoder\watch_face_decoder.py", line 19, in init
self.parse_file()
File "C:\Temp\RedmiWatch2SOFT\miwtool-main\decoder\watch_face_decoder.py", line 40, in parse_file
self.offsets_decoder = ComponentOffsetDecoder(f, components_offsets_end)
File "C:\Temp\RedmiWatch2SOFT\miwtool-main\decoder\offsets_decoder.py", line 32, in init
self.parse_file()
File "C:\Temp\RedmiWatch2SOFT\miwtool-main\decoder\offsets_decoder.py", line 51, in parse_file
raise RuntimeError("component_index > len(offsets[offset_type])")
RuntimeError: component_index > len(offsets[offset_type])
Hi, I have been trying to use the tool for weeks on multiple platforms and I just cant do it. Its my first time using anything related to python and I need help doing it.
Hello! Another bug, unsupported coordinates. (Watchfaces attached)
Traceback (most recent call last):
File "main.py", line 53, in
decoder = WatchFaceDecoder(input_file)
File "C:\Temp\RedmiWatch2SOFT\miwtool-main\decoder\watch_face_decoder.py", line 19, in init
self.parse_file()
File "C:\Temp\RedmiWatch2SOFT\miwtool-main\decoder\watch_face_decoder.py", line 43, in parse_file
wf.components.append(ComponentDecoder(f, offsets=component_offset).get())
File "C:\Temp\RedmiWatch2SOFT\miwtool-main\decoder\component_decoder.py", line 20, in init
self.parse_file(component_type)
File "C:\Temp\RedmiWatch2SOFT\miwtool-main\decoder\component_decoder.py", line 62, in parse_file
raise RuntimeError("Unsupported coordinates type: RMSS")
RuntimeError: Unsupported coordinates type: RMSS
I can't figure out how to select the initial coordinate point. In my dial, the countdown starts at 90 degrees! See the screenshot.
Nike_decoded.zip
Hello! I want to unpack the dial from the Redmi Watch 2 with the Amoled screen. The unpacked pictures have the wrong colors! Is there any way to correct this?
Traceback (most recent call last):
File "main.py", line 53, in
decoder = WatchFaceDecoder(input_file)
File "C:\Temp\RedmiWatch2SOFT\miwtool-main\decoder\watch_face_decoder.py", line 19, in init
self.parse_file()
File "C:\Temp\RedmiWatch2SOFT\miwtool-main\decoder\watch_face_decoder.py", line 43, in parse_file
wf.components.append(ComponentDecoder(f, offsets=component_offset).get())
File "C:\Temp\RedmiWatch2SOFT\miwtool-main\decoder\component_decoder.py", line 20, in init
self.parse_file(component_type)
File "C:\Temp\RedmiWatch2SOFT\miwtool-main\decoder\component_decoder.py", line 71, in parse_file
assert wformat == Format.FORMAT_IMAGE.value
AssertionError
Phantom.zip
Hello! Coordinates type RMSS are work. But not work new some coordinates.
Traceback (most recent call last):
File "main.py", line 53, in
decoder = WatchFaceDecoder(input_file)
File "C:\Temp\RedmiWatch2SOFT\miwtool-main\decoder\watch_face_decoder.py", line 19, in init
self.parse_file()
File "C:\Temp\RedmiWatch2SOFT\miwtool-main\decoder\watch_face_decoder.py", line 43, in parse_file
wf.components.append(ComponentDecoder(f, offsets=component_offset).get())
File "C:\Temp\RedmiWatch2SOFT\miwtool-main\decoder\component_decoder.py", line 20, in init
self.parse_file(component_type)
File "C:\Temp\RedmiWatch2SOFT\miwtool-main\decoder\component_decoder.py", line 78, in parse_file
component.widget_type = WidgetType(wtype, category, wformat, coordinate_types)
File "C:\Temp\RedmiWatch2SOFT\miwtool-main\widget_type.py", line 12, in init
raise RuntimeError(f"Unknown coordinates type: {hex(ctypes)}")
RuntimeError: Unknown coordinates type: 0x50
Explore.bin.zip
When decoding in the log I see an error in the attachment. In some dials there is no such error and unpacking goes well.
Example of the dial with the bug. (https://drive.google.com/file/d/1_aK0Yln8FFi3IYyXF_I3Bs0floY7bAf2/view?usp=share_link)
LOG: NoneType object cid.txt
Do you plan to update this cool tool for redmi watch 3 too?
please...
Hey, is it possible to get support for Mi Watch Lite?
A watchface file can be found here
Hello! In new build tools im see error with encode wfeditor (in previous ver. miwtools seems are OKAY with this):
PS C:\Temp\RedmiWatch2SOFT\miwtool-main> python main.py --encode_wfeditor C:\Temp\RedmiWatch2SOFT!WacthFaces\output\ArcGTS_conv\ --output C:\Temp\RedmiWatch2SOFT!WacthFaces\input\gtspowder -ce little
Traceback (most recent call last):
File "main.py", line 75, in
encoder.encode(output_file)
File "C:\Temp\RedmiWatch2SOFT\miwtool-main\encoder\watch_face_encoder.py", line 30, in encode
counter = self.encode_components()
File "C:\Temp\RedmiWatch2SOFT\miwtool-main\encoder\watch_face_encoder.py", line 61, in encode_components
self.component_encoders[-1].encode(counter)
File "C:\Temp\RedmiWatch2SOFT\miwtool-main\encoder\component_encoder.py", line 35, in encode
self.encoded_data[3] = self.encoded_property_3()
File "C:\Temp\RedmiWatch2SOFT\miwtool-main\encoder\component_encoder.py", line 124, in encoded_property_3
self.encode_image(image)
File "C:\Temp\RedmiWatch2SOFT\miwtool-main\encoder\component_encoder.py", line 149, in encode_image
image_bytes, mask_bytes = ImageEncoder.encode_from_image(image, self.component.spacing)
File "C:\Temp\RedmiWatch2SOFT\miwtool-main\image.py", line 86, in encode_from_image
mask_array[y, x] = pixel[3]
IndexError: index 3 is out of bounds for axis 0 with size 3
WF to encode: https://drive.google.com/file/d/1W3-mJCZJqQMpwY1qlG6h6M-6p1ZUSU6X/view?usp=share_link
PS C:\Temp\RedmiWatch2SOFT\miwtool-main> python.exe main.py --decode C:\Temp\RedmiWatch2SOFT\miwtool-main\Multifunction_Date.bin --output C:\Temp\RedmiWatch2SOFT!WacthFaces\output\Multi
Traceback (most recent call last):
File "main.py", line 53, in
decoder = WatchFaceDecoder(input_file)
File "C:\Temp\RedmiWatch2SOFT\miwtool-main\decoder\watch_face_decoder.py", line 19, in init
self.parse_file()
File "C:\Temp\RedmiWatch2SOFT\miwtool-main\decoder\watch_face_decoder.py", line 29, in parse_file
raise RuntimeError("Unkown header")
RuntimeError: Unkown header
After repackaging in the dials some of the weather values start with 0 (eg 01, 02, 03 degrees) in the stock, while 0 is ignored (1, 2, 3 degrees)
GreenYears_RU.zip
Hello! After decode from new ver miwtool - prewiew and extracted images watchfaces are OKAY, but after packing and install this on Watch i see colours bugs. See Screen. Example Watchfases: https://drive.google.com/drive/folders/14hC6RZyfxK9hMSG13C2wlokoDxZ3TRqe?usp=share_link
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.