Skip to content

← Blog

CODING, SMART HOME

Create a countdown in HTML

Isn’t there always some countdown. 84 days until the birthday. Two days until Christmas. 219 days until the new season of “Stranger Things”. There are lots and lots of countdowns here: https://yourcountdown.to/

I wanted to add a countdown for New Year’s Eve to our smart home system.

For that I only had to throw a bit of code onto a small subdomain and I could already display the subdomain in my smart home view.

Here is the code:

(Code may not be displayed on mobile)

You can of course adapt the code to your own needs. Change the font, the color of the letters or add a background.
Happy coding!

Stay safe - stay healthy - learn something new every day!!