Skip to content

kantmn/Python_Nanoleaf_Ambilight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python_Nanoleaf_Ambilight

Python Script to sync Nanoleaf with Computer Screen Content

This script is intend to capture all colored pixels of you current screen and checks for updates since the last capture. If so it analyzes the main colors, runs some adjustments and sends the color command to the NanoLeaf It should work quite similar with other networked lighting systems if you change the commands regarding my_aurora. The script is also sending the Nanoleaf to sleep mode if there is inactivity, so dont worry.

Limitations

Keep in mind i have limited the area to analyze down to 80% and only analyze 10% of those pixels dueto my slow computer (1x1.4Ghz) Meaning it consumes 10-20% CPU time when running, idle consumption = 0-1%

It should be much faster with a better computer, but there might still be a latency because of the transmission from Computer -> Switch(router) -> WiFi -> Nanoleaf

Demonstration

Run the simple preview video

About

Python Script to sync Nanoleaf with Computer Screen Content

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages