Countdown timer

Thanks for the help! I did find the text box and have entered the string:

$(#Dy#/4)==floor(#Dy#/4)&&#DD#<=360?360-#DD#:$$(#Dy#/4)!=floor(#Dy#/4)&&#DD#<=359?359-#DD#:$$((#Dy#+1)/4)==floor((#Dy#+1)/4)?365-#DD#+360:$$(#Dy#/4)==floor(#Dy#/4)?366-#DD#+359:365-#DD#+359$

One my preview it shows 45 days, however, when I synch to my watch it shows 359-315365-315+359 any hint there? Galaxy Watch 4 is what I’m using for a device

Screenshot_20211111_094148_sysui

1 Like

Not all watches support the way the conditions are set up. Also brackets can be an issue sometimes.

1 Like

Somewhere in the documentation is says we can only have 3 conditionals on one line.
Sometimes stuff gets corrupted with the copying and pasting.
But this one which is the original by CompuChip works fine for me on the Little Samsung Active.

$(#Dy#/4)==floor(#Dy#/4)&&#DD#<=360?360-#DD#:$$(#Dy#/4)!=floor(#Dy#/4)&&#DD#<=359?359-#DD#:$$((#Dy#+1)/4)==floor((#Dy#+1)/4)?365-#DD#+360:$$(#Dy#/4)==floor(#Dy#/4)?366-#DD#+359:365-#DD#+359$

Sometimes spaces creep in round * but I see none there.

Try this . I have put some () Brackets Parenthesis Chips around floor That is how I usually work .
And a few else where .
I have been advised to use a few as possible but I find Chips with everything works well.

Pardon Me @CompuChip

$(#Dy#/4)==(floor(#Dy#/4))&&#DD#<=360?360-#DD#:$$(#Dy#/4)!=(floor(#Dy#/4))&&#DD#<=359?359-#DD#:$$((#Dy#+1)/4)==(floor((#Dy#+1)/4))?(365-#DD#)+360:$$(#Dy#/4)==(floor(#Dy#/4))?(366-#DD#)+359:(365-#DD#)+359$

Still same result. I did create a new thread thinking this was an old one and should be using on specific to Galaxy 4. I can close that one if this one is good. What I have in there now is:

$(#Dy#/4)==(floor(#Dy#/4))&&#DD#<=360?360-#DD#:$$(#Dy#/4)!=(floor(#Dy#/4))&&#DD#<=359?359-#DD#:$$((#Dy#+1)/4)==(floor((#Dy#+1)/4))?(365-#DD#)+360:$$(#Dy#/4)==(floor(#Dy#/4))?(366-#DD#)+359:(365-#DD#)+359$

and on my watch face I see:

359-31649+359

1 Like

Yeah . Sorry no problems I thought we had lost you .
Did you copy that from my Inspectable Draft ?

It looks to me like the very last part of the formula.
I have had to retype stuff sometimes . what you see is not what is complied to make the watch work .

:(365-#DD#)+359$

no you see

359-31649+359

I was going to say try if you understand where it fits.

:((365-(#DD#))+359)$

I will try it in creator .

If you are still interested later I will publish the Test .
You could try syncing that to your watch .
I am working on a Windows Laptop with Creator on Microsoft Edge Browser.

Hang on .

Try this . Sorry but I honestly think it is a Galaxy4 Bug which is being sorted as we speak : )

$((#Dy#)/4)==(floor((#Dy#)/4))&&(#DD#)<=360?360-#DD#:$$((#Dy#)/4)!=(floor(#Dy#/4))&&#DD#<=359?359-#DD#:$$((#Dy#+1)/4)==(floor((#Dy#+1)/4))?(365-#DD#)+360:$$(#Dy#/4)==(floor(#Dy#/4))?(366-#DD#)+359:((365-(#DD#))+359)$

Could you try publish what you have and let us know , to check it out .

Now I see 359-315408

With this statement:

$((#Dy#)/4)==(floor((#Dy#)/4))&&(#DD#)<=360?360-#DD#:$$((#Dy#)/4)!=(floor(#Dy#/4))&&#DD#<=359?359-#DD#:$$((#Dy#+1)/4)==(floor((#Dy#+1)/4))?(365-#DD#)+360:$$(#Dy#/4)==(floor(#Dy#/4))?(366-#DD#)+359:((365-(#DD#))+359)$

Screenshot_20211112_202025_sysui

1 Like

You should try the short formula that does not account for the Leap year.

$358-#DD#>=0?358-#DD#:365-#DD#+358$

As @ThaMattie posted Earlier this long formula is pushing the boundaries of what is possible on Facer.

Publish the Face so we can check it.

I entered the string:

$358-#DD#>=0?358-#DD#:365-#DD#+358$

And see this on the watch face

Screenshot_20211113_082138_sysui

1 Like

Sorry. I am not on my system at the moment. Try Put it inside
( ) I will get back later. I think it is a Galaxy 4 problem. There is a new OS for the watch but you have to sign up for the Beta. It is worth a go.

Here is one that works without a condition. Not taking leap years into account though:
((358-#DD#+365)%365)

2 Likes

That is what is required . Start with the basics. Good one Mattie.

Nailed it! You guys are awesome. Thanks for the hep. Now I’m off to see which values I need to change to get it to start at 310 and count down. Again, many, many thanks.

Screenshot_20211113_153101_sysui

1 Like

Any thing that is not 359 or 360. You using Matties short expresion with no conditional. It is only going to be a day out every 4 years and then sorts itself out for the next 3 years after. We’ll done.

Does anyone know the Math for a reverse countdown to the New Year, showing Days, Hours, Minutes, and Seconds?

2 Likes

What about something like this? I am not satisfied with it yet, but dont know how to improve it
(and I dont mean the leap year, thats one easy condition)
(365-#DD#)d (23-#DH#)h (59-#Dm#)m (60-#Ds#)s

4 Likes

Not sure what you mean by improvement, This is just what I was looking for. Many Thankl.
This is what I came up with your formula:

3 Likes

Thanks @petruuccios that’s precisely what I was looking for, and well done @gogsoman, that’s a pretty neat design :+1:

1 Like

WearOS will not support that style of countdown. Only Samsung Tizen will display it correctly.

2 Likes

Good job I’m still using my original Samsung Galaxy 46" then, looking a little different with a new Bezel on it :grin:
Original Samsung Galaxy

1 Like