Feedback so far

Hello Ron,

I found a problem when using nested conditions in tags expression

Here is the simplified sample :
([SEC]<10?0:(([SEC]<20)?1:2))

It should be showing 0 when 0-9 seconds, 1 when 10-19, and 2 when 20-59

Working fine on the preview but always resulting 0 in the real watch.

Also tested nested condition without tags, and it is doing right on the watch and simulator
example: (30<10?0:((30<20)?1:2)) → the result is 2

So the conclusion is the tag expression showing the wrong result in the nested conditions that involve a tag (so far tested with [SEC] and [MIN]).

Hope this bug will be fixed in the next release.

Warm regards,
USA Design

I think your bracketing is wrong try this
( ( [SEC]<10 )? 0 :frowning: ([SEC]<20) )? 1 :2 )

Ron
Samsung Developer Relations

Is there somewhere that shows the formatting of tag expressions and examples please ?

I have noticed that bracketing is more important on Watch4 than in the preview window.

The Unified WearOS Tag Documentation is HERE

but the way Ternary operators work is better explained HERE But the tags are different for Tizen than Android.

hope this helps
Ron
Samsung Developer Relations

1 Like

I think 12/24 hour format sync not working.

I already tried that and it doesn’t work on the watch (always giving 0), seems like a bug. It is working on the WFS preview but not on the device.

Imported fonts are not displaying correctly in simulator/preview mode, preview mode uses default font instead of imported fonts; but they are displaying correctly on the watch.

Preview mode is a good source for creating marketing material, please fix it in the next release.

Try this with parenthesis around the tag I had to do that for one other equation. If that doesn’t work I’ll report it as a bug. I still do not have a GW4 to test on.
( ([SEC])<10 ? 0 : ( ([SEC])<20 ) ? 1 :2 )

Ron

Hello Ron, just tried it and it still doesn’t work, it is always resulting 0 on the device.
Thanks,
USA Design

Hi,

If you can report it HERE you can be updated about the bug. If you can’t I’ll create the report.

Nested Ternary Tags are documented so they should work on Watch.

also try
( ( ([SEC])<10) ? 0 : ( ([SEC])<20 ) ? 1 :2 )

Ron
Samsung Developer Relations

I also have a Problem with Tag Expression.
I made a very long tag, which works perfectly in GWS. In WFS it does work as well, but on Watch it shows the wrong value. The problem seems to be with Nested ternary operations.
Here is the short form of this Code:
grafik

In Month 4,5,6,7 and 8, the result will be 30, in every other month result is 60.
Works fine in GWS, works fine in WFS but on Watch it shows 60

The tag expression is used to regulate the glow of the luminova. It would be even better, if Sunset and sunrise are available for tag expression.

I’ve seen other reports of nested tag expressions that are not working on the device. They have been reported.

Ron
Samsung Developer Relations

1 Like

I now have an other Problem.
When I run the Watchface on device, the watchface is not shown, just a black screen. After a few seconds, I can see the Watchface, but it’s standing still. No Hands are moving, not even the second hand.
This Watchface used to work a fee days before, even with more functions.

Following parts are in the face:

  • Center Point
  • Second Hand
  • Min Hand
  • Hour Hand
  • Date
  • Index
  • Background

As I said, it worked well, but then I decided to have a Min Hands for right and left side, which is display from 0-30 or from 30-60. Same for the Hourhand (0-6 / 6-12 / 12-18 / 18-24).
Since that, the watchface stuck. So i decided to only use one hand. I kicked the alternative hand out, and displayed the hands all time.
Watchface is still stuck. I rebuilded it from beginning, now it works. Bug? Or did I something wrong?

There is any possibility to add feature to show Phone battery?

There is always a possibility, It was not practical with Tizen but I don’t know about WearOS. I can add it as a suggestion.

Ron
Samsung Developer Relations

I want to inform you that the nested tags problem has been fixed on WFS 1.0.3… It is working right now on the device, thanks a lot! :slight_smile:

3 Likes