Dashticz - Module - Spotify (new version!)

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

freakshock
Posts: 64
Joined: Friday 14 April 2017 13:39
Target OS: NAS (Synology & others)
Domoticz version:
Location: The Netherlands
Contact:

Re: Dashticz - Module - Spotify (new version!)

Post 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. ;)
freakshock
Posts: 64
Joined: Friday 14 April 2017 13:39
Target OS: NAS (Synology & others)
Domoticz version:
Location: The Netherlands
Contact:

Re: Dashticz - Module - Spotify

Post 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)
User avatar
ecvn
Posts: 8
Joined: Sunday 29 April 2018 23:29
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Rotterdam
Contact:

Re: Dashticz - Module - Spotify (new version!)

Post 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 :D great stuff!
PM > Dutch + English
renerene
Posts: 316
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Spotify (new version!)

Post 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)
ArieKanarie
Posts: 41
Joined: Saturday 12 December 2015 13:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Spotify (new version!)

Post 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?
Attachments
dash.PNG
dash.PNG (2.01 KiB) Viewed 9253 times
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Spotify (new version!)

Post 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?
ArieKanarie
Posts: 41
Joined: Saturday 12 December 2015 13:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Spotify (new version!)

Post by ArieKanarie »

That seemd to do the trick.. although missing the controls, but going to make a new install for this beta.
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Spotify (new version!)

Post by robgeerts »

Do you have spotify premium?
ArieKanarie
Posts: 41
Joined: Saturday 12 December 2015 13:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Spotify (new version!)

Post 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 :roll: )

All working fine now, thanks for your work again!
Attachments
dash.PNG
dash.PNG (15.53 KiB) Viewed 9212 times
Ectholian
Posts: 16
Joined: Thursday 26 April 2018 15:27
Target OS: Linux
Domoticz version:
Contact:

Re: Dashticz - Module - Spotify (new version!)

Post 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 :)
ArieKanarie
Posts: 41
Joined: Saturday 12 December 2015 13:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Spotify (new version!)

Post 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.
User avatar
ecvn
Posts: 8
Joined: Sunday 29 April 2018 23:29
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Rotterdam
Contact:

Dashticz - Module - Spotify (new version!)

Post 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
PM > Dutch + English
jjnj

Re: Dashticz - Module - Spotify (new version!)

Post 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
User avatar
gielie
Posts: 290
Joined: Tuesday 12 January 2016 11:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest β
Location: The Netherlands (Alkmaar)
Contact:

Re: Dashticz - Module - Spotify (new version!)

Post by gielie »

Is there some news about the iOS bug (not showing icons anymore) when enabling the Spotify plugin? Anybody have a work around.
- Aeon Labs USB Stick met Z-wave plus
- Aeotec MultiSensor 6
- FIBARO FGS223
- FIBARO FGWPE Wall Plug
- Neo CoolCam Power plug
- Popp Smoke Detector
- Toon
- Kodi Media Server
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Spotify (new version!)

Post 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...
User avatar
ecvn
Posts: 8
Joined: Sunday 29 April 2018 23:29
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Rotterdam
Contact:

Re: Dashticz - Module - Spotify (new version!)

Post 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
PM > Dutch + English
Etlaa
Posts: 2
Joined: Saturday 12 May 2018 9:34
Target OS: Linux
Domoticz version:
Location: Fryslân
Contact:

Re: Dashticz - Module - Spotify (new version!)

Post by Etlaa »

Latest beta , have a premium account , but no playback controls.
The attachment Spotify (2).PNG is no longer available
Spotify (2).PNG
Spotify (2).PNG (11.74 KiB) Viewed 9028 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 :D
problem solved !
renerene
Posts: 316
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Spotify (new version!)

Post 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?)
curious
Posts: 132
Joined: Saturday 02 April 2016 19:38
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Spotify (new version!)

Post 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 ;)
User avatar
ecvn
Posts: 8
Joined: Sunday 29 April 2018 23:29
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Rotterdam
Contact:

Re: Dashticz - Module - Spotify (new version!)

Post 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
PM > Dutch + English
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest