Code Monkey home page Code Monkey logo

gnome-shell-extension-elgato-light-control's People

Contributors

betaconnector avatar cluster2a avatar mrnugget avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

gnome-shell-extension-elgato-light-control's Issues

GNOME 41 Support

it would be great if this would work on GNOME 41 - it stopped working when I upgraded to Fedora 35 - the message says

Error: Requiring Vte, version none: Requiring namespace 'Gtk' version '3.0', but '4.0' is already loaded

Stack trace:
  @/home/abradshaw/.local/share/gnome-shell/extensions/[email protected]/prefs.js:21:54
  _init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:216:33
  OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:128:33
  asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:115:22
  run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:177:20
  main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
  run@resource:///org/gnome/gjs/modules/script/package.js:206:19
  start@resource:///org/gnome/gjs/modules/script/package.js:190:8
  @/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17

Error on newer ubuntu

i am running ubuntu 21.10 and i get this failure:

Error: Requiring Vte, version none: Requiring namespace 'Gtk' version '3.0', but '4.0' is already loaded

any quick fix for this?

Use Avahi to discover lights?

elgato.js.txt
Nice extension! Looking at it, I wondered if the npm requirement and the need to install node modules could be avoided. It seemed to me that tallking to Avahi over D-Bus (should be installed on most Linux systems) would allow doing this natively in GObject code without having to resort to npm and mdns-js. I did some experiments with this.

I'll attach a script here that implements a persistent browser for Elgato lights on the network. (Run as gjs elgato.js) I spent quite a bit more time on this than I expected to really try and get the corner cases right:

  • Caching inside Avahi based on the TTL of the returned records caused confusion when turning lights off and on while the browser is running. (Unlike some mDNS devices, the lights don't send "goodbye" messages when being turned off.) To deal with this, I made the code periodically retry looking up address records.
  • IPv4 and IPv6 responses needed to be sorted out and combined into a coherent picture.

Details in a comment in the code. This could could be re-simplified to just do a single-pass scan, if something more like the current UI was desired, but I think its nice if the extension "just works" without having to go into the preferences and rescan if the light gets a new DHCP address or something.

Feel free to adapt this code to your purposes, and let me know if it doesn't work :-)

Brightness and light temperature controllers missing

Hello, first of all thanks for this Gnome extension!

I've installed the extension, I've been able to add my Elgato Key Light and turn it on and off.

However, the controls for light temperature and brightness are not shown. You can see that from the screenshot below.

no controls

This is currently my setup:

  • openSUSE Leap 15.3
  • Gnome 3.34.7 - I know this is not one of the versions that have been tested

Do you have any idea about what might be going on? Thanks again!

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.