Skip to content

Which AWTRIX do you have? Choose it once and the Hub shows what runs on it.

ScriptAWTRIX NG

Advent Calendar

On an AWTRIX display
Advent Calendar shown on an AWTRIX display
Advent Calendar · by exradice

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.

Which AWTRIX do you have? See below where it runs, or choose your device.
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.

Send to AWTRIX

Choose your AWTRIX

Advent CalendarAWTRIX NG script

Install this script on your AWTRIX NG. Its icons and sounds are installed with it.

Your AWTRIX’s local address, for example 192.168.178.39 or awtrix.local.

The name shown in your AWTRIX script list. Use letters, digits, hyphens or underscores.

Connection & device login

Connect your phone or computer to the same network as your AWTRIX. Allow local network access if your browser asks.

Use the device’s IP address, without a page path such as /#/apps.

If your AWTRIX requires a login, the username and password fields will appear when you connect.

Sign in to the Hub to install scripts. Attached files are installed separately.

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

  1. Install the script under the name Advent.
  2. Make sure Advent is in the app order. Only then can it take over the display in the morning and be opened via MQTT.
  3. 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.
  4. 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

More scripts in Miscellaneous

Something wrong with this script? Report it.