Advent Calendar
On your display
An Advent calendar: open a gift door every day from 1 to 24 December for a Christmas animation, a jingle and a fun fact from around the world.
- Topic
- Miscellaneous
- Includes
- Script
Runs on
- Does not run on 32×8 (TC001 & DIY) Made for 52×16 (TC002).
- Runs on 52×16 (TC002)
- Does not run on 32×8 with AWTRIX 3 (TC001 & DIY) Made for AWTRIX NG.
Choose your display in the next step.
Script description
Every day from 1 to 24 December a gift door waits on your clock. Press the middle button and the door swings open, light pours out, a Christmas animation plays with a short jingle of a well-known carol, and then a fun fact about Christmas around the world scrolls by: exciting for children, surprising for adults.
- 8 animations, picked at random and never twice in a row: Christmas tree, reindeer sleigh over snowy roofs, snowman, northern lights, swinging bells, crackling fireplace, presents with a confetti fountain, snowflakes
- Advent Sundays: a match lights the new candle on the Advent wreath, the candles of the previous weeks have already burned down a bit
- Christmas Eve: a golden finale with a comet, a tree of golden sparks and a Christmas greeting
- 49 fun facts in two sets, so two years without a repeat. Many belong to their day: the real Saint Nicholas on the 6th, Lucia on the 13th, El Gordo on the 22nd, Silent Night on the 24th
- Languages: English, German, Spanish, French
- Music on the TC002 synthesizer: Jingle Bells, Carol of the Bells, Deck the Halls, Joy to the World, Silent Night and more. Can be switched off
- Optionally holds the rotation on the door until it is opened, so the kids see it first thing in the morning
- Open it with the button, the knob or MQTT, and get an MQTT message when it is opened
- No internet, no account, no Home Assistant needed
Source code, changelog and issues: https://github.com/exradice/advent
Setup
- Install the script under the name Advent.
- Make sure Advent is in the app order. Only then can it take over the display in the morning and be opened via MQTT.
- Optional: Apps → gear icon of Advent:
- Language: en, de, es or fr (default English)
- Only the door until: before this hour the clock shows only the door until it is opened. 24 = all day. Left/right releases the rotation.
- Later in the rotation: what the rotation shows after the door was opened that day (fun fact only, animation and fact, open door, or nothing).
- MQTT topic, e.g. awtrix/data/advent: send open or close (not retained). On opening the script reports {"day", "advent", "animation", "fact"} on /opened.
- To try it outside Advent: group Testing → set Test day to 1–24, or force an animation. Set it back afterwards.
From 1 to 24 December the door appears in the rotation by itself. If the first Sunday of Advent falls in November, there is a door on that day too.
All settings in detail: https://github.com/exradice/advent#settings
Sign in to view and copy the code of this script.
Discussion 0
Ask a question, suggest a change or share how you use it.
No comments yet. Start the conversation.
More scripts in Miscellaneous
Something wrong with this script? Report it.
Have an idea?
Sign in to ask questions and join the conversation.