Image Flash rate synced with bpm/#ZHR#

I’m glad it worked - it looks like you get the hang of it :slight_smile:

1 Like

Just worked out an expression for a progress bar filling up using the heartrate tag. I don’t really know how I figured it out, but this topic helped me a lot. thank you

I am really new to this, so I just added it to the fill ratio
(clamp((sin((6.28*#Dsm#*#ZHR#)/60)),0,1))

5 Likes

looking good, keep it up

1 Like

I know this post has been up for a while but I’ve tried these formulas and couldn’t get any to work. The image transparency stays at 0%.

If you put #ZHR# in a text layer do you get a sensible number?

This might be a problem that others are having on the GW4 ( refer: Galaxy Watch 4 Heart Rate Errors ). If so then raising a support request would be a good idea. Even if it has been reported already, I think that the support team still wants to know how widespread an issue is and which watches/phone makes/models are impacted.

1 Like

I have no problem with the bpm text. It reads fine. Also, the formula results in 0 in the creator and doesn’t change when the watch is animated.

Ok good to know. Would you please paste the exact text of the expression you are using or post a link to a face with the issue with inspection mode on and I’ll take a look to see if I can see a problem.

1 Like

Ok, I’m new to this so I’ll see if I can figure that out. As for the expressions I just copied and pasted each one that was posted above with the exception of the one that said remove the spaces which I did. None of them seemed to work for me.

If you run the face in Creator ( by pressing the play button at the bottom of the page ) does the expression stay at zero?

Ok, I retried all the different formulas on this post again before replying. All but one return with nothing and this one “(clamp((sin((6.28*#Dsm#*#ZHR#)/60)),0,1))” is just a zero and none of them change when the creator is animated (pressing play).

I tried the one you just mentioned and it works for me in Creator. Are you sure that when you paste it into the text field that there are no spaces before or after the expression?

If you publish a test face with the set of expressions in text fields and inspection mode on I’ll take a look - it is a bit hard otherwise for me to think what might be going wrong.

1 Like

I think I figured out another way using the formula i have to make the time colon blink with the seconds. It seems to work. $floor(#DNOW#/(1000/(#ZHR#/30)))%2=0?100:0$.

3 Likes

Cool effect, I would love to use it but doesn’t work for me also.

None of the formulas work in creator nor on watch (Samsung watch 4).

Don’t know why.

It should be added to Opacity, I suppose.

If you use a progress bar it goes in fill ratio shield, you can use also a shape unless a progress bar and use different formulas in width or hight shield

1 Like

This will probably not work at least on half of the watches, but at least in my preview it works. In case the heart rate was not measured (is zero) it blinks with seconds.
(((sin((#DWE#*#ZHR#/60)*6.28)>0)+(#ZHR#==0)*((#Dsm#%1)>0.5))*80+20)

3 Likes

This is what I’ve been using to flash the colon for the last 2 or 3 years. I’ve not gotten any complaints about it so it must be pretty close.

((floor(((#Dsm#)-(floor(#Dsm#))) * 2)) * 100)

I’ve added spaces before and after each * because the community pages tends to strip them out of expressions for some reason. Just remove the spaces and it should work fine. I normally use use two colons one layer above the other. The bottom layer is the color of time font. The upper is a darker version of the same color to make it appear to darken. It also will not show the dark version in the still preview of a publish watch face.

2 Likes

This Thread is brilliant, I’ll definitely be learning a lot from here when I come back on the laptop, so thank you everyone for your contributions :+1:

2 Likes

Cool! Thank you!

3 Likes

Thank you for this post, works fine for me.