GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com β€” GitHub - 1emrecoskun/ble-led-sync: Audio- and screen-reactive control for Bluetooth LE LED strips (LEDBLE / Triones). No cloud, no accounts, no paid APIs.

BranchesTags
Open more actions menu

Latest commit

 

History

9 Commits
9 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
docs
docs
 
 
led_sync
led_sync
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
BENIOKU.md
BENIOKU.md
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
KUR.sh
KUR.sh
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
TESHIS.sh
TESHIS.sh
 
 
icon.svg
icon.svg
 
 
pyproject.toml
pyproject.toml
 
 
requirements.txt
requirements.txt
 
 
run.sh
run.sh
 
 

Repository files navigation

BLE LED Sync β€” Audio & Screen Reactive LED Strip Controller

🌐 Language: English | Türkçe

A small Linux desktop app that drives a cheap Bluetooth LE LED strip (LEDBLE- / Triones family) from your PC: it follows the screen color, reacts to system audio, or blends both. No cloud, no accounts, no paid APIs.

Built for the common unbranded BLE RGB strips sold as "LEDBLE-XXXX", "Triones", "Magic Blue", "Happy Lighting", etc. (GATT characteristic 0000ffe1-0000-1000-8000-00805f9b34fb).

Features

  • SES mode β€” audio-reactive (FFT bands β†’ RGB, beat envelope).
  • EKRAN mode β€” screen color (X11 capture, center crop).
  • SES + EKRAN (hybrid) β€” screen color with audio-driven brightness pulse.
  • Turkish / English interface with an in-app language switch (auto-detected on first run).
  • System tray (Ayatana AppIndicator), small ~440Γ—392 window.
  • Auto-start in SES mode on login (optional, toggle in UI).
  • Brightness / sensitivity sliders, persisted.
  • Red connection test (verify hardware without audio).
  • Diagnostics report + rotating log.
  • Reconnect with backoff; handles stale bluez connections.

Protocol

Power on : 7E FF 04 01 FF FF FF FF EF
RGB      : 7E FF 05 03 R G B FF EF
Char UUID: 0000ffe1-0000-1000-8000-00805f9b34fb
Scan name: LEDBLE-XXXXXX  (set your strip's name in the UI: β‹― β†’ Audio output / screen settings)

Platform support

  • Linux (X11): full β€” audio + screen sync, tray icon, autostart. Wayland: audio only (screen capture needs X11). A tray needs a StatusNotifierItem host: GNOME has one only with its AppIndicator extension.
  • Windows: BLE control, red test and screen sync are implemented; audio capture is not (Linux-only). Tray (pystray, optional) and autostart (per-user Run key) come from desktop-lifecycle; lightly tested.
  • macOS: BLE control, red test and screen sync are implemented; audio capture is not (that would need BlackHole plus a capture backend that does not exist yet). Tray (pystray, optional) and autostart (LaunchAgent) come from desktop-lifecycle; lightly tested.

Non-Linux support is young and lightly tested β€” bug reports are welcome.

Requirements

  • Linux (X11 session for screen capture; audio via a PulseAudio/PipeWire monitor source)
  • Windows / macOS: Python 3.11+, Bluetooth adapter, screen capture permissions
  • Python 3.11+
  • System: python3-tk (GUI), python3-gi + GTK3 (tray, optional), pulseaudio-utils (Linux audio), bluez (Linux Bluetooth)
  • Bluetooth adapter + a LEDBLE/Triones strip
  • desktop-lifecycle (installed automatically; it owns the tray, the single-instance lock, the menu entry and autostart)

Install (Linux Mint / Ubuntu family)

# extract the archive, then:
bash KUR.sh

The installer sets up a venv, installs bleak, mss, numpy, desktop-lifecycle, the system packages (python3-tk, python3-gi, GTK3, AppIndicator when available), a menu entry and autostart. Missing optional pieces only produce a warning.

At login it starts hidden: the engine scans for the strip and runs the last mode, with no window on screen. Opening BLE LED Sync from the menu brings the window up; closing it hides it again. To stop the process, use β‹― β†’ Quit completely.

Any platform (development install):

python3 -m pip install .          # installs the `ble-led-sync` command
ble-led-sync                      # or: python3 -m led_sync.app

Run manually from a checkout:

python3 -m venv .venv && .venv/bin/pip install -r requirements.txt
./run.sh               # shows window
./run.sh --background  # start hidden: LED runs, no window

Tests

python3 -m unittest discover -s tests -v

55 unit tests (protocol, color, beat envelope, engine, desktop integration).

Security note

Cheap BLE LED controllers in this family usually accept unauthenticated GATT writes from any client in radio range. This tool only controls devices you own. See SECURITY.md.

Documentation

  • docs/protocol-reversing.md β€” BLE protocol, packet format, security observations (useful for IoT / red-team research).
  • docs/troubleshooting.md β€” device not found, Wayland, tray, hidden start, logs.
  • SECURITY.md β€” responsible use and IoT security notes.
  • CONTRIBUTING.md β€” dev setup and guidelines.
  • CHANGELOG.md β€” what changed between versions.

Disclaimer

This software is provided "as is", without warranty of any kind, express or implied. The author(s) shall not be liable for any direct, indirect, incidental, special, exemplary, or consequential damages arising from the use of this software. This tool is intended only for controlling devices you own. Unauthorized access to or control of devices you do not own is illegal and is the sole responsibility of the user. The author(s) bear no responsibility for malicious or unlawful use.

Built with

The window, the tray icon and the audio engine are this project's own work. The unglamorous parts (single-instance lock, XDG paths, menu entry, autostart, Wayland-aware tray detection, rotating logs) come from desktop-lifecycle, a small dependency-free library extracted from this application.

Privacy

  • Audio is read from the monitor source of your own output device; the microphone is never used.
  • Screen mode reads your own virtual display; nothing is stored and nothing is uploaded.
  • There is no account, no telemetry, no analytics and no network client other than the local Bluetooth connection to your strip.
  • The diagnostics report masks Bluetooth addresses before you paste it into an issue, but it still contains file paths and operating system details. Read it before you share it.

Who made this

Built by Emre Coşkun.

License and names

MIT β€” see LICENSE. The licence covers the code, not the project name or icon, and it grants no warranty. "LEDBLE" and "Triones" belong to their respective owners; this project is not affiliated with them.

About

Audio- and screen-reactive control for Bluetooth LE LED strips (LEDBLE / Triones). No cloud, no accounts, no paid APIs.

Topics

audio-reactiveble-ledbluetoothiotled-striplinuxmacospythonreverse-engineeringscreen-syncwindows

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 β€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Γ—600. No cookies required.