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

Bilibili Live

On an AWTRIX display
Bilibili Live shown on an AWTRIX display
Bilibili Live · by Tony APTX4869

On your display

Shows a Bilibili room's live status, online viewers, and follower count.

Which AWTRIX do you have? See below where it runs, or choose your device.
Topic
Social
Includes
Script · 2 icons

Runs on

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

Bilibili LiveAWTRIX 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

Bilibili Live

A compact Berry app for AWTRIX NG / TC001 (ESP32) that shows a Bilibili room's live status, online viewers, and follower count.

I don't have a TC002 yet, maybe you can edit the codes when it fails on TC002.

Highlights

  • While live: live icon + current online viewers. Offline: normal icon + follower count.
  • Optional in-app second page while live: with Show Fans enabled, the live page takes 70% of the display time and the fans page 30%; with it disabled, only the live page is shown.
  • Clean integer formatting with automatic K / M / G / T units, e.g. 999M.
  • Checks the API code field (0 = success). A failed request retries every 5 seconds; after 3 failed attempts the app shows Check ID in orange.
  • Inherits the system Text Color, scrolling behavior, and transition effect.
  • One complete HTTP request per refresh with regex extraction; no allocation in draw(), so it stays friendly to small-heap devices.

Installation

You just click the button Send to AWTRIX

Configuration

Open Apps, find Bibibili Live, and click the gear icon:

Setting Default Description
Room ID 6 The number from live.bilibili.com/<roomid>; change this to your room
Normal Icon bilibiliblink Icon shown when offline
Living Icon bilibililive Icon shown while live
Refresh 1 min Data refresh interval
Duration 10 s App display time; 0 uses the system per-app duration
Show Fans true Show a fans page after the live page while streaming

Saving settings restarts the app. Both icons are declared with @icons; install icons with the same names via the Web UI if they are missing.

More scripts in Social

Something wrong with this script? Report it.