Dashticz - Module - Spotify (new version!)

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: robgeerts, htilburgs

freakshock
Posts: 75
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 » Friday 04 May 2018 14:31

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: 75
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 » Friday 04 May 2018 14:38

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: 9
Joined: Sunday 29 April 2018 23:29
Target OS: Raspberry Pi
Domoticz version: 3.8153
Location: Rotterdam
Contact:

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

Post by ecvn » Saturday 05 May 2018 11:55

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: 150
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

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

Post by renerene » Sunday 06 May 2018 9:10

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: 48
Joined: Saturday 12 December 2015 14:25
Target OS: Raspberry Pi
Domoticz version:
Contact:

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

Post by ArieKanarie » Monday 07 May 2018 14:42

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 1614 times

User avatar
robgeerts
Posts: 1247
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

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

Post by robgeerts » Monday 07 May 2018 15:09

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?
Creator of Dashticz
Do you appreciate my work and want to buy me a beer?
Send:
- XVG to D8fwNbyV6YxJk1aSiXftWTtdaPipsKn2Fa
- ANY ERC20-TOKEN to 0x9b8ee84329d77765a28bca188218c6c793875a8a

or donate via PayPal: https://www.paypal.me/robgeerts

ArieKanarie
Posts: 48
Joined: Saturday 12 December 2015 14:25
Target OS: Raspberry Pi
Domoticz version:
Contact:

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

Post by ArieKanarie » Monday 07 May 2018 17:22

That seemd to do the trick.. although missing the controls, but going to make a new install for this beta.

User avatar
robgeerts
Posts: 1247
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

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

Post by robgeerts » Tuesday 08 May 2018 9:01

Do you have spotify premium?
Creator of Dashticz
Do you appreciate my work and want to buy me a beer?
Send:
- XVG to D8fwNbyV6YxJk1aSiXftWTtdaPipsKn2Fa
- ANY ERC20-TOKEN to 0x9b8ee84329d77765a28bca188218c6c793875a8a

or donate via PayPal: https://www.paypal.me/robgeerts

ArieKanarie
Posts: 48
Joined: Saturday 12 December 2015 14:25
Target OS: Raspberry Pi
Domoticz version:
Contact:

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

Post by ArieKanarie » Tuesday 08 May 2018 11:52

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 1573 times

Ectholian
Posts: 8
Joined: Thursday 26 April 2018 15:27
Target OS: Linux
Domoticz version:
Contact:

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

Post by Ectholian » Tuesday 08 May 2018 14:39

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: 48
Joined: Saturday 12 December 2015 14:25
Target OS: Raspberry Pi
Domoticz version:
Contact:

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

Post by ArieKanarie » Tuesday 08 May 2018 16:25

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: 9
Joined: Sunday 29 April 2018 23:29
Target OS: Raspberry Pi
Domoticz version: 3.8153
Location: Rotterdam
Contact:

Dashticz - Module - Spotify (new version!)

Post by ecvn » Wednesday 09 May 2018 6:52

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
Posts: 240
Joined: Thursday 31 July 2014 13:51
Target OS: Windows
Domoticz version:
Location: NL
Contact:

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

Post by jjnj » 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

User avatar
gielie
Posts: 239
Joined: Tuesday 12 January 2016 12:40
Target OS: Raspberry Pi
Domoticz version: latest β
Location: The Netherlands (Alkmaar)
Contact:

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

Post by gielie » 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.
- Vision ZU1401 USB Stick
- Aeotec MultiSensor 6
- FIBARO FGS222
- FIBARO FGWPE Wall Plug
- Everspring AN157
- Neo CoolCam Power plug
- Neo CoolCam PIR Sensor
- Popp Smoke Detector
- Toon
- Kodi Media Server

User avatar
robgeerts
Posts: 1247
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

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

Post by robgeerts » Friday 11 May 2018 9:15

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...
Creator of Dashticz
Do you appreciate my work and want to buy me a beer?
Send:
- XVG to D8fwNbyV6YxJk1aSiXftWTtdaPipsKn2Fa
- ANY ERC20-TOKEN to 0x9b8ee84329d77765a28bca188218c6c793875a8a

or donate via PayPal: https://www.paypal.me/robgeerts

User avatar
ecvn
Posts: 9
Joined: Sunday 29 April 2018 23:29
Target OS: Raspberry Pi
Domoticz version: 3.8153
Location: Rotterdam
Contact:

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

Post by ecvn » Friday 11 May 2018 12:24

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 » Saturday 12 May 2018 10:09

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 1389 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: 150
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

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

Post by renerene » Sunday 13 May 2018 11:09

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: 136
Joined: Saturday 02 April 2016 19:38
Target OS: -
Domoticz version:
Contact:

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

Post by curious » Monday 14 May 2018 22:00

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: 9
Joined: Sunday 29 April 2018 23:29
Target OS: Raspberry Pi
Domoticz version: 3.8153
Location: Rotterdam
Contact:

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

Post by ecvn » Tuesday 15 May 2018 6:33

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