Websocket API not working for me - any log file available


i want to use the web service api for the integration of volumio into my home automation system.

But when i install a webservice client and try to connect to ws://:3000 i get no answer. Making a telnet to port 3000 is possible so no firewall or connection issue (i hope)

is there any log file other then /var/log/volumio.log where i can find the web socket infos on the volumio?

I’m using a raspi 3 with the actual volumio2 image!

Many thanks

Hi again,

i did some tracing with wireshark/tcpdump:
I kann see the pakets on volumio server:
GET / HTTP/1.1
Host: 192.168.xxx.xxx
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Key: Jh0V+O90QzxtIPJZ
Sec-WebSocket-Version: 13

but no answer from volumio, i expect something like

HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: xxxxx

Any idea?


We use socket.io, which is a websocket protocol (more or less). So use socket.io, not generic websocket. See here:


just managed to get it working with a php-class for socket.io.

But i recognized another problem:
Setting the volume to 10 with

$socketio->send('', 3000, 'volume', '10')){

is working

2017-09-07T12:09:58.874Z - info: [1504786198874] ---------------------------- Client requests Volume 10 2017-09-07T12:09:58.877Z - info: [1504786198876] VolumeController::SetAlsaVolume10 2017-09-07T12:09:58.895Z - info: [1504786198894] ------------------------------ 20ms 2017-09-07T12:09:58.909Z - info: [1504786198909] VolumeController::Volume 10 2017-09-07T12:09:58.912Z - info: [1504786198911] CoreStateMachine::pushState 2017-09-07T12:09:58.913Z - info: [1504786198912] CoreStateMachine::getState .....

but setting it to (lets say) 30

$socketio->send('', 3000, 'volume', '30')){

makes the volume go up to 100

[[b]1504786506884] ---------------------------- Client requests Volume 30 2017-09-07T12:15:06.892Z - info: [1504786506889] VolumeController::SetAlsaVolume30[/b] 2017-09-07T12:15:06.938Z - info: [1504786506935] ------------------------------ 51ms 2017-09-07T12:15:06.947Z - info: Mpd Status Update: mixer 2017-09-07T12:15:06.952Z - info: [1504786506948] ---------------------------- MPD announces state update 2017-09-07T12:15:06.961Z - info: [1504786506953] ControllerMpd::getState 2017-09-07T12:15:06.964Z - info: [1504786506962] ControllerMpd::sendMpdCommand status 2017-09-07T12:15:06.967Z - info: [1504786506965] sending command... [b]2017-09-07T12:15:06.974Z - info: [1504786506972] VolumeController::Volume 100[/b] 2017-09-07T12:15:06.977Z - info: [1504786506975] CoreStateMachine::pushState .............

Any idea???

Send it as number