Skip to content
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

Add extension for controlling the Logitech Litra Glow light #3019

Closed
wants to merge 2 commits into from
Closed

Add extension for controlling the Logitech Litra Glow light #3019

wants to merge 2 commits into from

Conversation

timrogers
Copy link
Contributor

@timrogers timrogers commented Sep 25, 2022

This adds a new Raycast extension for turning on and off the Logitech Litra Glow light.

The light connects via USB, and this extension uses node-hid under the hood to send instructions to the device. node-hid is wrapped by my own litra-glow npm package.

Note that node-hid requires some funky binaries for its operation. With some great help from @GastroGeek in Slack, I've managed to get those binaries working with a custom prebuild/predev script which moves the files where they need to be, but I don't know whether this solution will work if this extension is in the Store, how robust it will be or whether it will work for people without an M1 Mac.

Checklist

This adds a new Raycast extension for turning on and off the
[Logitech Litra Glow][1] light.

The light connects via USB, and this extension uses [`node-hid`][2]
under the hood to send instructions to the device. `node-hid` is
wrapped by my own [`litra-glow`][3] npm package.

Note that `node-hid` requires some funky binaries for its
operation. With some [great help][4] from @GastroGeek in Slack,
I've managed to get those binaries working with a custom
`prebuild`/`predev` script which moves the files where they need
to be, but I don't know whether this solution will work if this
extension is in the Store, how robust it will be or whether it
will work for people without an M1 Mac.

[1]:
https://www.logitech.com/en-gb/products/lighting/litra-glow.946-000002.html
[2]: https://github.com/node-hid/node-hid
[3]: https://github.com/timrogers/litra-glow
[4]:
https://raycastcommunity.slack.com/archives/C02HEMAF2SJ/p1664118805390089
@raycastbot raycastbot added the new extension Label for PRs with new extensions label Sep 25, 2022
@raycastbot
Copy link
Collaborator

Congratulation on your new Raycast extension! 🚀

We will review it shortly. Once the PR is approved and merged, the extension will be available on the Store.

This follows the checklist requirement that:

> I checked that assets used by the README are placed outside of the
metadata folder
@pernielsentikaer
Copy link
Collaborator

Hi @timrogers 👋

I tried to run this extension but I just get this message (I'm in Ventura(?))

CleanShot 2022-09-29 at 13 31 00@2x

I can't tell yet if it will work, can you check that?

@pernielsentikaer pernielsentikaer self-assigned this Sep 29, 2022
@timrogers
Copy link
Contributor Author

@pernielsentikaer That definitely looks like an issue with the native code required by this extension. I had this problem locally before I added the pre-build step to copy the built binary into the right directory. Are you running on an M1 Mac, if you don't mind me asking?

@pernielsentikaer
Copy link
Collaborator

Not at all, feel free to ask 😊 Yes I'm running on a M1 😊

@stale
Copy link

stale bot commented Nov 17, 2022

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs in the next 7 days to keep our backlog clean 😊

@stale stale bot added the status: stalled Stalled due inactivity label Nov 17, 2022
@stale
Copy link

stale bot commented Nov 25, 2022

I'm closing this due to inactivity; feel free to comment in the thread when you're ready to continue working on it 🙂
You can also catch us in Slack if you want to discuss.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new extension Label for PRs with new extensions status: stalled Stalled due inactivity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants