A simple emulator for the Stream Deck Application to allow plugin developers to develop, test, and debug their plugins without requiring a physical Stream Deck device.
In order to be able to run this emulator, you will need to have Node.js installed. The most recent LTS is suggested.
- Clone the repository using git:
git clone https://github.com/FritzAndFriends/StreamDeckEmulator.git
. - Change directory to the repository:
cd StreamDeckEmulator
. - Run
npm install
. - Create a copy of the .env_sample file:
cp .env_sample .env
. - Update
.env
file to set your environment specific values.- Update the value of
BUILD_PATH
to be the build output path of your plugin's executable. - Update the value of
WINEXE_NAME
orOSXEXE_NAME
to be the filename of the your plugin's executable.
- Update the value of
- Run
npm start
to launch the emulator.
- Open a command prompt/terminal/shell and navigate to the current directory.
- Start the emulator with the command
npm start
- When you are done, press Ctrl+C to stop the emulator.
At this time, the emulator only supports emulating a button press, which results in a keyUp
event with its respective payload.
To simulate the keyUp
event, press the B button on your keyboard.