Coder Social home page Coder Social logo

keylight-control's Introduction

Keylight Controller

This is a desktop application to control Elgato Keylights.

Why?

As you may very well be aware, there are already desktop applications for Elgato Keylights, however like most Elgato/Corsair software there are not Linux alternatives, and since I daily drive linux, not having a way to control the lights via my desktop can be quite annoying. So I created this to solve my inconvience.

Installation/Run

At this time the application is distrubuted via an AppImage for maximum distro compatiblity so make sure you have AppImage installed/configured before hand (Most distros have AppImage installed by default). I am working on adding distro specific releases (deb/rpm) in the future.

To download head here and download the Keylight_Controller-x86_64.AppImage file.

keylight-control's People

Contributors

deepsourcebot avatar justinforlenza avatar mhw0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

keylight-control's Issues

The application isn't showing control anymore

Keylight Control worked very fine for 30 minutes after install . The i created a launcher entry for the AppImage and started it maybe a few times and had more than one instance running.
Now (even after system reboot) the application window stays empty, see screenshot.
At the same time i can still control the light via iOS app.

image

When starting from CMD i get following error

'/home/user/Apps/Keylight_Controller-x86_64.AppImage' 
Welcome to Node.js v14.2.0.
Type ".help" for more information.
> (node:6403) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `Keylight_Controller-x86_64.AppImage --trace-deprecation ...` to show where the warning was created)
> 

This is the launcher code, but this should't be the problem

[Desktop Entry]
Name=KeyLightControl
Comment=Elgato Keylight Controller
Exec=/home/user/Apps/Keylight_Controller-x86_64.AppImage
Icon=elgato
Terminal=false
Type=Application
Categories=Education;

Desktop (please complete the following information):

  • OS: Ubuntu 21.10
  • Version: KeylightController 0.1.6

AppImage doesn't work with newer nodejs versions

  • Ubuntu 22.04.1LTS
  • installing node(js) 14.x
  • trying to start Keylight_Controller-x86_64.AppImage simply opens a terminal with the nodejs prompt and warnings.
Welcome to Node.js v14.2.0.
Type ".help" for more information.
> (node:384493) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `Keylight_Controller-x86_64.AppImage --trace-deprecation ...` to show where the warning was created)

Everything seems OK but controls do not work - tool is using wrong ip

Hello

I've tried the appimage and everything seems to be there:

  • The window appears, the icon is in the tray
  • It shows the correct light (Elgato Key Light Air #392C)
  • The Brightness & Temperature as well as Off/On button is there

But pressing / using any of the controls simply does nothing

The light is seen with avahi

Server version: avahi 0.7; Host name: Ganymede.local
E Ifce Prot Name                                          Type                 Domain
+ enp8s0 IPv4 Elgato Key Light Air 392C                     _elg._tcp            local

I've tested with the keylightctl CLI tool and that one works, so communication between the computer and the light is happening
(it can control the light without issue)

I've whipped out Wireshark and I found that for some reason, your app is using the wrong IP (it's trying the IP of a WIFI Access Point I have) while keylightctl is using the correct IP.

It's not connecting, just shows the window with nothing in it.

I have an elgato key light and even after resetting it still won't show up, I can connect to the wifi network but that still doesn't make any difference. I'm on pop-os 20.10 with an Nvidia 1050 ti on 510.54 drivers, It's probably just some stupid setting on my end but if you don't mind any help would be greatly appreciated.

Screenshot from 2022-03-02 19-42-48

Buffer() is deprecated

Thanks for a nice piece of software!

Would it be possible to fix this issue? Or am I doing something wrong? No GUI appears when running the code.

haugerud@lap:~/src/keylight-control$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.3 LTS"

haugerud@lap:/src/keylight-control$ node --version
v10.19.0
haugerud@lap:
/src/keylight-control$ nodejs --version
v10.19.0
haugerud@lap:~/src/keylight-control$ npm --version
6.14.4

haugerud@lap:~/src/keylight-control$ npm run start

[email protected] start /home/haugerud/src/keylight-control
webpack && qode dist/index.js

assets by path assets/.png 26.8 KiB
asset assets/app_icon.png 24.1 KiB [emitted] [from: src/assets/app_icon.png] [copied]
asset assets/bg.png 1.29 KiB [emitted] [from: src/assets/bg.png] [copied]
asset assets/power_off.png 554 bytes [emitted] [from: src/assets/power_off.png] [copied]
asset assets/power_on.png 531 bytes [emitted] [from: src/assets/power_on.png] [copied]
asset assets/bulb.png 271 bytes [emitted] [from: src/assets/bulb.png] [copied]
asset nodegui_core-1ea1e3f425fd036c191347fdd1f2e002.node 7.68 MiB [emitted] (auxiliary name: main)
asset index.js 1.67 MiB [emitted] (name: main)
runtime modules 793 bytes 4 modules
modules by path ./node_modules/ 1.39 MiB 330 modules
modules by path ./src/
.js 10.9 KiB
./src/index.js 5.14 KiB [built] [code generated]
./src/keylight.js 5.75 KiB [built] [code generated]
17 modules
webpack 5.53.0 compiled successfully in 1269 ms
(node:142536) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use qode --trace-deprecation ... to show where the warning was created)

Thank you ❤️

This worked first time, absolutely no hassle. Thank you for publishing this tool ❤️

Command Line Support

Is your feature request related to a problem? Please describe.
I'm wanting to link this up to a StreamDeck - is there a way to interact with the app without hacking it for command line usage?

Describe the solution you'd like
A simple CLI client, or even a client we could hook into.

Describe alternatives you've considered
None at this stage.

Additional context
n/a

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.