Watchface Capabilities Questions
Inviato: 01 mag 2020, 20:20
Hello,
I'm in the process of switching from a Pebble Time to an Amazfit Bip. One of the reasons I chose the Bip was because it has several recreations of my favorite Pebble Time watchface, called "Enigma". Enigma is a fairly minimal watchface, that's basically just 5 rows and 4 columns of numbers, with the top and bottom rows being only partially visible and containing dummy numbers that don't represent actual data. When the time changes, the applicable columns scroll like the dials on a slot machine to transition to the new time. I was a bit disappointed to find that the recreations of the Enigma watchface for the Bip don't have this slick animation effect so I started looking at how they are made and working on my own 12hr version with numbers closer to the Pebble Time version. This has left me with several questions.
I'm in the process of switching from a Pebble Time to an Amazfit Bip. One of the reasons I chose the Bip was because it has several recreations of my favorite Pebble Time watchface, called "Enigma". Enigma is a fairly minimal watchface, that's basically just 5 rows and 4 columns of numbers, with the top and bottom rows being only partially visible and containing dummy numbers that don't represent actual data. When the time changes, the applicable columns scroll like the dials on a slot machine to transition to the new time. I was a bit disappointed to find that the recreations of the Enigma watchface for the Bip don't have this slick animation effect so I started looking at how they are made and working on my own 12hr version with numbers closer to the Pebble Time version. This has left me with several questions.
- Is there any way to create animations? Ideally, I'd just like to incrementally change Y values for numbers, but I haven't found any watch faces that do this, which I could use as a reference. I did find the following example json code for the Mi Band 4, but I don't know if the Bip is capable of using it, so please let me know if there is a Bip watchface using this that I could look at:
Codice: Seleziona tutto
"Other": { "Animation": { //this is where cool animations go. depending on image size, color and quantity the watch face can be laggy and drain battery faster "AnimationImage": { "X": 0, "Y": 20, "ImageIndex": 30, "ImagesCount": 10, "X3": 0 }, "Speed": 0, "RepeatCount": 1000, "x2": 200 } },
- Is there any way to use milliseconds? I imagine this would be hard on battery life, but if there is no way to do true animations on the Bip, using graphics changes by seconds will be too slow to create smooth transitions.
- Is there a way to trigger events at certain time transitions? The original Enigma would scroll Y values for numbers independently for minutes ones, minutes tens, hours ones, and hours tens whenever their values changed.
- Is there a way specify leading zeroes for step count without resorting to just placing them on a background image and covering them with subsequent numbers? Something similar to the code used to display 2 digits for months and days would be ideal, but I'm guessing nothing like this exists for step count:
Codice: Seleziona tutto
"TwoDigitsMonth": true, "TwoDigitsDay": true
- Is there a way to specify Z-index values for watchface elements, or are there any elements that appear on top of time graphics? For that matter, what is the default Z-index order for watchface elements? Alternatively, can unique graphical elements be created? The original Enigma watchface has darkened areas at the top and the bottom of the display, which I'm attempting to achieve via a checkerboard pattern with a Z-index that puts it on top of everything else visible. The Bluetooth graphic looks like it is on top of steps and day/month, but not on top of the time. I did find "DrawingOrder" in a few places, but no explanation of how it works or what "1234" means, just warnings that it doesn't work with the Mi Band 4:
Codice: Seleziona tutto
"DrawingOrder": "1234"
- Is there a way to create two separate time displays without resorting to graphics tricks? When I tried add a second hour display, the first one disappeared. I was hoping to use something like this to create the dummy numbers at the top and bottom of the watchface, but I imagine there would be use for this if someone wanted a watchface that showed two different time zones or to show both 24hr and 12hr time.