Page 6 of 9
Re: Dashticz - Module - Spotify (new version!)
Posted: Friday 04 May 2018 14:31
by freakshock
Ectholian wrote: Friday 04 May 2018 11:26
freakshock wrote: Thursday 03 May 2018 14:14
Do you have Chromecast Audio or Google home devices?
I think there's a difference between 'cast targets' like the Chromecast audio, and normal devices like smartphones, PC's and tablets.
My Spotify android app always shows all Chromecast Audio targets, but only devices like my PC when it has recently been playing something.
Anyway, no biggie if it's not doable;)
It is undo-able. It's the way the spotify api works. The API can't talk directly to your device like a phone. So instead, you need to fire up the application (Spotify) and the application keeps a connection to the api and 'listens'. So if you use the spotify plugin, and api request is being made to the spotify api which in turn talks to the spotify application.
When the spotify application is shut down, this communication channel is also down so the api can't talk to the spotify application anymore. It is different for cast-devices like chromecast, because they are always running and therefore always keep the communication line open.
I think I hear what you are saying. But in that case it should perhaps be doable for chromecast devices? Those are what I want to use anyway.

Re: Dashticz - Module - Spotify
Posted: Friday 04 May 2018 14:38
by freakshock
Martijn89 wrote: Thursday 03 May 2018 22:58
Two tips maybe;
- On a tablet the selector for the playlist and for the devices are really close together and pretty small. If one of them was on top and one at the bottom this would make it easier to use it. Users can change this of course as it is probably something personal.
- Do you think volume control would be an option in the future? I know Spotify Connect allows volume control for devices.
Great work Rob!
Agreed! Playlist and device selector could also be besides eachother?
Maybe if would be a nice feature too if the plugin also showed the currently playing playlist, perhaps in the same place there the selector is.
The device selection works this way too..
Like for instance:
Jazz Classics (Select playlist)
Kitchen Speaker (Select device)
(or next to eachother like I mentioned)
Re: Dashticz - Module - Spotify (new version!)
Posted: Saturday 05 May 2018 11:55
by ecvn
Hi Rob,
Again great work on the Dashticz and Spotify integration. Really dig it!
I'm running beta. Spotify block is shown. Can select playlist and select a device (not all though but it's a known 'issue' so I'm ignoring this). However, I get an error "Playback functions of Spotify are only working when you have a premium subscription!" It's a line you added in the Spotify.js. I have a premium account. Tried to resolve this by 'creating' new API in Spotify (successfully). All is running smoothly. By this I mean: redirect URL is OK. Nothing loops, spotify block is functional but not showing 'buttons/keys'. Didn't got the message in previous versions of Dashticz so I assume it's new...(didn't compare code of previous Spotify.js though...)
Rebooted, logged in for spotify API, everything is working accordingly

great stuff!
Re: Dashticz - Module - Spotify (new version!)
Posted: Sunday 06 May 2018 9:10
by renerene
gonna dive into this (again). Question upfront: is it possible to 'start playslist x on device y' with just one switch? (x and y hard coded)
Re: Dashticz - Module - Spotify (new version!)
Posted: Monday 07 May 2018 14:42
by ArieKanarie
I updated to the lasted beta, but when I add the blok the only thing I see is this, am I missing something?
Re: Dashticz - Module - Spotify (new version!)
Posted: Monday 07 May 2018 15:09
by robgeerts
1.) Do you have Spotify open on one of your devices?
2.) If you play something from within Spotify itself, and refreshes Dashticz, doe you get to see an albumcover?
Re: Dashticz - Module - Spotify (new version!)
Posted: Monday 07 May 2018 17:22
by ArieKanarie
That seemd to do the trick.. although missing the controls, but going to make a new install for this beta.
Re: Dashticz - Module - Spotify (new version!)
Posted: Tuesday 08 May 2018 9:01
by robgeerts
Do you have spotify premium?
Re: Dashticz - Module - Spotify (new version!)
Posted: Tuesday 08 May 2018 11:52
by ArieKanarie
Yes. Also after new installation I see no controls?
(rebooted Pi, cleared cache)
Nevermind, it is me being stupid (and not cloning --branch beta

)
All working fine now, thanks for your work again!
Re: Dashticz - Module - Spotify (new version!)
Posted: Tuesday 08 May 2018 14:39
by Ectholian
robgeerts wrote: Tuesday 08 May 2018 9:01
Do you have spotify premium?
I have spotify premium for family. And for me the controls didnt work. I don't know if the API returns a different product for premium for family, or that it is bugged on the spotify side (read some things about that, in which the master-account doesn't get the premium product returned in the api). I didn't / don't have time to test it now, bug it might be a clue for you

Re: Dashticz - Module - Spotify (new version!)
Posted: Tuesday 08 May 2018 16:25
by ArieKanarie
I have spotify for familie too, but not the master account. But for me everything Works now. Can the size of the block be adjusted? It now takes the full width of the column.
Dashticz - Module - Spotify (new version!)
Posted: Wednesday 09 May 2018 6:52
by ecvn
Ectholian wrote:robgeerts wrote: Tuesday 08 May 2018 9:01
Do you have spotify premium?
I have spotify premium for family. And for me the controls didnt work. I don't know if the API returns a different product for premium for family, or that it is bugged on the spotify side (read some things about that, in which the master-account doesn't get the premium product returned in the api). I didn't / don't have time to test it now, bug it might be a clue for you

I have a family account. It's working for me so in theory it should work for you as well.
Not related to latest developments but I noticed I can add multiple return URLs within spotify (api dashboard). Helpful if you have both local and external access (with different ip/url) to your dashticz. Didn't know this was possible.
Verzonden vanaf mijn iPhone met Tapatalk
Re: Dashticz - Module - Spotify (new version!)
Posted: Thursday 10 May 2018 17:21
by jjnj
It's working again on my spotify enabled devices!!
Brilliant!!
Can we get pause/forward/backward buttons?
Currently it's only displaying the playlist and playback device + playlist cover
Re: Dashticz - Module - Spotify (new version!)
Posted: Friday 11 May 2018 8:09
by gielie
Is there some news about the iOS bug (not showing icons anymore) when enabling the Spotify plugin? Anybody have a work around.
Re: Dashticz - Module - Spotify (new version!)
Posted: Friday 11 May 2018 9:15
by robgeerts
jjnj wrote: Thursday 10 May 2018 17:21
It's working again on my spotify enabled devices!!
Brilliant!!
Can we get pause/forward/backward buttons?
Currently it's only displaying the playlist and playback device + playlist cover
Sounds great!

The pause button should be visible when you have a premium account..
gielie wrote: Friday 11 May 2018 8:09
Is there some news about the iOS bug (not showing icons anymore) when enabling the Spotify plugin? Anybody have a work around.
Not yet...
Re: Dashticz - Module - Spotify (new version!)
Posted: Friday 11 May 2018 12:24
by ecvn
jjnj wrote:It's working again on my spotify enabled devices!!
Brilliant!!
Can we get pause/forward/backward buttons?
Currently it's only displaying the playlist and playback device + playlist cover
Perhaps you should clear cache (ctrl + f5). Buttons should appear. I had same 'issue'.
Verzonden vanaf mijn iPhone met Tapatalk
Re: Dashticz - Module - Spotify (new version!)
Posted: Saturday 12 May 2018 10:09
by Etlaa
Latest beta , have a premium account , but no playback controls.
The attachment Spotify (2).PNG is no longer available

- Spotify (2).PNG (11.74 KiB) Viewed 9600 times
Edit :
Started spotify on my windows laptop , Suddenly spotify wants to connect with my ip-address i entered upon registration for develop , and now there are playback controls
problem solved !
Re: Dashticz - Module - Spotify (new version!)
Posted: Sunday 13 May 2018 11:09
by renerene
Still not working.
I have updated dashticz by using 'git pull' as described on the Dashticz wiki. I assume this updates the Spotify module as well.
Result: error Problem in re-directing, error INVALID_CLIENT: Invalid redirect URI, or Dashticz loads, but
no Domoticz data visible, only clock and news feeds visible
I have tried these options as Re-direct URL on the Spotify page
a) http://name:passw@IP:port (the exact same line as in config.js, parameter config['domoticz_ip'])
b) http://name:passw@IP:port/dashticz_v2/
c) http://IP:port
d) http://IP:port/dashticz_v2/
And yes, remembered to press save

Found out that only Login type 'Basic-Auth' works in conjuction with Dashticz, not 'Login page'
1) is it ok for the password to have symbols in it? Or just characters and numbers?
2) is it ok for the username to have symbols in it? Or just characters and numbers?
3) does the spotify app update immedetiatly after pressing save in the redirect URL?
4) what shoud be the redirect URL (option, a/b/c/d or e?)
Re: Dashticz - Module - Spotify (new version!)
Posted: Monday 14 May 2018 22:00
by curious
gielie wrote: Friday 11 May 2018 8:09
Is there some news about the iOS bug (not showing icons anymore) when enabling the Spotify plugin? Anybody have a work around.
I have the same problem. Is there a way to make a diffrence between showing the dashboard on a Ipad or on an other device.
Something like ;
If not device = IPAD then
show spotify
else
hide spotify
endif

Re: Dashticz - Module - Spotify (new version!)
Posted: Tuesday 15 May 2018 6:33
by ecvn
renerene wrote:Still not working.
I have updated dashticz by using 'git pull' as described on the Dashticz wiki. I assume this updates the Spotify module as well.
Result: error Problem in re-directing, error INVALID_CLIENT: Invalid redirect URI, or Dashticz loads, but
no Domoticz data visible, only clock and news feeds visible
I have tried these options as Re-direct URL on the Spotify page
a) http://name:passw@IP:port (the exact same line as in config.js, parameter config['domoticz_ip'])
b) http://name:passw@IP:port/dashticz_v2/
c) http://IP:port
d) http://IP:port/dashticz_v2/
And yes, remembered to press save

Found out that only Login type 'Basic-Auth' works in conjuction with Dashticz, not 'Login page'
1) is it ok for the password to have symbols in it? Or just characters and numbers?
2) is it ok for the username to have symbols in it? Or just characters and numbers?
3) does the spotify app update immedetiatly after pressing save in the redirect URL?
4) what shoud be the redirect URL (option, a/b/c/d or e?)
Just a silly question...are you sure you entered the redirect url in the correct field in the spotify api environment? I didn't so when I tried to access dashticz after the update I ran into some issues with faulty redirects. Make sure to check this.
In my case option e) works...that being; option D + index.html but I added multiple because I also use url forwarding. You can add as many redirect URLs as you like within spotify.
I'm not sure if you need to use a username/password in the redirect. I just don't know.
Verzonden vanaf mijn iPhone met Tapatalk