Page 1 of 1

Watchface Help

Posted: 14 Feb 2019, 16:05
by stupdude2
I'm experiencing some strange behavior on a new watchface. It's an edited version of xunning's PB face.

https://amazfitwatchfaces.com/bip/view/?id=20653

As you can see from the preview that Feb and July have a strange 0 stuck to the end. On the watch, it doesn't show those, but sometimes the step numbers will disappear or show up in the wrong place. I can't see anything obvious from the code. Any help would be appreciated.

Code: Select all

{
    "Background": {
        "Image": {
            "X": 0,
            "Y": 0,
            "ImageIndex": 0
        }
    },
    "Time": {
        "Hours": {
            "Tens": {
                "X": 4,
                "Y": 41,
                "ImageIndex": 100,
                "ImagesCount": 2
            },
            "Ones": {
                "X": 24,
                "Y": 41,
                "ImageIndex": 1,
                "ImagesCount": 10
            }
        },
        "Minutes": {
            "Tens": {
                "X": 83,
                "Y": 41,
                "ImageIndex": 1,
                "ImagesCount": 10
            },
            "Ones": {
                "X": 130,
                "Y": 41,
                "ImageIndex": 1,
                "ImagesCount": 10
            }
        },
        "AmPm": {
            "X": -50,
            "Y": -50,
            "ImageIndexAm": 20,
            "ImageIndexPm": 20
        }
    },
    "Date": {
        "WeekDay": {
            "X": 8,
            "Y": 4,
            "ImageIndex": 33,
            "ImagesCount": 7
        },
        "MonthAndDay": {
            "TwoDigitsMonth": false,
            "TwoDigitsDay": false,
            "Separate": {
                "Day": {
                    "TopLeftX": 75,
                    "TopLeftY": 7,
                    "BottomRightX": 100,
                    "BottomRightY": 26,
                    "Alignment": "TopCenter",
                    "Spacing": 2,
                    "ImageIndex": 11,
                    "ImagesCount": 10
                },
                "Month": {
                    "TopLeftX": -121,
                    "TopLeftY": 5,
                    "BottomRightX": 400,
                    "BottomRightY": 25,
                    "Alignment": "TopLeft",
                    "Spacing": -162,
                    "ImageIndex": 23,
                    "ImagesCount": 10
                }
            }
        }
    },
    "Activity": {
        "Steps": {
            "TopLeftX": 101,
            "TopLeftY": 150,
            "BottomRightX": 168,
            "BottomRightY": 169,
            "Alignment": "TopRight",
            "Spacing": 2,
            "ImageIndex": 11,
            "ImagesCount": 10
        },
        "Pulse": {
            "TopLeftX": 68,
            "TopLeftY": 150,
            "BottomRightX": 107,
            "BottomRightY": 169,
            "Alignment": "TopCenter",
            "Spacing": 2,
            "ImageIndex": 11,
            "ImagesCount": 10
        }
    },
    "Weather": {
        "Icon": {
            "CustomIcon": {
                "X": 38,
                "Y": 147,
                "ImageIndex": 40,
                "ImagesCount": 26
            }
        },
        "Temperature": {
            "Current": {
                "Number": {
                    "TopLeftX": 7,
                    "TopLeftY": 150,
                    "BottomRightX": 45,
                    "BottomRightY": 169,
                    "Alignment": "TopLeft",
                    "Spacing": 2,
                    "ImageIndex": 11,
                    "ImagesCount": 10
                },
                "MinusImageIndex": 66,
                "DegreesImageIndex": 67
            }
        }
    },
    "StepsProgress": {
        "Linear": {
            "StartImageIndex": 262,
            "Segments": [
                {
                    "X": 7,
                    "Y": 131
                },
                {
                    "X": 7,
                    "Y": 131
                },
                {
                    "X": 7,
                    "Y": 131
                },
                {
                    "X": 7,
                    "Y": 131
                },
                {
                    "X": 7,
                    "Y": 131
                },
                {
                    "X": 7,
                    "Y": 131
                },
                {
                    "X": 7,
                    "Y": 131
                },
                {
                    "X": 7,
                    "Y": 131
                },
                {
                    "X": 7,
                    "Y": 131
                },
                {
                    "X": 7,
                    "Y": 131
                }
            ]
        },
        "GoalImage": {
            "X": 78,
            "Y": 128,
            "ImageIndex": 68
        }
    }
}

Re: Watchface Help

Posted: 15 Feb 2019, 01:33
by asoo
Your steps ImageIndex incorrect .
You start Index at number 0 to 8 no have number 9 in your ImageIndex

your "ImageIndex": 11 = number 0 but your number 9 "ImageIndex": is 10
so no have number 9 in your ImageIndex when ImagesCount to 10 watch face therefore showed incorrect image

My Fixed
PB Edit-_packed_animated.gif
PB Edit-_packed_animated.gif (28.23 KiB) Viewed 793 times
PB Edit-_packed.zip
BIN Fixed ( unzip before use )
(2.92 KiB) Downloaded 58 times

Re: Watchface Help

Posted: 15 Feb 2019, 14:20
by stupdude2
Brilliant! Thank you so much for your help!