Julusian / node-elgato-stream-deck

A Node.js library for interfacing with the Elgato Stream Deck. https://julusian.github.io/node-elgato-stream-deck/
https://www.npmjs.com/org/elgato-stream-deck
MIT License
163 stars 21 forks source link

function openStreamDeck - argument devicePath is no longer optional #77

Closed djBehen closed 10 months ago

djBehen commented 10 months ago

In version 6.0.0 argument "devicePath" is no longer optional in function "openStreamDeck". If argument excluded in previous versions the first attached stream deck would be used.

If this is intentional, could anyone give an example of how to set a correct path to an attached stream deck?

I'm using node-elegato-stream-deck in an electron application

Julusian commented 10 months ago

You can use the listStreamDecks() method to get some basic info about all of the connected streamdecks. The path property it provides can be passed to openStreamDeck

I appear to have forgotten to update the examples and documentation for the change making devicePath be a required parameter. I shall try and do that soon.

djBehen commented 10 months ago

Thanks a lot Julusian, and great work with node-elgato-stream-deck, very useful.