Xbox Gamerscore
Zeigt deinen aktuellen Xbox-Gamerscore auf deinem AWTRIX NG.
About this flow
| System | AWTRIX NG Scripts |
|---|---|
| AWTRIX version | AWTRIX NG |
| Topic | Gaming |
| Built by | Big Quantum |
| File | 7Sv6nCyY6nTy.ax · 1.3 KB |
| Icons | 1 |
| Published | 9 Aug 2026 · updated 9 Aug 2026 |
| Downloads | 17 |
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.
Xbox Gamerscore
Zeigt den aktuellen Gamerscore deines Xbox-Kontos direkt auf deinem AWTRIX NG.
Voraussetzungen
- AWTRIX NG
- OpenXBL API-Key
- Xbox-Konto
- Internetverbindung
Einrichtung
Die App verwendet die OpenXBL API, um den Gamerscore des mit dem API-Key verbundenen Xbox-Kontos abzurufen.
Wichtig: Jeder Benutzer benötigt seinen eigenen OpenXBL API-Key. Niemals einen fremden oder bereits vorkonfigurierten API-Key verwenden.
Das Xbox-Icon wird auf dem Display zusammen mit dem aktuellen Gamerscore angezeigt.
Die App aktualisiert den Gamerscore regelmäßig. Bei einem kurzfristigen Verbindungsfehler bleibt der zuletzt erfolgreich abgerufene Wert erhalten.
7Sv6nCyY6nTy.ax
# @name XboxGamerscore
# @desc Xbox Gamerscore
# @author Big Quantum
# @version 2.7
class XboxGamerscore
var key
var score
var busy
var ticks
def init()
self.key = "OpenXBL API key here"
self.score = "..."
self.busy = false
self.ticks = 0
end
def body(b, s)
self.busy = false
log("Xbox HTTP status=" + str(s))
if b == nil
log("Xbox temporary connection error - keeping last score")
return
end
var m = re.search("\"value\"\\s*:\\s*\"(\\d+)\"", b)
if m == nil
log("Gamerscore value not found - keeping last score")
return
end
self.score = m[1]
log("Gamerscore=" + self.score)
end
def loop()
if self.ticks > 0
self.ticks -= 1
return
end
if self.busy
return
end
# Alle 10 Minuten aktualisieren
self.ticks = 600
self.busy = true
http.get(
"https://api.xbl.io/v2/account",
/ b, s -> self.body(b, s),
{
'headers': {
'X-Authorization': self.key,
'Accept': 'application/json'
},
'find': "Gamerscore",
'keep': 100
}
)
end
def draw()
clear()
# Xbox Icon 4253
if !icon("4253", 0, 0)
circle_fill(4, 4, 3, 0x00FF00)
end
# Gamerscore
var tw = text_ink_width(self.score)
text(
9 + (width() - 9 - tw) / 2,
6,
self.score,
0x00FF00
)
end
end
return XboxGamerscore()
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:
This flow uses the following icons. Add them to your AWTRIX along with the flow.
8×8 px
More flows for AWTRIX NG Scripts or Gaming
Something wrong with this flow? Report it.