Control Musicbee with Node-red

I had asked a question about how to drive the Musicbee audio player with Node-red.

I tried using the Musicbee remote plugin but couldn't get it to work, even though it works perfectly with the dedicated application.

Using the Beekeeper plugin, it's actually quite simple with few commands (Player_PlayPause/Player_PlayNextTrack/Player_PlayPreviousTrack) sent to http://localhost:8080/COMMAND.
With Rhasspy and Node-red, I can now control Musicbee by voice.

Here's a flow for the play/pause command :
[{"id":"838820e3194c8844","type":"http request","z":"2b2676f81a6deb7d","g":"8033f088578c253b","name":"","method":"POST","ret":"txt","paytoqs":"ignore","url":"http://192.168.1.11:8080/Player_PlayPause","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":770,"y":1620,"wires":[[]]},{"id":"5dbd9e13a5d4db15","type":"change","z":"2b2676f81a6deb7d","g":"8033f088578c253b","name":"Play/Pause","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"command\":\"pause\"}","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":550,"y":1620,"wires":[["838820e3194c8844"]]}]

If it helps anyone... :grinning:

1 Like

moved topic to 'share your projects'