Skip to content

Commit

Permalink
Add to documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ybizeul committed Nov 24, 2020
1 parent 041e72a commit a96ba74
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,24 @@ Lastly, drag a **websocket out** node and make sure it is configured for the sam

### Testing

If you're lucky enough, when you push the button you assigned for the StreamDeckWS plugin with the correct URL to Node-RED, you should see an image replace the default icon, and be replaced every time you push it.
If you're lucky enough, when you push the button you assigned for the StreamDeckWS plugin with the correct URL to Node-RED, you should see an image replace the default icon, and be replaced every time you push it.

You can even go crazy if you'd like...

![nodered5](doc/images/nodered5.png)

### Going further

Now, wouldn't it be cool if the image appeared initially when the key is displayed ?

Just add a **Switch** node parallel to the existing *Key up* node like this :

![nodered6](doc/images/nodered6.png)

This one must match the `willAppear` event :

![nodered7](doc/images/nodered7.png)

Anytime the key becomes visible it will fetch a new image

![video](doc/images/demo.gif)

0 comments on commit a96ba74

Please sign in to comment.