Skip to content

Which AWTRIX do you have? Choose it once and the Hub shows what runs on it.

ScriptAWTRIX NG

Kuai Kuai TW

On an AWTRIX display
Kuai Kuai TW shown on an AWTRIX display
Kuai Kuai TW · by patw

On your display

Unofficial fan charm: the green Kuai Kuai bag Taiwan's engineers put on servers so they behave. Your own blessing, bug patrol, best-before date.

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

Runs on

  • Does not run on 32×8 (TC001 & DIY) Made for 52×16 (TC002).
  • 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

Kuai Kuai TWAWTRIX 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

In Taiwan's tech industry, people put a bag of green Kuai Kuai (乖乖, "be good") snacks next to their servers, network racks and production machines. The idea is that the machines will then behave: no crashes, no bugs, no outages. This app puts that charm on your AWTRIX display (such as the Ulanzi TC002, 52×16).

Unofficial fan work. The pixel art is based on the green Kuai Kuai sentence-pack (coconut flavour) bag: a red badge, a boy in a blue cap and a white label for your own phrase. The Kuai Kuai trademark and character belong to their owner.

What you see

  • Left: the green Kuai Kuai bag (16×16). A soft green "blessing glow" breathes around its outline, the boy blinks now and then, and little stars twinkle beside it.
  • Top right: your blessing, for example 設備乖乖 ("may the equipment behave") or 上線乖乖 ("may the launch behave"). The character 乖 is always green. Phrases longer than 4 Chinese characters scroll, and several phrases take turns.
  • Bottom right: a rotating status line
    • a heartbeat monitor with OK
    • how many bugs have been stopped (a crossed-out bug, x3 and a small BUG)
    • a best-before countdown, e.g. 剩 45 天 ("45 days left"), which turns orange in the last 30 days

Interaction

  • Bug patrol: every so often a red bug crawls in from the right. The boy's eyes follow it, then laser eyes zap it into stars and the counter goes up by one.
  • Pray: press the knob (or the middle button). The bag hops twice and gives off a golden glow, your phrase turns gold, and 拜拜 +N ("prayers +N") appears below.
  • Turn the knob: switch between phrases by hand.

An expired bag doesn't work

Legend says an expired Kuai Kuai loses its power. Enter the best-before date printed on your real bag. After that day:

  • The bag turns grey and the boy frowns
  • The heartbeat goes flat, with a red 過期 ("expired") beside it
  • Bugs are no longer stopped: they crawl right over the bag, and they come more often
  • Press the knob (or the middle button) to renew: the bag turns green again, 換新 OK ("renewed") appears, and the best-before date is set to one year from today and saved to the settings

Settings

Setting Description Default
Phrases 造句 Your blessings, separated by commas (, , 、 or /), up to 12 phrases 設備乖乖,上線乖乖
Best before 有效期限 2027-06-30, 2027/6/30 or 20270630; empty = never expires; after it expires, pressing the knob sets it to one year from today empty
Text colour 文字顏色 Colour of the phrase (乖 is always green) white
Seconds per phrase 每句秒數 How long each phrase stays; long phrases stay until they have scrolled through 5
Bug patrol 抓蟲間隔 Seconds between bugs; 0 = no bugs 25
Show days left 顯示倒數天數 Include "剩 N 天" (days left) in the status rotation; "請換新" still shows once expired on
Show bug count 顯示抓蟲數 Include the caught-bug count in the status rotation (bugs still come and get zapped) on

The built-in Chinese font has the 5401 common Big5 characters plus full-width punctuation, letters and digits. Characters missing from the font show as a box. The script is about 119 KB because it carries its own Chinese font.

Ideas for phrases: 設備乖乖 (equipment), 上線乖乖 (launch), 伺服器乖乖 (server), 網路乖乖 (network), 萬事乖乖 (everything).

Source code, font licence (SIL OFL 1.1 for the built-in Fusion Pixel Font glyphs) and details: https://github.com/patw0929/awtrix-tw-kuaikuai

More scripts in Miscellaneous

Something wrong with this script? Report it.