Not sure if it can be done for the Apple watch or my knowledge of programming lacks.
I have a heart icon which turns red when the heart rate is high and only visible at that point.
For the opacity I used and works fine:
$#ZHR#>110&&#ZHR#<=200?100:0$
I found also you can make an object blinking with this code:
$floor(#DNOW#/500)%2=0?100:0$
Question is can those 2 be combined to make the icon only appear when heart rate is high and at the same it is blinking?
Thanks for any help
2 Likes
Yes . Is the answer but I will not leave it like that. I will make a test to show you . Your DNOW formula returns 0 or 1 . You just Multiply that by 100 to get full opacity . So you drop it in instead of 100 . Easy to say . Much easier to show you .
.
Try this . For opacity Field . Not for Weather or Sequence Layers .
.
$#ZHR#>110&&#ZHR#<=200?(((floor(#DNOW#/500))%2)*100):0$
.
.
So sorry @michaeldekort I did not read your question properly . This will not work on an Apple Watch . Only on WOS / Tizen / RTOS . Apple has Display update restrictions so it is updated every 15 minutes or so .
3 Likes
It is Apple to blame. Read the part about refresh rate in this article
3 Likes
What about for low/medium/high? Like for a low/normal/high heart rate
1 Like
Just Change the test numbers in the conditional . I woulde mak 3 layers each with a different colour. But of course this will not work on an Apple Watch .
Yes Thank you Peter this will Not work on Apple . I did not read the Question Properly .
1 Like