Toggle random with socketio

Hi guys,

I’m trying to toggle Random with socketio/websocketio but can’t figure it out.

This is what I have volumioIO.emit('browseLibrary', {'uri': 'music-library/Random'})

Which doesn’t work.

Cheers

Are you sure that endpoint exists? And are you trying to fetch contents for browsing, instead of randomizing playback of the queue - as in clicking the random button on the left:

image

I’m just trying to figure it out from the Docs. I want to toggle the random button you mentioned.

volumioIO.emit('setRandom', { value: true });
2 Likes

Thanks bud.