Table of Content
- What's this project?
- Web UI
- BusyLight Buddy companion app
- Stream Deck plug-in
- BusyLight API
- MuteDeck integration
- Electronic parts
- Firmware installation
- Building the precompiled files (.mpy)
- 3D files - Enclosure
- Wiring / Soldering
- Tools & libs
What's this project?
Let people know if they can bother you with light signals!
A cheap, simple to build, nice looking and portable DIY Busy Light.
It comes with a with a simplistic but neat Web UI and a simple (but hopefully convenient) Rest API.
| Controlled by Stream Deck with REST API | Light roll |
|---|---|
![]() |
![]() |
Web UI
A very simplistic but neat UI is available on port 80 (thanks @nicolaeser).
Default hostname is igox-busylight.
You can try to reach the web UI @ http://igox-busylight.local.
| What an neat UI ! 😄 |
|---|
![]() |
BusyLight Buddy companion app
BusyLight Buddy is a free, open-source multiplatform companion app to control your BusyLight from your phone or computer — no browser needed.
Available for Android, macOS and Windows.
It features quick status presets, a custom color picker with saveable presets, a brightness slider, and background polling to keep the UI in sync with the device.
Stream Deck plug-in
You can download the Stream Deck plugin to control your BusyLight:
Or directly from busyLight-streamdeck-pluing repository.
BusyLight API
End points
| Path | Method | Parameter | Description |
|---|---|---|---|
| /api/color | POST | color JSON object |
Set the BusyLight color according to the color object passed in the request body. Return a status object. |
| /api/color | GET | n/a | Retreive the color currently displayed by the BusyLight. Return a color object. |
| /api/brightness | POST | brightness JSON object |
Set the BusyLight brightness according to the brightness object passed in the request body. Return a status object. |
| /api/brightness | GET | n/a | Retreive the BusyLight brightness. Return a brightness object. |
| /api/status/on | POST / GET | n/a | Light up the BusyLight. White color. Return a status object. |
| /api/status/available | POST / GET | n/a | Set the BusyLight in available mode. Green color. Return a status object. |
| /api/status/away | POST / GET | n/a | Set the BusyLight in away mode. Yellow color. Return a status object. |
| /api/status/busy | POST / GET | n/a | Set the BusyLight in busy mode. Red color. Return a status object. |
| /api/status/off | POST / GET | n/a | Shutdown the BusyLight. Return a status object. |
| /api/status | GET | n/a | Retreive the current BusyLight status. Return a status object. |
| /api/blink | POST | blinkParam JSON object |
Make the BusyLight blink. Preserves current color, status and brightness. Return a status object. |
| /api/blink | GET | n/a | Retrieve the current BusyLight blink status. Return a blinkStatus object. |
| /api/blink/stop | POST | n/a | Stop the BusyLight blinking and restore previous state. Return a status object. |
| /api/debug | GET | n/a | Retreive the full BusyLight status. |
| /ws/status | WebSocket | n/a | Subscribe to BusyLight status changes. Sends the current status object on connection, then a status object on every change (status, color, brightness, blink start/end) and every 10 seconds as a heartbeat. |
JSON objects
color object
{
"r": 255,
"g": 0,
"b": 127,
"brightness": 0.5
}
r: RED color | integer | [0 .. 255]
g: GREEN color | integer | [0 .. 255]
b: BLUE color | integer | [0 .. 255]
brightness: LED brightness (optional) | float | [0.0 .. 1.0]
brightness object
{
"brightness": 0.5
}
brightness: LED brightness | float | [0.0 .. 1.0]
blinkParam object
{
"frequency": 2,
"duration": 5.0,
frequency: blink frequency | integer | Hz
duration: total blink duration | float | seconds | 0 = endless
blinkStatus object
{
"isblinking": true,
"frequency": 2,
"duration": 5.0,
"remains": 3.2
}
isblinking: whether the BusyLight is currently blinking | boolean
frequency: blink frequency | integer | Hz
duration: total blink duration | float | seconds | 0 = endless
remains: remaining blink time | float | seconds | 0 if endless
status object
{
"status": "<STATUS>",
"color": {
"r": 255,
"g": 0,
"b": 110
},
"brightness": 0.1
"isBlinkning": false,
"blinkParameters": {
"frequency": 2,
"duration": 5.0,
"remains": 3.2
}
}
<STATUS> : on | off | available | away | busy | colored
color:
r: RED color | integer | [0 .. 255]g: GREEN color | integer | [0 .. 255]b: BLUE color | integer | [0 .. 255]
brightness: LED brightness (optional) | float | [0.0 .. 1.0]
isblinking: whether the BusyLight is currently blinking | boolean
blinkParameters
frequency: blink frequency | integer | Hzduration: total blink duration | float | seconds | 0 = endlessremains: remaining blink time | float | seconds | 0 if endless
MuteDeck integration
The POST api/mutedeck-webhook endpoint aims to collect MuteDeck webhook callbacks.
It will automatically switch to the BusyLight in:
- busy mode (Red color) when entering a meeting with Mic
ONand cameraON. - away mode (Yellow color) when entering a meeting with Mic
OFFand cameraON. - away mode (Yellow color) if the mic is muted during a meeting.
- available mode (Green color) when exiting/closing a meeting.
| MuteDeck Configuration |
|---|
![]() |
Electronic parts
| Parts | Links (Amazon - not affiliated) |
|---|---|
| Micro-controler | D1 ESP32 Mini NodeMCU - USB C version |
| Led rings (x2) | AZDelivery 5 x LED Ring 5V RGB compatible avec WS2812B 12-Bit 38mm |
| Battery | Anker PowerCore 5000mAh |
| USB A to USB C adapter | USB A to USB C adapter |
Firmware installation
(1) Flash your ESP32 with Micropython v1.24.1.
(2) The microdot v2.0.6 library is provided precompiled (.mpy) in ESP32/lib/microdot and is installed with step (4). Precompiled modules are required: compiling the Microdot sources on the ESP32 at boot exhausts the memory needed by the WIFI/network stack.
⚠️ If Microdot was previously installed with Thonny's package manager, delete the
.pyfiles in/lib/microdoton the ESP32: they take precedence over the.mpyfiles.
⚠️ Compatibility note: MicroPython v1.27 is not compatible with Microdot due to breaking changes in the underlying ESP-IDF v5.5. Use MicroPython v1.24.1 with Microdot v2.0.6.
(3) Edit the Configuration section in the boot.py file.
(4) Copy the content of ESP32 folder with the modified boot.py file to the root of your ESP32 file system. Again, can easily be done using Thonny:
💡 Memory tip: the application code lives in
busylight.py. To save RAM at boot, copy the precompiledbusylight.mpyto the ESP32 instead ofbusylight.py(if both are present, MicroPython loads the.pyone, so deletebusylight.pyfrom the device). See Building the precompiled files (.mpy) to rebuild it after modifyingbusylight.py.
Done!
Building the precompiled files (.mpy)
busylight.mpy is generated from busylight.py using mpy-cross, the MicroPython cross-compiler. It must be rebuilt every time busylight.py is modified, otherwise the ESP32 keeps running the previous code.
Prerequisites
- Python 3.8+ with
pipon your computer (check withpython3 --version). mpy-crossmatching the firmware version: the.mpyformat is tied to the MicroPython version. With MicroPython v1.24.x on the ESP32, usempy-crossv1.24.x (.mpyformat v6.3). A mismatched version producesValueError: incompatible .mpy filewhen importing on the device.
Install mpy-cross
Using a dedicated virtual environment is recommended, to avoid conflicts with other Python packages.
macOS / Linux:
python3 -m venv ~/.venvs/mpy-cross
source ~/.venvs/mpy-cross/bin/activate
pip install "mpy-cross>=1.24,<1.25"
mpy-cross --version
Windows (PowerShell):
py -3 -m venv $HOME\.venvs\mpy-cross
& $HOME\.venvs\mpy-cross\Scripts\Activate.ps1
pip install "mpy-cross>=1.24,<1.25"
mpy-cross --version
mpy-cross --version must print something like MicroPython v1.24.1 ... mpy-cross emitting mpy v6.3.
Build busylight.mpy
From the root of this repository (with the virtual environment activated):
mpy-cross -march=xtensawin ESP32/busylight.py
This creates (or overwrites) ESP32/busylight.mpy. No output means success; syntax errors in busylight.py are reported with their line number.
-march=xtensawintargets the ESP32 CPU architecture (Xtensa). Use-march=rv32imcinstead for RISC-V based boards (ESP32-C3 / C6).- Use
-o <path>to choose another output file, e.g.mpy-cross -march=xtensawin -o /tmp/busylight.mpy ESP32/busylight.py.
Deploy and check
- Copy
ESP32/busylight.mpyto the root of the ESP32 file system (e.g. with Thonny). - Make sure
busylight.pyis not present on the ESP32. - Reset the ESP32. At startup, the console should print a line like
Memory: python heap free ... B, IDF heap free ... B.
To confirm the precompiled module is the one being loaded, run in the ESP32 REPL: import busylight; print(busylight.__file__) (it must end with .mpy).
Rebuilding Microdot (optional)
The precompiled Microdot files in ESP32/lib/microdot only need to be rebuilt when changing the Microdot version:
pip download microdot==2.0.6 --no-deps -d /tmp/microdot
unzip -o /tmp/microdot/microdot-2.0.6-py3-none-any.whl -d /tmp/microdot/src
for f in __init__ microdot helpers websocket; do
mpy-cross -march=xtensawin -o ESP32/lib/microdot/$f.mpy /tmp/microdot/src/microdot/$f.py
done
3D files - Enclosure
All the required 3D files (STLs and f3d project) to 3D print the enclosure are available in the 3D-files-to-print folder.
Wiring / Soldering
You can see a final assembly image here.
Tools & libs
Thonny
Micropython
Microdot
https://microdot.readthedocs.io








