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 - nesdeq/fastsync: Sync Philips Hue lights to your screen on Linux. Wayland-native via PipeWire and the XDG portal — no X11, no display-capture hacks.

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
config.example.json
config.example.json
 
 
hue_screen_sync.py
hue_screen_sync.py
 
 
hue_setup.py
hue_setup.py
 
 

Repository files navigation

FastSync

Sync Philips Hue lights with screen colors on Linux. Uses PipeWire/XDG portal for Wayland-native capture.

Dependencies

# Arch
pacman -S python-dbus python-gobject python-numpy gstreamer gst-plugins-base

# Debian/Ubuntu
apt install python3-dbus python3-gi python3-numpy gstreamer1.0-tools gstreamer1.0-plugins-base

# pip (if needed)
pip install dbus-python PyGObject numpy

Optional (for bridge discovery):

pip install zeroconf requests

Setup

python hue_setup.py
  1. Discovers bridges on network (cloud API + mDNS)
  2. Press bridge button when prompted
  3. Select which light to sync

Config saved to config.json.

Run

python hue_screen_sync.py

Select screen/monitor when portal dialog appears. Ctrl+C to stop.

Config

Edit config.json:

{
  "bridge_ip": "192.168.1.x",
  "api_key": "your-api-key",
  "light_id": "1",
  "update_interval_ms": 100,
  "smoothing_factor": 0.3,
  "screen_portion": 0.33,
  "saturation_boost": 1.4,
  "warmth": 0.03
}
Key Default Notes
update_interval_ms 100 Capture rate (ms)
smoothing_factor 0.3 EMA coefficient, lower = smoother transitions
screen_portion 0.33 Bottom % of screen to sample
saturation_boost 1.4 Color saturation multiplier
warmth 0.03 Shift toward warm (red-ish) tones

How it works

Screen -> PipeWire -> GStreamer (64x36 RGB) -> bottom region avg
-> sRGB to CIE xy -> saturation/warmth adjust -> EMA smoothing
-> Hue bridge (HTTP PUT, coalesced @ 60Hz max)
  • XDG portal for screen access (works on Wayland)
  • Threaded HTTP sender to avoid blocking capture loop
  • D65 white point fallback for dark/black screens

License

GPLv2 - see LICENSE

About

Sync Philips Hue lights to your screen on Linux. Wayland-native via PipeWire and the XDG portal — no X11, no display-capture hacks.

Topics

ambient-lightinggstreamerhuelinuxphilips-huepipewirepythonscreen-syncsmart-homewaylandxdg-desktop-portal

Resources

Readme
GPL-2.0 license
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — 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.