Page 1 of 1

Json syntax

Posted: 12 Dec 2019, 08:55
by Tugas
Hi

Anyone can display all the syntax of the json so we use all the possible functons.

For example is possible display milliseconds?
Make a smooth seconds hand.
A custom timer to make animations faster than 1fps.
Display an animated gif image...

Thanks 4 your time.

Re: Json syntax

Posted: 12 Dec 2019, 10:10
by hikashi
Not possible now.
So far our wf tools at its early stage compared to miband4 that also uses .bin files.

Re: Json syntax

Posted: 12 Dec 2019, 11:11
by Tugas
WF for the MI Band 4, uses this to add animation...

"Other": {
"Animation": {
"AnimationImage": {
"X": 20, //Coordinate
"Y": 140,
"ImageIndex": 79,// The starting picture number
"ImageCount": 326, / / the total number of pictures
"X3": 0
},
"x1": 0, / / picture interval time, below 50 will not flash.
"y1": 50, / / number of loops
"Interval": 200
}
}

anyone know if this works?

Thanks

Re: Json syntax

Posted: 12 Dec 2019, 13:07
by hikashi
Tugas wrote: 12 Dec 2019, 11:11
WF for the MI Band 4, uses this to add animation...

"Other": {
"Animation": {
"AnimationImage": {
"X": 20, //Coordinate
"Y": 140,
"ImageIndex": 79,// The starting picture number
"ImageCount": 326, / / the total number of pictures
"X3": 0
},
"x1": 0, / / picture interval time, below 50 will not flash.
"y1": 50, / / number of loops
"Interval": 200
}
}

anyone know if this works?

Thanks
Yea i tried some of the syntax ie heart, linear step progress, animation in the json file. The current wf tools has yet to support to it. Wf tool dev is currently working hard on it.

Re: Json syntax

Posted: 12 Dec 2019, 14:18
by Tugas
Cool, so its only because wf tool support

Re: Json syntax

Posted: 16 Dec 2019, 08:09
by Maikeldevil
I truly hope the watch supports miliseconds hand one day, looks way smoother! Altough i have many more wishes to add to the tool like some original watchfaces has:

- Separate segments in images for step and heart progress
- Stopwatch function
- Animations
- Realtime chrono pointers (for battery and stepprogress instead of loose images) Would love this the most.

If these options could be added it would be awesome! I think animations are the least important becease they take way to much space (mb's)

Re: Json syntax

Posted: 16 Dec 2019, 14:55
by Tugas
Maikeldevil wrote: 16 Dec 2019, 08:09
I truly hope the watch supports miliseconds hand one day, looks way smoother! Altough i have many more wishes to add to the tool like some original watchfaces has:

- Separate segments in images for step and heart progress
- Stopwatch function
- Animations
- Realtime chrono pointers (for battery and stepprogress instead of loose images) Would love this the most.

If these options could be added it would be awesome! I think animations are the least important becease they take way to much space (mb's)
I love animations, i think that small animations as mi band 4 have, dont be heavy...
One example from sammung https://youtu.be/8w7WIclDlFw

Re: Json syntax

Posted: 16 Dec 2019, 15:48
by Maikeldevil
Tugas wrote: 16 Dec 2019, 14:55
Maikeldevil wrote: 16 Dec 2019, 08:09
I truly hope the watch supports miliseconds hand one day, looks way smoother! Altough i have many more wishes to add to the tool like some original watchfaces has:

- Separate segments in images for step and heart progress
- Stopwatch function
- Animations
- Realtime chrono pointers (for battery and stepprogress instead of loose images) Would love this the most.

If these options could be added it would be awesome! I think animations are the least important becease they take way to much space (mb's)
I love animations, i think that small animations as mi band 4 have, dont be heavy...
One example from sammung https://youtu.be/8w7WIclDlFw
That, example you give is not really a small animation XD it uses the full screen and to get the smooth transition you have to use more frames. I think it cost around 4 mb to make an animation like that XD. I made some miband4 faces some time ago and really bumped against the fact it uses a lot of space..

Re: Json syntax

Posted: 19 Dec 2019, 21:05
by Lordalpine
All the thing I Know^^

Code: Select all

{
  "Background": {
    "Image": {
      "X": 0,
      "Y": 0,
      "ImageIndex": 0
    },
    "Preview": {
      "X": 0,
      "Y": 0,
      "ImageIndex": 1
    }
  },
  "Time": {
    "Hours": {
      "Tens": {
        "X": 0,
        "Y": 0,
        "ImageIndex": 2,
        "ImagesCount": 10
      },
      "Ones": {
        "X": 0,
        "Y": 0,
        "ImageIndex": 2,
        "ImagesCount": 10
      }
    },
    "AmPm": {
      "X": 0,
      "Y": 0,
      "ImageIndexAMCN": 2,
      "ImageIndexPMCN": 2,
      "ImageIndexAMEN": 2,
      "ImageIndexPMEN": 2
    },
    "Delimiter": {
      "X": 0,
      "Y": 0,
      "ImageIndex": 2
    }
  },
  "Activity": {
    "StepsGoal": {
      "TopLeftX": 0,
      "TopLeftY": 0,
      "BottomRightX": 0,
      "BottomRightY": 0,
      "Alignment": "TopLeft",
      "Spacing": 0,
      "ImageIndex": 2,
      "ImagesCount": 10
    },
    "Calories": {
      "TopLeftX": 0,
      "TopLeftY": 0,
      "BottomRightX": 0,
      "BottomRightY": 0,
      "Alignment": "TopLeft",
      "Spacing": 0,
      "ImageIndex": 2,
      "ImagesCount": 10
    },
    "Pulse": {
      "TopLeftX": 167,
      "TopLeftY": 293,
      "BottomRightX": 0,
      "BottomRightY": 0,
      "Alignment": "Center",
      "Spacing": 0,
      "ImageIndex": 2,
      "ImagesCount": 10
    },
    "Distance": {
      "Number": {
        "TopLeftX": 0,
        "TopLeftY": 0,
        "BottomRightX": 0,
        "BottomRightY": 0,
        "Alignment": "TopLeft",
        "Spacing": 0,
        "ImageIndex": 2,
        "ImagesCount": 10
      },
      "SuffixImageIndex": 2,
      "DecimalPointImageIndex": 2
    },
    "Steps": {
      "Step": {
        "TopLeftX": 0,
        "TopLeftY": 0,
        "BottomRightX": 0,
        "BottomRightY": 0,
        "Alignment": "TopLeft",
        "Spacing": 0,
        "ImageIndex": 2,
        "ImagesCount": 10
      }
    },
    "StarImage": {
      "X": 0,
      "Y": 0,
      "ImageIndex": 88
    }
  },
  "Date": {
    "MonthAndDay": {
      "Separate": {
        "Month": {
          "TopLeftX": 0,
          "TopLeftY": 0,
          "BottomRightX": 0,
          "BottomRightY": 0,
          "Alignment": "TopLeft",
          "Spacing": 1,
          "ImageIndex": 2,
          "ImagesCount": 10
        },
        "MonthName": {
          "X": 337,
          "Y": 208,
          "ImageIndex": 14,
          "ImagesCount": 12
        },
        "Day": {
          "TopLeftX": 214,
          "TopLeftY": 369,
          "BottomRightX": 0,
          "BottomRightY": 0,
          "Alignment": "TopLeft",
          "Spacing": 0,
          "ImageIndex": 2,
          "ImagesCount": 10
        }
      },
      "TwoDigitsMonth": true,
      "TwoDigitsDay": true
    },
    "WeekDay": {
      "X": 56,
      "Y": 208,
      "ImageIndex": 26,
      "ImagesCount": 7
    }
  },
  "Weather": {
    "Icon": {
      "Images": {
        "X": 212,
        "Y": 284,
        "ImageIndex": 33,
        "ImagesCount": 25
      },
      "NoWeatherImageIndex": 58
    },
    "Temperature": {
      "Current": {
        "TopLeftX": 260,
        "TopLeftY": 293,
        "BottomRightX": 0,
        "BottomRightY": 0,
        "Alignment": "Center",
        "Spacing": 0,
        "ImageIndex": 2,
        "ImagesCount": 10
      },
      "Today": {
        "Separate": {
          "Day": {
            "TopLeftX": 0,
            "TopLeftY": 0,
            "BottomRightX": 0,
            "BottomRightY": 0,
            "Alignment": "TopLeft",
            "Spacing": 0,
            "ImageIndex": 2,
            "ImagesCount": 10
          },
          "Night": {
            "TopLeftX": 0,
            "TopLeftY": 0,
            "BottomRightX": 0,
            "BottomRightY": 0,
            "Alignment": "TopLeft",
            "Spacing": 0,
            "ImageIndex": 2,
            "ImagesCount": 10
          }
        },
        "AppendDegreesForBoth": true
      },
      "Symbols": {
        "Unknown0800": 0,
        "MinusImageIndex": 59,
        "DegreesImageIndex": 60,
        "NoDataImageIndex": 60
      }
    }
  },
  "StepsProgress": {
    "Circle": {
      "CenterX": 1,
      "CenterY": 1,
      "RadiusX": 1,
      "RadiusY": 1,
      "StartAngle": 225,
      "EndAngle": 495,
      "Width": 4,
      "Color": "0x00FF8C00",
      "Flatness": 0
    }
  },
  "Status": {
    "Bluetooth": {
      "Coordinates": {
        "X": 108,
        "Y": 272
      },
      "ImageIndexOn": 61,
      "ImageIndexOff": 62
    },
    "Alarm": {
      "Coordinates": {
        "X": 324,
        "Y": 269
      },
      "ImageIndexOn": 63,
      "ImageIndexOff": 88
    },
    "Lock": {
      "Coordinates": {
        "X": 327,
        "Y": 169
      },
      "ImageIndexOn": 64,
      "ImageIndexOff": 65
    },
    "DoNotDisturb": {
      "Coordinates": {
        "X": 108,
        "Y": 169
      },
      "ImageIndexOn": 66,
      "ImageIndexOff": 67
    }
  },
  "Battery": {
    "Text": {
      "TopLeftX": 0,
      "TopLeftY": 0,
      "BottomRightX": 0,
      "BottomRightY": 0,
      "Alignment": "TopLeft",
      "Spacing": 0,
      "ImageIndex": 2,
      "ImagesCount": 10
    },
    "Images": {
      "X": 217,
      "Y": 389,
      "ImageIndex": 68,
      "ImagesCount": 6
    },
    "Percent": {
      "X": 0,
      "Y": 0,
      "ImageIndex": 2
    },
    "Scale": {
      "CenterX": 0,
      "CenterY": 0,
      "RadiusX": 0,
      "RadiusY": 0,
      "StartAngle": 225,
      "EndAngle": 495,
      "Width": 4,
      "Color": "0x00FF8C00",
      "Flatness": 0
    }
  },
  "AnalogDialFace": {
    "Hours": {
      "OnlyBorder": false,
      "Color": "0x00000000",
      "CenterOffset": {
        "X": 0,
        "Y": 0
      },
      "Image": {
        "X": 17,
        "Y": 148,
        "ImageIndex": 74
      }
    },
    "HourCenterImage": {
      "X": 0,
      "Y": 0,
      "ImageIndex": 2
    },
    "Minutes": {
      "OnlyBorder": false,
      "Color": "0x00000000",
      "CenterOffset": {
        "X": 0,
        "Y": 0
      },
      "Image": {
        "X": 14,
        "Y": 213,
        "ImageIndex": 75
      }
    },
    "MinCenterImage": {
      "X": 0,
      "Y": 0,
      "ImageIndex": 2
    },
    "Seconds": {
      "OnlyBorder": false,
      "Color": "0x00000000",
      "CenterOffset": {
        "X": 0,
        "Y": 0
      },
      "Image": {
        "X": 19,
        "Y": 228,
        "ImageIndex": 76
      }
    },
    "SecCenterImage": {
      "X": 0,
      "Y": 0,
      "ImageIndex": 2
    }
  }
}
The memory available for skin..... The biggest problem^^ for the GTR or Miband...
Honnestly I don't care to make 100 Png for 1% battery or create animation frame per frame like the samsung S2 pulsing thing.


Damn^^ I would like to have a Stratos GTR 3 47mm
Json [ Bin ] when screen is ON / Wfz skin when screen is AOD ... the screen of the GTR, lightweight of the GTR, the GPS Hardware // sport function of the Stratos, Drive space of the Stratos, all in Titanium colour and Saphire screen like the Stratos 2.... with a silicon band and a Full Leather band [ Festina F16235 - or Tag Heuer Monaco Calibre 36, they are the same leather band, lite Croco effect, Black with Red stitching [ Yeah I'm dreamin^^ ]

I don't care about wear OS [ Like the new Nexo 2 ]

Re: Json syntax

Posted: 03 Jan 2020, 12:41
by Tugas
Maikeldevil wrote: 16 Dec 2019, 15:48
Tugas wrote: 16 Dec 2019, 14:55
Maikeldevil wrote: 16 Dec 2019, 08:09
I truly hope the watch supports miliseconds hand one day, looks way smoother! Altough i have many more wishes to add to the tool like some original watchfaces has:

- Separate segments in images for step and heart progress
- Stopwatch function
- Animations
- Realtime chrono pointers (for battery and stepprogress instead of loose images) Would love this the most.

If these options could be added it would be awesome! I think animations are the least important becease they take way to much space (mb's)
I love animations, i think that small animations as mi band 4 have, dont be heavy...
One example from sammung https://youtu.be/8w7WIclDlFw
That, example you give is not really a small animation XD it uses the full screen and to get the smooth transition you have to use more frames. I think it cost around 4 mb to make an animation like that XD. I made some miband4 faces some time ago and really bumped against the fact it uses a lot of space..
Ya is a big animation lol, but is cool.
I was even happy with basic animations like MIBAND 4 already supports...

Re: Json syntax

Posted: 01 Oct 2020, 13:51
by abofaris014
Lordalpine wrote: 19 Dec 2019, 21:05
All the thing I Know^^

Code: Select all

{

  "Status": {
  
    "Alarm": {
      "Coordinates": {
        "X": 324,
        "Y": 269
      },
      "ImageIndexOn": 63,
      "ImageIndexOff": 88
    },
   
}
The memory available for skin..... The biggest problem^^ for the GTR or Miband...
Honnestly I don't care to make 100 Png for 1% battery or create animation frame per frame like the samsung S2 pulsing thing.


Damn^^ I would like to have a Stratos GTR 3 47mm
Json [ Bin ] when screen is ON / Wfz skin when screen is AOD ... the screen of the GTR, lightweight of the GTR, the GPS Hardware // sport function of the Stratos, Drive space of the Stratos, all in Titanium colour and Saphire screen like the Stratos 2.... with a silicon band and a Full Leather band [ Festina F16235 - or Tag Heuer Monaco Calibre 36, they are the same leather band, lite Croco effect, Black with Red stitching [ Yeah I'm dreamin^^ ]

I don't care about wear OS [ Like the new Nexo 2 ]



Alarm Status is not working with Mi Band 5!!