Giter VIP home page Giter VIP logo

miwtool's People

Contributors

domenick90 avatar mino260806 avatar vonfritz avatar

Stargazers

 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

miwtool's Issues

Mi smart band 7 pro support

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

RuntimeError: component_index > len(offsets[offset_type])

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])

Cruise.zip

Need help

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.

RuntimeError: Unsupported coordinates type: RMSS

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

Burn.zip

multi faces support

you have hardcoded faces offsets,
but it has multi support

here is a structure

multi_faces

Redmi Watch 2 (AMOLED) unpack issue

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?

AssertionError

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

Unknown coordinates type: 0x50

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

Redmi watch 3

Do you plan to update this cool tool for redmi watch 3 too?
please...

encode_wfeditor IndexError: is out of bounds for axis 0 with size 3

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

RuntimeError: Unkown header

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

Multifunction_Date.bin.zip

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.