XBOX Score & Status
On your display
Shows an Xbox player's Gamerscore, Gamertag, and current activity. It alternates between offline status and online game/device name with timed scrolling, using cached values when the API is unavailable.
- Topic
- Gaming
- Includes
- Script · 1 icon
Runs on
- Runs on 32×8 (TC001 & DIY)
- Runs on 52×16 (TC002) 52×16 (TC002) version API key: open the app's settings on your AWTRIX and enter your key.
- Does not run on 32×8 with AWTRIX 3 (TC001 & DIY) Made for AWTRIX NG.
Choose your display in the next step.
Script description
XBOX Score&Status
An AWTRIX NG Berry app for an Xbox player's Gamerscore, Gamertag, and current presence. It calls two endpoints under one API base URL and draws the result on the matrix in timed phases.
Two variants are included:
| File | Clock | Install name |
|---|---|---|
XBOX-Score-Status.ax |
Ulanzi TC001 / ESP32, 32x8 | XBOX-Score-Status |
XBOX-Score-Status-TC002.ax |
Ulanzi TC002, 52x16 | XBOX-Score-Status-TC002 |
What it shows
- Offline: Gamertag first, then Gamerscore. Each phase lasts half the app duration, capped at 5 seconds.
- Online: current game first, then Gamerscore. The game phase takes 2/3 of the app duration, capped at 10 seconds. The score phase takes 1/3, capped at 5 seconds.
- If no full-screen game title is found, the device type is shown instead:
ScarlettbecomesXBOX SERIES X,LockhartbecomesXBOX SERIES S, andWindows*becomesWindows. - All text uses
#21AB15. Long text scrolls; short text is centered. - The icon is drawn from the configured icon name. The default is
xboxlogo.
The score and Gamertag are cached in the app's local store after a successful API response. Empty fields, missing fields, malformed JSON, and failed requests do not overwrite the cache.
Data source
The app sends GET requests to:
{apiurl}/account{apiurl}/presence
Both requests send the configured auth header: {authhd}: {apikey}.
The account response is read from content.profileUsers[0].settings. Additional fallbacks for content.settings, settings, and profile.settings are supported. The values with id equal to Gamerscore and Gamertag are used.
The presence response is read from content.state. The value Online marks the player as online. The highest-priority device is chosen in this order: Scarlett, Lockhart, Windows*. Within that device, the first title with placement equal to Full supplies the game name. Non-ASCII characters are removed from the name.
Setup steps
- Open the AWTRIX web interface. Use the device IP address or
http://awtrixng-xxxxxx.local. - Go to Scripts, create a new script, and name it exactly as the install name in the table above. Use only letters, digits,
_, and-. - Paste the full contents of the matching
.axfile and press Save. - The app joins the rotation automatically. Press the right button on the clock to skip to it.
- Go to Apps, find the app row, and open the gear button.
- Set these fields:
- API URL: base URL only, without
/accountor/presence. Default:https://api.aptx4869.vip/p/xbl. - API Key: your key from the same platform. On TC001 this is a normal config field. On TC002 enter it under API keys in the same settings panel.
- Auth Header: header name used for authentication. Default:
X-API-Key. - Icon: icon filename on the device. Default:
xboxlogo. - Refresh: polling interval in minutes, 1 to 1440. Default: 1.
- Duration: app duration in seconds. Default: 10. The script also supports
0for the system duration, but the declared UI minimum is 2.
- API URL: base URL only, without
- Save the settings. Saving restarts the app and starts a fresh API request.
TC002 API key note
The TC002 file declares # @secret with hosts=api.aptx4869.vip. If you change API URL to a different host, update the hosts= value in the script, save it, and enter the key again.
TC001 API key note
TC001 does not support @secret, so the key is stored as a normal config value and is visible in the app settings. Set a web login on the clock under System > Web server, and use a scoped, revocable key.
Troubleshooting
If the panel shows ERR: in red, open the Scripts tab. The error message and line number appear next to the script. Copy them back for a fix.
If the panel shows XBOX GAMER or a stale value, check the API URL, API Key, auth header, Wi-Fi connection, and whether the icon name exists. The app keeps the last successful score and Gamertag when requests fail.
Sign in to view and copy the code of this script.
Discussion 0
Ask a question, suggest a change or share how you use it.
No comments yet. Start the conversation.
Have an idea?
Sign in to ask questions and join the conversation.