Saiyato / volumio-rotary-encoder-plugin

Simple dual rotary encoder plugin for Volumio 2.x
MIT License
19 stars 6 forks source link

Help adding a features #15

Closed ghost closed 5 years ago

ghost commented 5 years ago

Hello and thanks for this plugin,

I'm trying to add a new features, which is to use rotary 2 to "scroll" into the favorite radio

This has to be sent by websocket, however I can't get the command to work , I've tried

                            self.emitToSocket('playRadioFavourites', '{play:1}');

And a few other ways

What would be the correct way to pass the arguments (play,1) in emitToSocket ?

thanks !