Giter VIP home page Giter VIP logo

Comments (9)

vchlum avatar vchlum commented on May 27, 2024 3

Similar feature added, resolved.

from hue-lights.

vchlum avatar vchlum commented on May 27, 2024 1

Hi @Cartas or anybody else!

I am afraid I have bad news regarding this feature. I have implemented the first version of the feature and hit an issue. Turning light on on login works as expected, but turning light off on logout/shutdown/... behaves oddly.

Gnome-shell provides the function disable(). This function should be called on logout, shutdown, or screenlock. AFAIK it is the only suitable place how to hook such an event. I wanted to add a hook for calling the action like 'lights off' in this function. For me, the function seems to be called only on locking the screen (Fedora 33). I checked StackOverflow and it seems like the function is not consistently called on all distributions or all versions of gnome-shell.

Without consistent behavior, I do not want to add the feature anyway. But If anybody knows the reason or how to fix I will be happy to resume the work on this feature.

from hue-lights.

vchlum avatar vchlum commented on May 27, 2024

Hi @Cartas,

Thank you for the idea.

The gnome extensions are enabled on login/wakeup/screen unlock and disabled on logout/sleep/screen lock. So these events could be used for your request. It would mean that selected light(s) would be turned off even on a simple screen lock. Does it sound good to you?

I will think this through. Maybe, I would consider a more general feature. Right now, it is possible to blink on notify. This feature could be redesigned to be able to run tasks on events. Like, run turnon/turnoff/blink on enable/disable/notify/... and more events/tasks could be added in the future.

from hue-lights.

Cartas avatar Cartas commented on May 27, 2024

Thanks for the quick response!

I have a light-strip on the back of my monitor, which I want to be on when usin' my computer and off when not - so sounds like it also triggering with screen locking and unlocking makes it even better! 🎉 I

from hue-lights.

Cartas avatar Cartas commented on May 27, 2024

Ah, that's a real shame. My apologies for getting you to spend your time on something that isn't seemingly possible! 😳

Thank you ever so much regardless! ❤️

from hue-lights.

vchlum avatar vchlum commented on May 27, 2024

Hi, @Cartas once again! I have a slightly different solution for you.

In version 9 of this extension, the support for entertainment areas has been added. In the recent commit, autostart of an entertainment area has been added.

If you have Philips Hue branded bulbs and light strips, you can create an entertainment area in your mobile app. The entertainment area has the attribute "behavior when sync stops" and you can set this attribute to "Off". Now, if the sync would be inactive for 10 seconds, it will turn off the lights in the active entertainment area. This will substitute the missing call of the disabling event. (If the event is called, the entertainment area is disabled immediately)

If you like to test it, you can manually install the version from the main branch, or you can wait for version 10 on e.g.o.

As a side effect, some CPU utilization can be noticed - depends on the level of sync intensity (and for mode 'sync screen' also depends on the number of lights).

from hue-lights.

Cartas avatar Cartas commented on May 27, 2024

Wow, that sounds amazing! Eagerly lookin' forward to givin' it a whirl when v10 comes out.

Thanks for the hard work and actually looking into my request 🙏

from hue-lights.

vchlum avatar vchlum commented on May 27, 2024

Version 10 is out for few days. Please let me know. Do you have more thoughts/ideas on this topic?

from hue-lights.

Cartas avatar Cartas commented on May 27, 2024

@vchlum Ah, my apologies for missin' this completely! 😰

That's great news - thank you ever so much for the hard work and implementation! It works delightfully! 🎉

from hue-lights.

Related Issues (20)

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.