node-sonos-http-api icon indicating copy to clipboard operation
node-sonos-http-api copied to clipboard

install/update to latest version of the api

Open johnnymossin opened this issue 10 years ago • 4 comments

I have installed the api months ago, and wanted to update to latest version (currently running 15.0). tried using the npm install --production from readme, didn't do anything. I installed 4.4.7 of nodejs. After some stupid attempts, I tried on a test raspberry I bought last year on black friday. install nodejs on this machine and did: npm install https://github.com/jishi/node-sonos-http-api

not remembering/knowing if this is the right way to do it, but it did download and install, but I ended up with error looking a lot like 'install problem node sonos http api #118', sorry for not saving the correct msg.

so question is: how do I correct update/install the latest stable version of this very nice tool ?

johnnymossin avatar Jul 28 '16 20:07 johnnymossin

I tried it again to get error msg, and I know this might seem simple, but I just can't figure out what to use as URL or what to wget ..:

pi@raspberrypi:~ $ npm install https://github.com/jishi/node-sonos-http-api npm WARN engine [email protected]: wanted: {"node":"0.10.x"} (current: {"node":"4.4.7","npm":"2.15.8"}) [email protected] node_modules/sonos-http-api ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected], [email protected], [email protected]) ├── [email protected] ([email protected], [email protected], [email protected], [email protected]) └── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) pi@raspberrypi:~ $

johnnymossin avatar Jul 29 '16 13:07 johnnymossin

You need to start it after that, and it will respond to http requests on port 5005. There should be detailed instructions in the Readme, and there is also a precompiled raspberry image which runs the latest beta and has autostart etc already configured.

Check here: http://jishi.github.io/node-sonos-http-api/

jishi avatar Jul 29 '16 19:07 jishi

originally I got the install warning on my 'production' pi, and afterwards it didn't work, so when I got the same warning on my test pi, I did not even care to test it, now it works on the test pi. THANX Maybe I just need to do an uninstall on the production pi and then reinstall from scatch. it will be later this weekend. I will find npm uninstall instructions somewhere. I will report back after reinstallation... and yes, I feel a bit stupid, have been working with computers since 1981, should have known better.

johnnymossin avatar Jul 30 '16 04:07 johnnymossin

just re-tested after reboot, and it works, even though I can find two installations of sonos-http-api, both the old and the new one, apparently the new npm/node install in different directory structure. I did try to uninstall, to get a fresh start, but it didn't succed, some msg 'npm WARN uninstall not installed in ...', but now it works, so no reel worries.

Thanx again for all your good work.

johnnymossin avatar Aug 02 '16 19:08 johnnymossin