Comments (9)
Similar feature added, resolved.
from hue-lights.
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.
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.
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.
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.
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.
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.
Version 10 is out for few days. Please let me know. Do you have more thoughts/ideas on this topic?
from hue-lights.
@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)
- TypeError: this._positionInPanelComboBox is null HOT 3
- IKEA bulb reporting wrong colormode (preventing menu from loading) HOT 5
- Change brightness with scroll wheel HOT 4
- Can't open settings a second time HOT 6
- Notification icon is way bigger then all others HOT 1
- API planned? HOT 2
- Sync is not working HOT 2
- Odd flickering when going full screen on Linux HOT 2
- Gnome 44 is out and hue-lights is marked as incompatible HOT 2
- The sliders are always black instead of the color of the lights HOT 1
- Right clicking on a light broke the app HOT 2
- Allow changing color of an entire zone at once HOT 2
- Add a GitHub link to the "`About`" page HOT 1
- Ubuntu 22.04.3 LTS can't install hue-lights after apt upgrade or git pull HOT 1
- [Suggestion] Improvements to the display/screen sync HOT 2
- Single Screen Selection (1 / Primary Monitor) doesn't work for me.
- Invalid yt link in README.md HOT 1
- Consider using libadwaita? HOT 1
- Gradient lightstrip support HOT 4
- Manual installation suddenly not showing in ubuntu HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hue-lights.