New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(notification): add philips hue #681
Conversation
…X/nvidia-snatcher into philips-hue-notifications
…X/nvidia-snatcher into philips-hue-notifications
d1c5150
to
e49c479
Compare
e49c479
to
b89e5fb
Compare
LOL... This is pretty awesome. I'd love to see this come in. If you have any demo to video that would be actually amazing. |
b89e5fb
to
75aebd7
Compare
…X/nvidia-snatcher into philips-hue-notifications
Checks should all be passing now, please let us know if we need to make any changes! |
Sure! https://www.youtube.com/watch?v=EI2fWgsLOkg you are. |
This is what open source is all about 😄 |
Omg... I love it. Thank YOU! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, looks pretty good! Just a couple things and we can get this in!
src/notification/philips-hue.ts
Outdated
.brightness(100) | ||
.rgb(46.27, 72.55, 0); | ||
|
||
const adjustLightsWithAPI = (hueBridge: import('node-hue-api/lib/api/Api')) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer you import the type above and use here.
Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AWESOME! Thank you!
@MattieX, do you mind if I link your video in the README? |
Sure - I've updated it to include the new project name now. Here you are: https://vimeo.com/476083242 |
That's thoughtful of you! Thanks for doing that. I'll add now! |
Refs: #681 (comment) Signed-off-by: Jef LeCompte <jeffreylec@gmail.com>
Description
Added Philips Hue notification support over LAN or Cloud using Node-Hue-Api (See https://www.npmjs.com/package/node-hue-api).
Can set the color of the lights, whether they should blink, and individual light IDs to adjust.
Environment Variables
PHLIPS_HUE_API_KEY
PHLIPS_HUE_LAN_BRIDGE_IP
192.168.x.x
PHLIPS_HUE_LIGHT_IDS
1
,2
PHLIPS_HUE_LIGHT_COLOR
255
,255
,255
PHLIPS_HUE_LIGHT_PATTERN
blink
or emptyblink
is supplied.PHLIPS_HUE_CLOUD_ACCESS_TOKEN
PHLIPS_HUE_CLOUD_REFRESH_TOKEN
PHLIPS_HUE_CLOUD_CLIENT_ID
PHLIPS_HUE_CLOUD_CLIENT_SECRET
Testing
Used
npm run test:notification
after filling in required environment variables, observed the resulting change in Hue lights.New dependencies
node-hue-api