-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Conversation
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
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
Hi @timrogers 👋 I tried to run this extension but I just get this message (I'm in Ventura(?)) I can't tell yet if it will work, can you check that? |
@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? |
Not at all, feel free to ask 😊 Yes I'm running on a M1 😊 |
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 😊 |
I'm closing this due to inactivity; feel free to comment in the thread when you're ready to continue working on it 🙂 |
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 ownlitra-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 customprebuild
/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
npm run build
and tested this distribution build in Raycastassets
folder are used by the extension itselfREADME
are placed outside of themetadata
folder