py_amazfit_tools
py_amazfit_tools copied to clipboard
Please add array support
For example Battery on some original GTR watchface looks like
4A 05
- 4A _id(9), flags(2)
- 05
08 90 02 10 2C
08 -> _id(1), flag(0)
90 -> offset 272
02 -> ---'
10 -> _id(2), flag(0)
2C -> lenght 44
{1A2A 085B 1206 08E10210AB02 1206 08D00210C102 1206 08BB0210D502 1206 08A20210E702 1206 08870210F402
what is expected:
{
"Battery": {
"Icons": {
"FirtsImageIndex": 91,
"Coordinates":
[ {
"X": 353,
"Y": 299
},
{
"X": 336,
"Y": 321
},
{
"X": 315,
"Y": 341
},
{
"X": 290,
"Y": 359
},
{
"X": 263,
"Y": 372
}
]
}
}
}
what we have now:
{
"Battery": {
"Icons": {
"FirtsImageIndex": 91,
"Coordinates": {
"X": 263,
"Y": 372
}
}
}
}