I followed the instructions completely.
If I use now the start command I get the following indicated.
sudo node server.js
error:
^Cpi@raspberrypi:~/pimatic-app/node-sonos-http-api $ sudo node server.js
2018-05-23T15:32:42.409Z INFO Could not find file /home/pi/pimatic-app/node-sonos-http-api/settings.json
2018-05-23T15:32:43.386Z INFO Presets loaded: { example:
{ players:
[ { roomName: 'Bathroom', volume: 10 },
{ roomName: 'Kitchen', volume: 10 },
{ roomName: 'Office', volume: 10 },
{ roomName: 'Bedroom', volume: 10 },
{ roomName: 'TV Room', volume: 15 } ],
playMode: { shuffle: true, repeat: 'all', crossfade: false },
pauseOthers: false } }
2018-05-23T15:32:46.772Z INFO http server listening on 0.0.0.0 port 5005
I take the command from @sweebee I get the following error in putty
^Cpi@raspberrypi:~/pimatic-app/node-sonos-http-api $ sudo node server.js
2018-05-23T15:34:35.418Z INFO Could not find file /home/pi/pimatic-app/node-sonos-http-api/settings.json
2018-05-23T15:34:36.403Z INFO Presets loaded: { example:
{ players:
[ { roomName: 'Bathroom', volume: 10 },
{ roomName: 'Kitchen', volume: 10 },
{ roomName: 'Office', volume: 10 },
{ roomName: 'Bedroom', volume: 10 },
{ roomName: 'TV Room', volume: 15 } ],
playMode: { shuffle: true, repeat: 'all', crossfade: false },
pauseOthers: false } }
2018-05-23T15:34:39.843Z INFO http server listening on 0.0.0.0 port 5005
2018-05-23T15:34:41.072Z ERROR
TypeError: Buffer.alloc is not a function
at FileTokenizer.AbstractTokenizer (/home/pi/pimatic-app/node-sonos-http-api/node_modules/music-metadata/node_modules/strtok3/lib/AbstractTokenizer.js:7:33)
at new FileTokenizer (/home/pi/pimatic-app/node-sonos-http-api/node_modules/music-metadata/node_modules/strtok3/lib/FileTokenizer.js:20:28)
at /home/pi/pimatic-app/node-sonos-http-api/node_modules/music-metadata/node_modules/strtok3/lib/index.js:53:24
can not find the mistake