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.Ectholian wrote: ↑Friday 04 May 2018 11:26It 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.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;)
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.
Dashticz - Module - Spotify (new version!)
Moderators: leecollings, htilburgs, robgeerts
-
- 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!)
-
- Posts: 64
- Joined: Friday 14 April 2017 13:39
- Target OS: NAS (Synology & others)
- Domoticz version:
- Location: The Netherlands
- Contact:
Re: Dashticz - Module - Spotify
Agreed! Playlist and device selector could also be besides eachother?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!
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)
- 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!)
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!
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!
PM > Dutch + English
Re: Dashticz - Module - Spotify (new version!)
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)
-
- Posts: 41
- Joined: Saturday 12 December 2015 13:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - Module - Spotify (new version!)
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 (2.01 KiB) Viewed 9256 times
-
- 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!)
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?
2.) If you play something from within Spotify itself, and refreshes Dashticz, doe you get to see an albumcover?
-
- Posts: 41
- Joined: Saturday 12 December 2015 13:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - Module - Spotify (new version!)
That seemd to do the trick.. although missing the controls, but going to make a new install for this beta.
-
- 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!)
Do you have spotify premium?
-
- Posts: 41
- Joined: Saturday 12 December 2015 13:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - Module - Spotify (new version!)
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!
(rebooted Pi, cleared cache)
Nevermind, it is me being stupid (and not cloning --branch beta )
All working fine now, thanks for your work again!
- Attachments
-
- dash.PNG (15.53 KiB) Viewed 9215 times
-
- Posts: 16
- Joined: Thursday 26 April 2018 15:27
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Dashticz - Module - Spotify (new version!)
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
-
- Posts: 41
- Joined: Saturday 12 December 2015 13:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz - Module - Spotify (new version!)
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.
- 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!)
I have a family account. It's working for me so in theory it should work for you as well.Ectholian wrote: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
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
Re: Dashticz - Module - Spotify (new version!)
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
Brilliant!!
Can we get pause/forward/backward buttons?
Currently it's only displaying the playlist and playback device + playlist cover
- 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!)
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
- Aeotec MultiSensor 6
- FIBARO FGS223
- FIBARO FGWPE Wall Plug
- Neo CoolCam Power plug
- Popp Smoke Detector
- Toon
- Kodi Media Server
-
- 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!)
Sounds great!
The pause button should be visible when you have a premium account..
Not yet...
- 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!)
Perhaps you should clear cache (ctrl + f5). Buttons should appear. I had same 'issue'.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
Verzonden vanaf mijn iPhone met Tapatalk
PM > Dutch + English
-
- Posts: 2
- Joined: Saturday 12 May 2018 9:34
- Target OS: Linux
- Domoticz version:
- Location: Fryslân
- Contact:
Re: Dashticz - Module - Spotify (new version!)
Latest beta , have a premium account , but no playback controls.
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 !
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!)
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?)
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!)
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
- 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!)
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.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?)
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
Who is online
Users browsing this forum: No registered users and 1 guest