Kuai Kuai TW
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.
- 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.
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,
x3and a smallBUG) - a best-before countdown, e.g. 剩 45 天 ("45 days left"), which turns orange in the last 30 days
- a heartbeat monitor with
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
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.
More scripts in Miscellaneous
Something wrong with this script? Report it.
Have an idea?
Sign in to ask questions and join the conversation.