laut.fm Listeners
Shows the number of listeners for a station on laut.fm
About this flow
| System | AWTRIX NG Scripts |
|---|---|
| AWTRIX version | AWTRIX NG |
| Topic | Miscellaneous |
| Built by | eXiratA |
| File | MQsyDmUafdVF.ax · 1.1 KB |
| Icons | — |
| Published | 19 Aug 2026 · updated 19 Aug 2026 |
| Downloads | 34 |
Is this your flow?
If you created this flow, open your saved edit link to add it to your account. You can then manage it whenever you sign in. Adding it to your account replaces the edit link.
Flow description
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
Add this flow to your AWTRIX NG. It will start appearing on your display after installation.
Unable to connect? Download the flow and add it in the Scripts section of your AWTRIX. Advanced users can also use this command:
Discussion 0
Ask a question, suggest a change or share how you use it.
No comments yet. Start the conversation.
More flows for AWTRIX NG Scripts or Miscellaneous
Something wrong with this flow? Report it.
Have an idea?
Sign in to ask questions and join the conversation.