laut.fm Listeners
Shows the number of listeners for a station on laut.fm
| System | AWTRIX NG Scripts |
|---|---|
| Firmware | AWTRIX NG |
| Topic | Miscellaneous |
| Built by | eXiratA |
| File | MQsyDmUafdVF.ax · 1.1 KB |
| Icons | — |
| Published | 19 Aug 2026 · updated 19 Aug 2026 |
| Downloads | 1 |
This script displays the number of listeners for a station on laut.fm
You need the "laut.fm Data Collector" to run this Script.
The script requires the "9685" icon for correct display.
MQsyDmUafdVF.ax
# @name LautFM Listeners
# @desc Aktuelle Hörerzahl eines laut.fm-Senders
# @config okColor color "Normale Farbe" default=#32CD32
# @config errorColor color "Fehlerfarbe" default=#FF0000
class LautFmListeners
var listeners
var ok_color
var error_color
var good
def init()
self.listeners = "--"
self.ok_color = store.get("okColor")
self.error_color = store.get("errorColor")
self.good = false
end
def loop()
var value = shared.get("lautfm-data.listeners", nil)
var age = shared.age("lautfm-data.listeners")
if value != nil
self.listeners = str(value)
end
# Älter als 2 Minuten = Daten vermutlich nicht mehr aktuell.
if age != nil && age <= 120000
self.good = true
else
self.good = false
end
end
def draw()
clear()
icon("9685", 0, 0)
var color = self.ok_color
if !self.good
color = self.error_color
end
var w = text_ink_width(self.listeners)
var x = 9 + ((width() - 9 - w) / 2)
text(
x,
6,
self.listeners,
color
)
end
end
return LautFmListeners()
Install it on your AWTRIX NG
Your browser writes the script straight to the device on your network. It joins the app rotation right away.
Some browsers refuse to talk to a device on your network from a public page. Download the flow and paste it into the Scripts tab of your device, or install it from a terminal:
More flows for AWTRIX NG Scripts or Miscellaneous
Something wrong with this flow? Report it.