Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need at least node 7.5 for sonos2mqtt to work #1

Closed
Eggn1n3 opened this issue Feb 25, 2018 · 4 comments
Closed

Need at least node 7.5 for sonos2mqtt to work #1

Eggn1n3 opened this issue Feb 25, 2018 · 4 comments

Comments

@Eggn1n3
Copy link

Eggn1n3 commented Feb 25, 2018

Hi,

I had some problems running sonos2mqtt on node v6. I got error message listed below:

pi@raspberry2:~ $ node ./sonos_test.js
/home/pi/node_modules/sonos/lib/sonos.js:66
var implicitListen = async function (event, listener) {
^^^^^^^^
SyntaxError: Unexpected token function
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/home/pi/node_modules/sonos/index.js:1:80)
at Module._compile (module.js:570:32)
pi@raspberry2:~ $ node -v
v6.10.0

When I upgraded to node 9 it all worked. Seems this is related to async package that at least needs node 7.5

@Eggn1n3 Eggn1n3 closed this as completed Feb 25, 2018
svrooij pushed a commit that referenced this issue Feb 25, 2018
@svrooij
Copy link
Owner

svrooij commented Feb 25, 2018

you where right that should be in the readme. Like it is now 👍

You enjoy using this bridge?

@Eggn1n3
Copy link
Author

Eggn1n3 commented Mar 18, 2018

This bridge works great, I love it!
One question though: when you send a "pause"command to a Sonos device you get an event that the device has been stopped instead of paused. Is that correct?

@svrooij
Copy link
Owner

svrooij commented Mar 18, 2018

Apperantly it depends on what’s playing.
If you’re playing TuneIN you cannot pause, since it is live. Playing Spotify would allow you to pause the music.

@Eggn1n3
Copy link
Author

Eggn1n3 commented Mar 18, 2018

You are absolutely right! I was indeed using TuneIn. Using spotify shows the state "paused".
Thanks for your quick response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants