-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Watcface creation amazfit GTR2(2e), GTS2(2e) #5
Comments
@bigdigital https://github.com/twinko/GTR-2-WF-Xdrip-EN/tree/main/small_v2 |
Sounds great. I'll try to reduce the size even more and adapt the look a little bit. |
Reducing the number of colors actually not influence to the watch face size. Unfortunately, this watch model understands only 32 bit true color images with transparency. So every pixel here takes 4 bytes of the data. The watcface packer will anyway convert your 8 bit image to true color image. |
Reducing number of the colors, was actual for miband and bip watch series. But for gtr it does not work. |
hmmmm, ok, looks like my trick doesnt work. But i would love to know if Photoshop does anything elso to reduce the image size. I will create the same WF with the original images today. If that takes the same time to completly upload, my photoshop magic didnt work :D btw thank you for all he in depth details and testing :) One more thing. you didnt upload the graph, would that slow down the process even more? |
Want to add one more thing, the watch takes a packed watcface. It uses a QuickLZ algorithm to compress the watcface. I am not familiar in detail how it works, but i guess, if using a images with the same color in a row, the compression rate can be higher. This can reduce the watcface size. So maybe, the number of colors can affect the final file size. In this case watcface would be transferred faster. And i guess such watcface can be uncompressed faster on the watch itself (not sure) so this can also affect "activation" state. |
Hey @bigdigital , thank you for the investigation. Reducing colors is pretty bad for complex designs but for a simple design it would help a ton to reduce the colors in total. Sometimes you find a color thats used but not really visible on the watch. 1. Because, my compressed .bin is way bigger than the files in the folder on my PC. all png and json: 45 kb 2. 3. ###################################### And attached the latest version of the WF. Its way better looking and reduced the size down to 90kb. But i dont see any more space to reduce the size without loosing pretty bad in looks. |
|
|
|
HEy @bigdigital thank you for your detailed reply!
Would the following work? Or without " ?
I used everything you told me above and created the following. https://github.com/twinko/GTR-2-WF-Xdrip-EN/tree/main/01-WF-MD225-Version3-xdrip-ready Im not 100% sure regarding the positioning of the xdrip data. Sadly my watch still isnt shipped, i already contacted the seller, having some trouble there. Could you test the files regarding complete watchface uploading time and how it looks? As soon as i have a working watchface, I'll create a guide for others to create own watchfaces. It was a steep learning curve for me :D Thank you for your support :) *Update: looks like i did something wrong :( |
Sorry for the delay in response, was busy last week to take a look. I have long wanted to start writing a guide for creating custom watch faces, but I still can't find the time for this. It would be cool if you can do it :) |
@bigdigital I'll create a guide with all the stuff i learned so far. I'll link it here and if possible I'll give you ediing rights, to add things if you feel like i missed something. |
@bigdigital startet writing the guide, if you want to edit something, let me know. Than i need to figure out how to give you writing rights :) |
@dubidrubi looks sweet. would be great if we could upload it here: https://github.com/twinko/xdrip-watchface-collection Please upload the necessary files, than i upload it and add it to the collection. :) btw thx for the update on the graph. hadn't time to tinker with it. |
@dubidrubi Looks nice. Yep, there is no way to remove the graph. In future versions, it would be possible to do this by removing "graph" item in the config file. For now, i guess you can simply set XY graph position to the outside of the canvas. |
Here you go https://ufile.io/f/rjgxn Thanks @twinko and @bigdigital |
@dubidrubi awesome, could you do me a favor and upload an gif aswell (the oes you can createwithe the watchface editor, to see a preview)? |
@twinko absolutely |
@dubidrubi Can i know how long watchface uploading takes for you? I see the uncompressed watchface has size 790kb. I did some optimization in your watchface, so the wathcface size decreased to 245kb . When compressed, it takes only 27kb, so i think wf uploading should be much faster now. Can you test it? my_watchface_nike_optimized_v1.bin.zip |
@bigdigital Thanks, indeed update time improved a bit. May I know what have you changed exactly? |
Btw, graph position adjustment doesn't seem to be working, moving it outside the image doesn't work for me :( |
Thanks, didn't know that makes a difference. |
@dubidrubi btw if you want even faster upload times, you ca reduce the size of every image by following the guide here: This can cut the size in half or even further and you wont notice the quality reduction on your watch. But it takes some time to modify every image. @bigdigital @dubidrubi |
@mavricaaa now it says file removed ^^ Perhaps a google drive or dropbox upload is a better way. |
@twinko https://www.dropbox.com/s/7vhacxxhtgeyoc4/GTR2EXDRIP.zip?dl=0 OMG I am really clumsy these days -.- . I guess it was a limited time availability file sharing site. Hopefully it is okay now:) |
Hi Twinko,
my question belongs to watchface nr. 14 for GTS2, in detail:
- I was not able to install the watchface files in the filestructure of the readme file, because I use Android 11 and do not find the xdrip+-folder on my android phone
- I was able to download sashas watchface editor, upload the watchface bin file and save it, so then an watchface installation with notify - app was possible
But: No bloodsugar values are displayed from xdrip+
So who can help me to find the xdrip+-folder on Android Phone and how to put the files there ?
Which part of xdrip+ you are using, the amazfit-sync-service or MiBand as Smartphone ?
Is there any how to set the right buttons ?
Best regards
HaraldS76
Gesendet: Dienstag, 09. November 2021 um 11:22 Uhr
Von: "twinko" ***@***.***>
An: "bigdigital/xDrip-miband" ***@***.***>
Cc: "HaraldS76" ***@***.***>, "Mention" ***@***.***>
Betreff: Re: [bigdigital/xDrip-miband] Watcface creation amazfit GTR2(2e), GTS2(2e) (#5)
@HaraldS76
hi, im really confused by your questions.
please specify which question belongs to which watchface? Does your first question is about the default watchface or the one provided by dubidrubi?
You ca find different watchfaces (only 1 at the moment for the GTS), including a tutorial here: https://github.com/twinko/xdrip-watchface-collection
If you finde more, let us know.
Its possible to convert GTR2(e) watchfaces to GTS2(e) ones, i think! Please read here for more information. I think the last releases of the watchface Editor are able to convert watchfaces.
https://amazfitwatchfaces.com/forum/viewtopic.php?t=1888
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Is anyone already trying to implement this to GTS/GTR3? I already applied on huami's developer portal. But as an individual developer the access is very limited. |
@mavricaaa added your WF to the collection, thank you for contribution :) https://github.com/twinko/xdrip-watchface-collection @HaraldS76 im sorry about the missing xdrip folder, i cant help with that. You need to find it or ask the xdrip community about where to find it here (https://github.com/NightscoutFoundation/xDrip/issues). @Klaus3d3 i follow artems patreon and right now he didnt wrote anything about plans to implement this to gts or gtr3. I think a much requestet watch lately was the gts 2 mini. Some days ago he puplished miband6 support. |
@Klaus3d3 I already did some research regarding GTR3. The watcface modification in GTR3 version is now much easier, and do not require a watcface deobfuscation or any special compilation. The watcface for this watch is a simple zip package which contains a javascripts and images. The javascript defines the watcface representation and image resources are encoded with a slightly modified TGA images protocol. But since this watch has a new OS, not sure it would have a similar communication protocol. So most possibly the implementing integration for this watch would require a lot of time to reverse-engineer the communication protocol. For now, i guess, the next watcface for implementation would be a gts 2 mini. I also have plans to separate miband project from the xdrip. This would allow adding a new features and devices without touching xdrip core. |
Thanks for looking into it. Yes, the watchfaces are much easier to design. Huami already provided a watchface editor via their developer platform. |
greetings to all. I am fighting following the guide (https://github.com/twinko/amazfit-watchface-xdrip-guide) to be able to create a WatchFace to my GTS 2. I have tried from the most basic to have a base, but always when it comes to overturning and synchronizing my test WF, it gives me synchronization error. My question: I also think that I make some mistake in this step, since, the .bin file that is created is always gigantic (between 1MB - 3 MB) compared to other WF.Bin that I have seen that only be around 200KB - 800KB). Is those size normal? Thank you very much to all who can help. |
@lunaroc Regarding your question try: "--gts2" instead of "--gtr2 47" and please report back if that worked. I dont kow your files but yes thats totally possible, they become bigger than the raw files, thats why i meantioned the following in the guide: The smaller the watchface the better. We'll come to this later but all pictures inlcuding the json file should'nt be bigger than 50kb. In the future, feel free to adress guide ralted issues here: https://github.com/twinko/Amazfit-watchface-Xdrip-guide/issues |
I've done some work for gts2 mini and simply adding a type for it I was able to get alarms and connect to it. |
@dircsem It seems the GTS 2 mini is not suitable for xdrip because it is not possible to disable vibration after the watcface uploading here. There is no option to disable system vibrations like it was on GTS2/GTR2 . Can you check this? If that's true, i do not see a reason of implementing xdrip integration for this watch. The vibration every 5 minutes would be very annoying. |
@bigdigital I can be the tester for this. |
@Klaus3d3 |
Seriously i still did not get access. |
Crap, I was wondering if it worth registering as a developer but it seems that it doesn't. Thanks for the reply. |
@dircsem so you claim there is no vibration after watcface uploading if you try to upload a new watcface via Zepp application (exactly uploading and not switching already uploaded watcface)? A couple of people i've asked before, said they have a vibration. There is no problem to add support for this watch, but if this watch has a non-switchable vibration after the watcface uploading like it was for Amazfit GTR and GTS, i do not see a reason for spending time for this watch model. |
@bigdigital Yes I agree with you, if the watch vibrate when changing the watchface it wouldn't be usefull to have it vibrating every 5 mins. |
Hm, interesting, thank you for this info can i know your watch firmware version? I've investigated a watchface structure for this device a couple of months ago. The watcface structure on this watch is absolutely different in comparison to miband, or other amazfit devices. This watch uses another elements structure that is not present in the existent python scripts, also the wf resources are encoded in a different way. So existent python scripts are not suitable for this watch and adding support (like i did for gtr2/gts2 would take too much time). To create a watchface itself it would be better to use a developer tool from amazfit. Also the watcface patcher in xdrip should be modified to properly encode images. For now, I'm working on separating miband/amazfit part and xdrip. When i got some results with this. I'll try to add support of GTS2 mini |
Great, do you need some help on this miband/amazfit code separation from xdrip?] |
https://github.com/JulienMaille/py_amazfit_tools/tree/GTS2mini This fork seems to do the pack and unpack of gts2mini |
Looking at the code there, seems that gts2mini and bipU have the same, or a close way to interpret the watch-faces |
Thanks, i'll check it. |
@dircsem could you please contact me via email ([email protected]), i'll send you an apk for testing |
Good news, Zepp Studio seems to work now. Hope i can find some time to dig in. |
VID-20220201-WA0001.mp4One of the 2 example Apps in Zepp Studio is actually a watchface with button in it which starts a timer within the watchface. This is pretty awesome. Click listeners within the watchface is something i was really missing on the stratos. Looks promissing to me. |
@bigdigital I just finished a custom watchface for the MiBand5. In your original watchface and in my custom version I found some graphics fragments on the top left side of the graph. If I take a look at the extracted config.json there should be the IoB-Value displayed but it's not there. Even if I change the text values or position of the IoB-Text it's not displayed and the fragments stay at the same position. You can see the fragments in this comparison picture. Can you help in getting this fixed? |
Yep. i bought the miband7 because it is cheapest zeppOS device, but unfortunately it has a stripped bt api functionality compared with Amazfit ZeppOS watches. My initial plan was to create a watcface which will dynamically replaces own content by using Zepp OS bt communication api. Unfortunately Miband7 does not support this Api. Also uploading entire wf on miband7 makes a vibraton after each uploading. So i guess i skip the miband7 and try to create a fw with GTR3. There would be a lot of possibilities. It would be even possible to input bolus via the watch and much more. |
Update Readme - Link correction, device list
No description provided.
The text was updated successfully, but these errors were encountered: