Comments (16)
Spotify recently changed so that you need a API key to do search etc.
To get the keys, log in to Spotify and go to:
https://developer.spotify.com/my-applications/#!/applications
Create an app and get the two values:
Client ID and Client Secret.
When you have received these values, encode them with Base64.
Head over to https://www.base64encode.org and decode to base64.
You should paste something like:
dfh543455dfgr44455dfgbgd4544fff:r55666655444333fbg332de34f444f4r
(note the : between ClientID and Client Secret)
You should now have received something like:
GhgyGKHJK45HJKHSDdvkjhKJHkjhdfkjKJHkjh334kjhKJhkjdh777JKJHCXKJCJKkj234kjkjhKJHkjhdcvdcj=
Put this value in the config.json as "apiKey":
"apiKey": ""
BR
Tilly
from zenmusic.
Figured it out. Works now! Thanks :-D
from zenmusic.
Hmm.. I assume the sonos is configured correctly with Spotify and works standalone?
What version of node are you running?
No firewalls blocking the communication ?
What platform are you running it on? OSX?
BR
Tilly
from zenmusic.
Thanks for getting back to me.
I'm using a Raspberry Pi.
pi@raspberrypi:/opt/zenmusic $ node --version
v7.10.0
pi@raspberrypi:/opt/zenmusic $ npm --version
4.6.1
No firewalls and the Sonos itself works just fine.
from zenmusic.
To be honest, I also tried this on my mac and had the same exact problem.
from zenmusic.
@htilly just pinging you to see if you saw my response.
thanks
ajp
from zenmusic.
Hi! Did see the response.
Do you still have the same problem after the implementation of Spotify key?
(see README for more info).
However, I don´t think that is the problem since it´s RTMClient that seems to have problems. And that is the function of actually communication with Slack :/
BR
Tilly
from zenmusic.
Have you checked firewalls etc?
Tried from another network ?
from zenmusic.
Checking. Not sure what you mean by spotify key.
from zenmusic.
So where does the spotify key actually go?
from zenmusic.
@apanzerj what was the fix for this? I'm having the same issues, running node 9.0.0 and npm 5.5.1 on a rpi1 (in docker)
I've validated that the Spotify API key is good, I can use it to manually generate a token and query the API
from zenmusic.
I also had issues with the IP of the sonos speakers changing too
from zenmusic.
but that's all I remember. I no longer work at a company with Sonos Speakers ¯\(ツ)/¯
from zenmusic.
Quick question @anthonyangel
Are you using a US or Non US spotify account?
from zenmusic.
I'm in the UK, I've set market=GB in config
from zenmusic.
Ok, just to make sure, have you changed the following lines in index.js ?
// Old version.. New is supposed to fix 500 problem...
// sonos.addSpotifyQueue(spid, function (err, res) {
sonos.addSpotify(spid, function (err, res) {
If Non US, try the OLD version..
So your code should be:
// Old version.. New is supposed to fix 500 problem...
sonos.addSpotifyQueue(spid, function (err, res) {
// sonos.addSpotify(spid, function (err, res) {
Note that you need to change this in multiple places in the index.js
I know.. should really fix the code so it autodetect what region...
BR
Tilly
from zenmusic.
Related Issues (20)
- Hmm. Can't call next HOT 7
- Error parsing DIDTL result HOT 1
- Admin Functionality HOT 2
- Receiving error when trying to start index.js HOT 2
- Feature Request: Add Album HOT 1
- Spotify Auth Token (I think) HOT 4
- On "next", print what song was playing and what song is next HOT 1
- index.js says "Online!" but says nothing else HOT 6
- Getting an error after following install instructions and running node index.js HOT 10
- Connecting zenbot to Sonos - StatusCodeError: 500 HOT 2
- setvolume only works for one speaker. Not two etc HOT 1
- Sorry @botname, no bots allowed! Gets spammed in channel assigned to bot HOT 2
- 'No bots allowed' HOT 4
- Setvolume response does not reflect requested volume level HOT 5
- Undefined HOT 3
- search, add, commands causes error HOT 3
- Spotify functions do not work and crash the server HOT 5
- Unable to Search I get an error when I do HOT 3
- Issue with the shuffle HOT 6
- error: Response not OK: missing_scope HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zenmusic.