2026-10-17 12:19:31 +02:00
2026-03-21 01:22:32 +01:00
2026-10-16 18:04:55 +02:00
2026-03-21 05:59:37 +01:00
2026-03-21 01:20:08 +01:00
2026-10-17 12:19:31 +02:00

Table of Content

  1. What's this project?
  2. Web UI
  3. BusyLight Buddy companion app
  4. Stream Deck plug-in
  5. BusyLight API
  6. MuteDeck integration
  7. Electronic parts
  8. Firmware installation
  9. Building the precompiled files (.mpy)
  10. 3D files - Enclosure
  11. Wiring / Soldering
  12. 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
busylight and stream deck busylight roll

show case

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 ! 😄
Web 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.

busylight-buddy-screenshot

Stream Deck plug-in

You can download the Stream Deck plugin to control your BusyLight:

marketplace button

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 | Hz
  • duration: total blink duration | float | seconds | 0 = endless
  • remains: 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 ON and camera ON.
  • away mode (Yellow color) when entering a meeting with Mic OFF and camera ON.
  • away mode (Yellow color) if the mic is muted during a meeting.
  • available mode (Green color) when exiting/closing a meeting.
MuteDeck Configuration
MuteDeck config

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 .py files in /lib/microdot on the ESP32: they take precedence over the .mpy files.

⚠️ 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:

file-copy

💡 Memory tip: the application code lives in busylight.py. To save RAM at boot, copy the precompiled busylight.mpy to the ESP32 instead of busylight.py (if both are present, MicroPython loads the .py one, so delete busylight.py from the device). See Building the precompiled files (.mpy) to rebuild it after modifying busylight.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 pip on your computer (check with python3 --version).
  • mpy-cross matching the firmware version: the .mpy format is tied to the MicroPython version. With MicroPython v1.24.x on the ESP32, use mpy-cross v1.24.x (.mpy format v6.3). A mismatched version produces ValueError: incompatible .mpy file when 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=xtensawin targets the ESP32 CPU architecture (Xtensa). Use -march=rv32imc instead 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

  1. Copy ESP32/busylight.mpy to the root of the ESP32 file system (e.g. with Thonny).
  2. Make sure busylight.py is not present on the ESP32.
  3. 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.

3D files

Wiring / Soldering

wiring-soldering

You can see a final assembly image here.

Tools & libs

Thonny

https://thonny.org

Micropython

https://micropython.org

Microdot

https://microdot.readthedocs.io

JSColor

https://jscolor.com

S
Description
Let people know if they can bother you with light signals! A simple to build, nice looking, portable DIY BusyLight.
Readme MIT
18 MiB
0 Stars 1 Watchers 0 Forks
v0.1.1
Latest
2026-10-17 12:07:33 +02:00
Languages
Python 56.2%
HTML 29.6%
JavaScript 14.2%