In case anyone is looking for a way to display wind speed in Beaufort, I found out how, using embedded conditionals.
$#WND#>73?12:$$#WND#>63?11:$$#WND#>54?10:$$#WND#>46?9:$$#WND#>38?8:$$#WND#>30?7:$$#WND#>24?6:$$#WND#>17?5:$$#WND#>12?4:$$#WND#>7?3:$$#WND#>3?2:$$#WND#>1?1:0$
1 Like
Thanks for sharing Might wanna move this topic to the Resources forum, and also wrap the formula in back-ticks like this
(this character on both ends of the formula `).
1 Like
Works like a charm in the preview. On my watch it shows ‘321’ when the mps is 8.19.
How on earth is it possible with this code that it shows ‘321’, that’s not a value… All ‘else if’s’ are between 0 and 12…
My face is here: muis - Basic info - first face - watch face for Apple Watch, Samsung Gear S3, Huawei Watch, and more - Facer
1 Like
Found it!!!
The problem is that we don’t use a . to seperate digits, but a ,
So 10.000 is read in metric units as ten thousand. Not as ten.
It should be: $(round(#WND#))>72?12:$$(round(#WND#))>62?11:$$(round(#WND#))>53?10:$$(round(#WND#))>45?9:$$(round(#WND#))>37?8:$$(round(#WND#))>29?7:$$(round(#WND#))>23?6:$$(round(#WND#))>16?5:$$(round(#WND#))>11?4:$$(round(#WND#))>6?3:$$(round(#WND#))>2?2:$$(round(#WND#))>0?1:0$
1 Like
Still need some help. In my preview it works great. But on my watch it doesn’t.
Today (round(#WND#))
returns 8.
In preview my formula above shows 3, but on my watch it shows 321. So every value (except 0 (!..?)) after the condition that’s true ($(round(#WND#))>6?3:$$(round(#WND#))>2?2:$$(round(#WND#))>0?1:0$
). Why doesn’t it stop when a True is reached?