Sincerely don't know exactly what was the problem, i'm thinking about a bad format in a png file, or something like that.
I created new weather pictures and new "day of week" pictures and recompiled again, and the problem was solved.
In other hand, i discovered some new values in a bin ...it's been decompressed and unpacked but can not be recompiled "as it was" , when try to recompile are some "new parameters" at json file that are not understable by actual development tools ( i use python and recently SashaCX75 windows app )
Here is the json and the log. Take a look at "Goal2" and some other new parameters.
Code: Select all
2020-01-09 10:08:34,645 - root - DEBUG - Reading config...
2020-01-09 10:08:34,646 - root - DEBUG - t: {
"Background": {
"Image": {
"X": 0,
"Y": 0,
"ImageIndex": 0
},
"Preview": {
"X": 0,
"Y": 0,
"ImageIndex": 1
}
},
"Activity": {
"Calories": {
"TopLeftX": 313,
"TopLeftY": 235,
"BottomRightX": 353,
"BottomRightY": 257,
"Alignment": "TopCenter",
"Spacing": 0,
"ImageIndex": 2,
"ImagesCount": 10
},
"Pulse": {
"TopLeftX": 212,
"TopLeftY": 331,
"BottomRightX": 242,
"BottomRightY": 353,
"Alignment": "TopCenter",
"Spacing": 0,
"ImageIndex": 12,
"ImagesCount": 10
},
"Steps": {
"Step": {
"TopLeftX": 96,
"TopLeftY": 235,
"BottomRightX": 146,
"BottomRightY": 257,
"Alignment": "TopCenter",
"Spacing": 0,
"ImageIndex": 23,
"ImagesCount": 10
}
},
"Goal2": {
"CenterX": 227,
"CenterY": 323,
"RadiusX": 61,
"RadiusY": 61,
"StartAngle": 0,
"EndAngle": 360,
"Width": 10,
"Color": "0xFF0A1101",
"Flatness": 180,
"ImageIndex": 33
},
"NoDataImageIndex": 22,
"Unknown17": {
"BottomRightY": null
},
"StepsGoal": {
"CenterX": 333,
"CenterY": 227,
"RadiusX": 61,
"RadiusY": 61,
"StartAngle": 0,
"EndAngle": 360,
"Width": 10,
"Color": "0xFF10B0A1",
"Flatness": 180,
"ImageIndex": 34
}
},
"StepsProgress": {
"Circle": {
"CenterX": 121,
"CenterY": 227,
"RadiusX": 61,
"RadiusY": 61,
"StartAngle": 0,
"EndAngle": 360,
"Width": 10,
"Color": "0xFF0370A1",
"Flatness": 180,
"ImageIndex": 35
},
"ClockHand": {
"OnlyBorder": false,
"Color": "0x00000000",
"CenterOffset": {
"X": 0,
"Y": 0
},
"Shape": {
"X": 0,
"Y": 0
}
}
},
"Battery": {
"Text": {
"TopLeftX": 204,
"TopLeftY": 139,
"BottomRightX": 250,
"BottomRightY": 161,
"Alignment": "TopCenter",
"Spacing": 0,
"ImageIndex": 36,
"ImagesCount": 10
},
"Unknown4": {
"OnlyBorder": false,
"Color": "0x00000000",
"CenterOffset": {
"X": 0,
"Y": 0
},
"Shape": {
"X": 0,
"Y": 0
}
},
"Percent": {
"X": 0,
"Y": 0,
"ImageIndex": 46
},
"Scale": {
"CenterX": 227,
"CenterY": 131,
"RadiusX": 61,
"RadiusY": 61,
"StartAngle": 0,
"EndAngle": 360,
"Width": 10,
"Color": "0xFF0A1041",
"Flatness": 180,
"ImageIndex": 47
}
},
"AnalogDialFace": {
"Hours": {
"OnlyBorder": false,
"Color": "0x00000000",
"CenterOffset": {
"X": 0,
"Y": 0
},
"Shape": {
"X": 0,
"Y": 0
},
"Image": {
"X": 13,
"Y": 141,
"ImageIndex": 48
}
},
"Minutes": {
"OnlyBorder": false,
"Color": "0x00000000",
"CenterOffset": {
"X": 0,
"Y": 0
},
"Shape": {
"X": 0,
"Y": 0
},
"Image": {
"X": 9,
"Y": 183,
"ImageIndex": 49
}
},
"Seconds": {
"OnlyBorder": false,
"Color": "0x00000000",
"CenterOffset": {
"X": 0,
"Y": 0
},
"Shape": {
"X": 0,
"Y": 0
},
"Image": {
"X": 6,
"Y": 190,
"ImageIndex": 50
}
}
},
"DaysProgress": {
"AnalogMonth": {
"OnlyBorder": false,
"Color": "0x00000000",
"CenterOffset": {
"X": 0,
"Y": 0
},
"Shape": {
"X": 0,
"Y": 0
}
},
"UnknownField2": {
"OnlyBorder": false,
"Color": "0x00000000",
"CenterOffset": {
"X": 0,
"Y": 0
},
"Shape": {
"X": 0,
"Y": 0
}
},
"AnalogDOW": {
"OnlyBorder": false,
"Color": "0x00000000",
"CenterOffset": {
"X": 0,
"Y": 0
},
"Shape": {
"X": 0,
"Y": 0
}
}
}
}
2020-01-09 10:08:34,646 - root - DEBUG - Reading referenced images from './Amazfit_RainbowCircle'
2020-01-09 10:08:34,647 - root - DEBUG - Loading resources for 2 '<class 'watchFaceParser.elements.background.Background'>'
2020-01-09 10:08:34,647 - root - DEBUG - Loading resources for 2.1 '<class 'watchFaceParser.elements.basicElements.image.Image'>'
2020-01-09 10:08:34,647 - root - DEBUG - Loading image 0...
2020-01-09 10:08:34,719 - PIL.PngImagePlugin - DEBUG - STREAM b'IHDR' 16 13
2020-01-09 10:08:34,719 - PIL.PngImagePlugin - DEBUG - STREAM b'IDAT' 41 62526
2020-01-09 10:08:34,719 - root - DEBUG - Loading resources for 2.3 '<class 'watchFaceParser.elements.basicElements.image.Image'>'
2020-01-09 10:08:34,719 - root - DEBUG - Loading image 1...
2020-01-09 10:08:34,720 - PIL.PngImagePlugin - DEBUG - STREAM b'IHDR' 16 13
2020-01-09 10:08:34,720 - PIL.PngImagePlugin - DEBUG - STREAM b'IDAT' 41 50218
2020-01-09 10:08:34,720 - root - DEBUG - Loading resources for 4 '<class 'watchFaceParser.elements.activity.Activity'>'
2020-01-09 10:08:34,721 - root - DEBUG - Loading resources for 4.1 '<class 'watchFaceParser.elements.basicElements.number.Number'>'
2020-01-09 10:08:34,721 - root - DEBUG - Loading image 2...
2020-01-09 10:08:34,721 - PIL.PngImagePlugin - DEBUG - STREAM b'IHDR' 16 13
2020-01-09 10:08:34,721 - PIL.PngImagePlugin - DEBUG - STREAM b'IDAT' 41 8606
2020-01-09 10:08:34,722 - root - CRITICAL - unsupported operand type(s) for +: 'int' and 'NoneType'
Traceback (most recent call last):
File "C:\amazfit\py_amazfit_tools-dev_gtr\program.py", line 61, in writeWatchFace
imagesReader.process(WatchFace, watchFace)
File "C:\amazfit\py_amazfit_tools-dev_gtr\watchFaceParser\utils\resourcesLoader.py", line 94, in process
self.process(propertyType, propertyValue, currentPath)
File "C:\amazfit\py_amazfit_tools-dev_gtr\watchFaceParser\utils\resourcesLoader.py", line 94, in process
self.process(propertyType, propertyValue, currentPath)
File "C:\amazfit\py_amazfit_tools-dev_gtr\watchFaceParser\utils\resourcesLoader.py", line 89, in process
for i in range(lastImageIndexValue + 1, lastImageIndexValue + imagesCount):
TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'