czimbortibor / linux-hue-sync

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HueSync (working title)

Anything might change. In a gist: I need an app on my linux system to be able to use the Philips Hue Entertainment. Official is non-existent, other solutions to my needs havent been found yet. All in all: project for fun with an overcomplicated stack.

Plan of attack

  • Http client in .netcore to communicate with the Hue Bridge:
    • make it async (adjust something in the python usage)
  • get a screenshot (main display for now):
    • python implementation to grab screenshots as that seems easier and libraries are present
    • some fast, low-level, closest-to-graphics app to grab screenshots: partly done with Xlib, but results not satisfactory
  • implement color syncing in the most basic way: grab a screenshot from the main display and determine the dominant color:
    • calculate the dominant color on an image
    • convert result to the correct color space needed for the bulbs
      • double check
    • figure out calling python code from .netcore without external Process calls
  • implement color syncing in a more advanced way: map the display with the entertainment area/light bulbs

Getting Started

"works on my machine" for now.

The repo includes a custom built pythonnet dll, could not manage to get it working in the official way... src/localpackages/Python.Runtime.dll

Prerequisites

License

This project is licensed under the MIT License - see the LICENSE file for details

About

License:MIT License


Languages

Language:C# 79.0%Language:Python 15.7%Language:C++ 5.3%