Skip to content

New Share your ideas with the AWTRIX community. Keep your creations together in your account.

Sign in

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

ScriptAWTRIX NG

Abfall

On an AWTRIX display
Abfall shown on an AWTRIX display
Abfall · by fshero

On your display

Visualisiert anstehende Müllabfuhr-Termine mit automatischer Farbcodierung nach Müllart.

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

AbfallAWTRIX 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

Die App Abfall visualisiert die nächsten Müllabfuhr-Termine auf dem Display. Sie ermittelt aus der MQTT-Message die verbleibende Zeit bis zum Abholtermin und zeigt entsprechende Animationen an.

Features

  • Stufenbasierte Animationen je nach Dringlichkeit (Abholung heute, morgen oder in mehreren Tagen).
  • Echte Seitenansicht der Mülltonne mit physikalisch korrektem Profil (ein sichtbares Hinterrad und vorderer Standfuß).
  • Müllwagen-Szene mit Entleerung der Tonne am Abholtag.
  • Automatische Farbwelten und passende Embleme für gängige Müllarten (Restmüll, Gelber Sack/Wertstoff, Papier, Bio, Glas, Schadstoffe).

MQTT Schnittstelle

Die App empfängt die Abfuhrdaten über das konfigurierte MQTT-Topic (Standard: awtrix/trash/next).

Erwartet wird ein standardkonformes JSON-Objekt mit zwei Feldern:

Felder
  • type (String): Bezeichnung der Müllart (z. B. "Restmüll", "Gelber Sack", "Biomüll", "Papier", "Glas", "Schadstoff"). Alternativ werden auch die Schlüssel waste_type oder name akzeptiert.
  • days (Integer): Anzahl der Tage bis zur Abholung als Ganzzahl. Alternativ werden auch die Schlüssel daysTo oder day akzeptiert.
    • 0: Abholung findet heute statt
    • 1: Abholung findet morgen statt
    • 2: Abholung findet in 2 Tagen statt (usw.)

Hinweis: Zusätzliche Felder im JSON-Objekt (wie z. B. date) werden von der App ignoriert und können im Payload verbleiben.

Beispiele

Restmüll-Abholung am heutigen Tag:

{
  "type": "Restmüll",
  "days": 0
}

Gelber Sack am nächsten Tag:

{
  "type": "Gelber Sack",
  "days": 1
}

Papiermüll in 3 Tagen:

{
  "type": "Papier",
  "days": 3
}

Biotonne mit alternativen Schlüsseln (z. B. direkt aus Home Assistant):

{
  "waste_type": "Biomüll",
  "daysTo": 2
}

Konfiguration

Folgende Einstellungen stehen in der AWTRIX Web-Oberfläche unter den App-Einstellungen (Zahnrad-Symbol) zur Verfügung:

Parameter Bezeichnung im Web-UI Typ Standard Funktion
topic MQTT-Topic Text awtrix/trash/next MQTT-Topic für die Termindaten
warn_days Vorlaufzeit in Tagen (1-14) Zahl 3 Maximale Vorlaufzeit in Tagen (1-14)
hide_far Ausblenden wenn Termin weit entfernt Schalter false App in der Rotation überspringen, wenn Termin > warn_days

More scripts in Smarthome

Something wrong with this script? Report it.