dh1tw / streamdeck Goto Github PK
View Code? Open in Web Editor NEWGolang API for the Corsair / Elgato StreamDeck
License: MIT License
Golang API for the Corsair / Elgato StreamDeck
License: MIT License
I'm trying to get this to work on linux without sudo but it's failing to open the device.
hidapi: failed to open device
I created a /etc/udev/rules.d/51-usb-streamdeck.conf
with the following:
SUBSYSTEM=="usb", ATTR{idVendor}=="0fd9", ATTR{idProduct}=="0060", GROUP="plugdev", TAG+="uaccess"
I've added my user to the plugdev group but it still fails to open the device.
Does anyone have a working config?
I started using this library but I made some modifications.
First, I switched to karalabe/hid
so I could use: SendFeatureReport()
and GetFeatureReport()
Second, the packet to control the brightness is as follows:
0x03, 0x08, perc, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30,
0x69, 0x92, 0x2a, 0xf8, 0x02, 0x00, 0x00,
Where perc
is some int between 0 - 100.
My device is a 15 key Streamdeck and the FW is 1.02.005
To get the firmware using GetFeatureReport
set the report ID to: 0x05
To get the SN the report ID is: 0x07
This was discovered by running the Elgato stream deck software along side Wireshark and USBpcap on Windows 10.
I have been using the following sources as reference (along with this library):
And these references seem to be for older firmware's, hence my reason for opening this issue which is more of an FYI.
Perhaps if I have time I can submit a PR, however as I only have the 15 key deck I do not know if this applies to the others.
Probably the function should just be removed.
When i'm using the lib i always have the following error, even if the stream deck is plugged in :
2021/08/27 13:10:59 no stream deck device found
panic: no stream deck device found
goroutine 1 [running]:
log.Panic(0xc0001bdac8, 0x1, 0x1)
C:/Program Files/Go/src/log/log.go:354 +0xb7
github.com/dh1tw/streamdeck-examples/cmd.icons(0x313d20, 0x819a70, 0x0, 0x0)
C:/Users/schomz/go/src/github.com/dh1tw/streamdeck-examples/cmd/icons.go:32 +0xdc
github.com/spf13/cobra.(*Command).execute(0x313d20, 0x819a70, 0x0, 0x0, 0x313d20, 0x819a70)
C:/Users/schomz/go/src/github.com/spf13/cobra/command.go:860 +0x2c2
github.com/spf13/cobra.(*Command).ExecuteC(0x314720, 0xc00003e000, 0x200000003, 0xc00003e000)
C:/Users/schomz/go/src/github.com/spf13/cobra/command.go:974 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
C:/Users/schomz/go/src/github.com/spf13/cobra/command.go:902
github.com/dh1tw/streamdeck-examples/cmd.Execute()
C:/Users/schomz/go/src/github.com/dh1tw/streamdeck-examples/cmd/root.go:22 +0x38
main.main()
C:/Users/schomz/go/src/github.com/dh1tw/streamdeck-examples/main.go:6 +0x27
Does not work with the current model of the 15 key Stream Deck. I have tried changing the ProductID which makes the hardware detectable but none of the examples run. When I try to run them they just hang indefinitely.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.