• Advertisement

  • Administrator

Analog Hands Not Displaying (Again)

A branch of the forum to discuss everything that is connected with Amazfit Bip

Moderator: Bip moderators

Post Reply
User avatar
stupdude2
WF maker
United States of America
Posts: 15
Joined: 01 Oct 2018, 14:58
Location: Oneonta, AL
Contact:

Analog Hands Not Displaying (Again)

Post by stupdude2 » 08 Nov 2018, 22:12

I designed a new watchface that works in the Watchface Editor but the hands don't display when it's loaded on my Bip. I made sure that the hands don't use more than 12 points (which was my problem last time). I've pasted the code below. Any help would be appreciated.

Code: Select all

{
    "Background": {
        "Image": {
            "X": 0,
            "Y": 0,
            "ImageIndex": 0
        }
    },
    "Date": {
        "MonthAndDay": {
            "TwoDigitsMonth": true,
            "TwoDigitsDay": false,
            "Separate": {
                "Day": {
                    "TopLeftX": 130,
                    "TopLeftY": 82,
                    "BottomRightX": 145,
                    "BottomRightY": 91,
                    "Alignment": "TopRight",
                    "Spacing": 2,
                    "ImageIndex": 130,
                    "ImagesCount": 10
                }
            }
        }
    },
    "Activity": {
        "Steps": {
            "TopLeftX": 36,
            "TopLeftY": 118,
            "BottomRightX": 78,
            "BottomRightY": 127,
            "Alignment": "TopRight",
            "Spacing": 2,
            "ImageIndex": 30,
            "ImagesCount": 10
        },
        "Distance": {
            "Number": {
                "TopLeftX": 87,
                "TopLeftY": 118,
                "BottomRightX": 145,
                "BottomRightY": 127,
                "Alignment": "TopLeft",
                "Spacing": 2,
                "ImageIndex": 30,
                "ImagesCount": 10
            },
            "SuffixImageIndex": 103,
            "DecimalPointImageIndex": 102
        }
    },
    "AnalogDialFace": {
        "Hours": {
            "OnlyBorder": false,
            "Color": "0xFFFFFF",
            "Center": {
                "X": 88,
                "Y": 88
            },
            "Shape": [
                {
                    "X": -2,
                    "Y": 6
                },
                {
                    "X": -12,
                    "Y": 0
                },
                {
                    "X": -2,
                    "Y": -6
                },
                {
                    "X": 38,
                    "Y": -2
                },
                {
                    "X": 36,
                    "Y": -12
                },
                {
                    "X": 60,
                    "Y": 0
                },
                {
                    "X": 36,
                    "Y": 12
                },
                {
                    "X": 38,
                    "Y": 2
                }
            ]
        },
        "Minutes": {
            "OnlyBorder": false,
            "Color": "0xFFFFFF",
            "Center": {
                "X": 88,
                "Y": 88
            },
            "Shape": [
                {
                    "X": 65,
                    "Y": 2
                },
                {
                    "X": -3,
                    "Y": 6
                },
                {
                    "X": -14,
                    "Y": 0
                },
                {
                    "X": -3,
                    "Y": -6
                },
                {
                    "X": 65,
                    "Y": -2
                },
                {
                    "X": 64,
                    "Y": -6
                },
                {
                    "X": 80,
                    "Y": 0
                },
                {
                    "X": 64,
                    "Y": 6
                }
            ]
        },
        "Seconds": {
            "OnlyBorder": false,
            "Color": "0xFFFFFF",
            "Center": {
                "X": 88,
                "Y": 88
            },
            "Shape": [
                {
                    "X": 60,
                    "Y": 0
                },
                {
                    "X": 46,
                    "Y": 4
                },
                {
                    "X": 42,
                    "Y": 1
                },
                {
                    "X": 0,
                    "Y": 1
                },
                {
                    "X": -13,
                    "Y": 3
                },
                {
                    "X": -28,
                    "Y": 0
                },
                {
                    "X": -13,
                    "Y": -3
                },
                {
                    "X": 0,
                    "Y": -1
                },
                {
                    "X": 42,
                    "Y": -1
                },
                {
                    "X": 46,
                    "Y": -4
                },
                {
                    "X": 60,
                    "Y": 0
                },
                {
                    "X": 80,
                    "Y": 0
                }
            ],
            "CenterImage": {
                "X": 78,
                "Y": 79,
                "ImageIndex": 46
            }
        }
    }
}
Update1: Experimenting with it today, I've determined that the second hand is causing the problem but I don't know how.

Update 2: I fixed it. The second hand only supports 5 points.

Code: Select all

{
    "Background": {
        "Image": {
            "X": 0,
            "Y": 0,
            "ImageIndex": 0
        }
    },
    "Date": {
        "MonthAndDay": {
            "TwoDigitsMonth": true,
            "TwoDigitsDay": false,
            "Separate": {
                "Day": {
                    "TopLeftX": 130,
                    "TopLeftY": 82,
                    "BottomRightX": 145,
                    "BottomRightY": 91,
                    "Alignment": "TopRight",
                    "Spacing": 2,
                    "ImageIndex": 130,
                    "ImagesCount": 10
                }
            }
        }
    },
    "Activity": {
        "Steps": {
            "TopLeftX": 36,
            "TopLeftY": 118,
            "BottomRightX": 78,
            "BottomRightY": 127,
            "Alignment": "TopRight",
            "Spacing": 2,
            "ImageIndex": 30,
            "ImagesCount": 10
        },
        "Distance": {
            "Number": {
                "TopLeftX": 87,
                "TopLeftY": 118,
                "BottomRightX": 145,
                "BottomRightY": 127,
                "Alignment": "TopLeft",
                "Spacing": 2,
                "ImageIndex": 30,
                "ImagesCount": 10
            },
            "SuffixImageIndex": 103,
            "DecimalPointImageIndex": 102
        }
    },
    "AnalogDialFace": {
        "Hours": {
            "Center": {
                "X": 88,
                "Y": 88
            },
            "Color": "0xFFFFFF",
            "OnlyBorder": false,
            "Shape": [
                {
                    "X": -2,
                    "Y": 6
                },
                {
                    "X": -12,
                    "Y": 0
                },
                {
                    "X": -2,
                    "Y": -6
                },
                {
                    "X": 38,
                    "Y": -2
                },
                {
                    "X": 36,
                    "Y": -12
                },
                {
                    "X": 60,
                    "Y": 0
                },
                {
                    "X": 36,
                    "Y": 12
                },
                {
                    "X": 38,
                    "Y": 2
                }
            ]
        },
        "Minutes": {
            "Center": {
                "X": 88,
                "Y": 88
            },
            "Color": "0xFFFFFF",
            "OnlyBorder": false,
            "Shape": [
                {
                    "X": 65,
                    "Y": 2
                },
                {
                    "X": -3,
                    "Y": 6
                },
                {
                    "X": -14,
                    "Y": 0
                },
                {
                    "X": -3,
                    "Y": -6
                },
                {
                    "X": 65,
                    "Y": -2
                },
                {
                    "X": 64,
                    "Y": -6
                },
                {
                    "X": 80,
                    "Y": 0
                },
                {
                    "X": 64,
                    "Y": 6
                }
            ]
        },
        "Seconds": {
            "Center": {
                "X": 88,
                "Y": 88
            },
            "Color": "0xFFFFFF",
            "OnlyBorder": false,
            "Shape": [
                {
                    "X": -13,
                    "Y": 3
                },
                {
                    "X": -28,
                    "Y": 0
                },
                {
                    "X": -13,
                    "Y": -3
                },
                {
                    "X": 60,
                    "Y": -1
                },
                {
                    "X": 60,
                    "Y": 1
                }
            ],
            "CenterImage": {
                "X": 85,
                "Y": 85,
                "ImageIndex": 46
            }
        }
    }
}
Here is the final watchface: https://amazfitwatchfaces.com/bip/view/?id=15955

PetrZ
Czech Republic
Posts: 2
Joined: 27 Dec 2018, 21:15
Contact:

Re: Analog Hands Not Displaying (Again)

Post by PetrZ » 16 Mar 2019, 11:48

Hi I have similar problem but with all hands/pointers :
I tried to modify one WF to my language and it works. But then I tried to add also seconds pointer. Everything works when I check it in settning. When I try to look at Real-size preview, all pointers are gone. Why? Everythig seems to be ok in json file.
I also tried to open existing WF downloaded here ond open it in WF editor. It behaves the same (bad) way. No pointer is in Real-size preview.
Do you know where could be a problem?
Thank you
Petr
Attachments
WF_problem.png
WF_problem.png (132.73 KiB) Viewed 74 times

TXK
WF maker
Posts: 58
Joined: 10 Apr 2018, 05:15
Contact:

Re: Analog Hands Not Displaying (Again)

Post by TXK » 17 Mar 2019, 01:21

PetrZ wrote:
16 Mar 2019, 11:48
Hi I have similar problem but with all hands/pointers :
I tried to modify one WF to my language and it works. But then I tried to add also seconds pointer. Everything works when I check it in settning. When I try to look at Real-size preview, all pointers are gone. Why? Everythig seems to be ok in json file.
I also tried to open existing WF downloaded here ond open it in WF editor. It behaves the same (bad) way. No pointer is in Real-size preview.
Do you know where could be a problem?
Thank you
Petr

Real-size preview IS NOT Real-size pre【view 】

Real-size preview is ONLY [Real-size]

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest

  • Advertisement