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

XBOX Score & Status

On an AWTRIX display
XBOX Score & Status shown on an AWTRIX display
XBOX Score & Status · by Tony Chang

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.

Which AWTRIX do you have? See below where it runs, or choose your device.
Topic
Gaming
Includes
Script · 1 icon

Runs on

  • Runs on 32×8 (TC001 & DIY) 32×8 (TC001 & DIY) version
  • Runs on 52×16 (TC002) 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.

Send to AWTRIX

Choose your AWTRIX

XBOX Score & StatusAWTRIX 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

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: Scarlett becomes XBOX SERIES X, Lockhart becomes XBOX SERIES S, and Windows* becomes Windows.
  • 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

  1. Open the AWTRIX web interface. Use the device IP address or http://awtrixng-xxxxxx.local.
  2. Go to Scripts, create a new script, and name it exactly as the install name in the table above. Use only letters, digits, _, and -.
  3. Paste the full contents of the matching .ax file and press Save.
  4. The app joins the rotation automatically. Press the right button on the clock to skip to it.
  5. Go to Apps, find the app row, and open the gear button.
  6. Set these fields:
    • API URL: base URL only, without /account or /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 0 for the system duration, but the declared UI minimum is 2.
  7. 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.

More scripts in Gaming

Something wrong with this script? Report it.