FACER Community

Christmas Countdown

Fairly new to this but I am wondering how to set up a countdown widget for my watch faces.
I use the “Create Watchface” item on my page but am wondering
1 Can it be done on the basic watchface build or
2 Do I need to upgrade.

Thanks all

2 Likes

Countdown until Christmas Place in Text Box
$(#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$

As a heads up this “used” to only work on Samsung Tizen watches and not on WearOS. I have not tested it lately so you will want to double check it to make sure it functions. If it doesn’t give this a try for grins and giggles.
$(#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$
It looks the same but there are some extra spaces in it that might make it work.

3 Likes

You dont need to upgrade and you can also shorten that formula a little using modulo function like this:
$#Dy#%4==0&&#DD#<=360?360-#DD#:$$#Dy#%4!=0&&#DD#<=359?359-#DD#:$$(#Dy#+1)%4==0?365-#DD#+360:$$#Dy#%4==0?366-#DD#+359:365-#DD#+359$

3 Likes

When I place this in a text box, I get the “26391” as an output, I tried this on Nov 29th…when there should be 26 days until Christmas…

I found that also. You need to split the expression in half and use only the first two parts. It will only function correctly until Christmas then it goes blank. I used $(#Dy#/4)==floor(#Dy#/4)&&#DD#<=360?360-#DD#:$ $(#Dy#/4)!=floor(#Dy#/4)&&#DD#<=359?359-#DD#:$ with the opacity of $#DMM#>10&&#DdL#<25?100:0$ So that it is only visible during December and up to but not including Christmas. I use text “Merry Christmas” set with opacity for only Christmas day in the same spot I put the countdown to Christmas. Have fun!