Page 9 of 9

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

Posted: Wednesday 06 March 2019 19:39
by Lokonli
silver323 wrote: Wednesday 06 March 2019 13:16 Updated dashticz to 2.5.7 but still had this issue.
For now it only stays blank where i want the block Spotify.
Still running without issues for me. I've made a PR on github to include the latest version of spotify-web-api, but i've some doubts whether that will solve your problems.

Did you test while a spotify player is active in your local network? (Dashticz only is a remote control)
You have a premium account?

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

Posted: Saturday 09 March 2019 20:50
by silver323
Lokonli wrote: Wednesday 06 March 2019 19:39
silver323 wrote: Wednesday 06 March 2019 13:16 Updated dashticz to 2.5.7 but still had this issue.
For now it only stays blank where i want the block Spotify.
Still running without issues for me. I've made a PR on github to include the latest version of spotify-web-api, but i've some doubts whether that will solve your problems.

Did you test while a spotify player is active in your local network? (Dashticz only is a remote control)
You have a premium account?
Well, don't know why but now it's working. Didn't change anything. :o

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

Posted: Friday 06 November 2020 19:29
by joostnl
@Lokonli in the past i got spotify working with kiosk browser on android out of the blue it stopped working. You wrote in GitHub while back exact same issue. Other browser work great after the spotify prompt to login in.

Does someone know how to reset the spotify cache and i will get the prompt again to login?

Clearing website cache and cache from android webview + kiosk browser not working

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

Posted: Saturday 07 November 2020 18:05
by joostnl
Lokonli wrote: Wednesday 06 March 2019 19:39
silver323 wrote: Wednesday 06 March 2019 13:16 Updated dashticz to 2.5.7 but still had this issue.
For now it only stays blank where i want the block Spotify.
Still running without issues for me. I've made a PR on github to include the latest version of spotify-web-api, but i've some doubts whether that will solve your problems.

Did you test while a spotify player is active in your local network? (Dashticz only is a remote control)
You have a premium account?

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

Posted: Monday 09 November 2020 12:45
by Lokonli
joostnl wrote: Friday 06 November 2020 19:29 @Lokonli in the past i got spotify working with kiosk browser on android out of the blue it stopped working. You wrote in GitHub while back exact same issue. Other browser work great after the spotify prompt to login in.

Does someone know how to reset the spotify cache and i will get the prompt again to login?

Clearing website cache and cache from android webview + kiosk browser not working
The Spotify authorization is stored in a cookie.
If you delete the cookie it should show the Spotify login prompt again.

Is the redirect uri, that you used in the Spotify development console, still valid?

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

Posted: Monday 09 November 2020 20:38
by ArieKanarie
I have problems too with the spotify module.
I get the "Invalid redirect URI" error. I can correct this by editing the url en remove a (encoded) slash after my dashticz url:
"redirect_uri=http%3A%2F%2F192.168.6.11%3A8082%2F&client_id=xxxx "

So when I delete the marked %2F, all is ok and dashticz opens.

But the problem is, that I use dashticz on a Ipad and start de browser maximized, and there is no option to edit the url... :roll:
How can I make that the redirect works without editing?
The slash is not included in the redirect uri settings in the spotify developer page

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

Posted: Monday 09 November 2020 21:33
by Lokonli
Did you already try to add the slash to the redirect URI setting on https://developer.spotify.com ?

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

Posted: Monday 09 November 2020 22:40
by ArieKanarie
To be honest, no. Didn't seem logical to me as I have to remove the slash to get it to work.
Going to try it...

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

Posted: Tuesday 10 November 2020 22:06
by ArieKanarie
Lokonli wrote: Monday 09 November 2020 21:33 Did you already try to add the slash to the redirect URI setting on https://developer.spotify.com ?
oddly, that did the trick, problem solved

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

Posted: Tuesday 05 January 2021 11:55
by jgaalen
joostnl wrote: Saturday 07 November 2020 18:05
Lokonli wrote: Wednesday 06 March 2019 19:39
silver323 wrote: Wednesday 06 March 2019 13:16 Updated dashticz to 2.5.7 but still had this issue.
For now it only stays blank where i want the block Spotify.
Still running without issues for me. I've made a PR on github to include the latest version of spotify-web-api, but i've some doubts whether that will solve your problems.

Did you test while a spotify player is active in your local network? (Dashticz only is a remote control)
You have a premium account?
Were you able to solve your Dashticz + Fully Kiosk + Spotify issue? I have the same issue, when using dashticz in fully kiosk, I do not see the spotify block. When I open it on the same tablet in Chrome, I see it and can control it. I've tried to clear the cache (button in kiosk), but nothing happens. I'm not even prompted for spotify authorization again.
Anyone who is having Dashticz + Fully Kiosk + Spotify working?

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

Posted: Tuesday 05 January 2021 13:02
by Nefsolive
jgaalen wrote: Tuesday 05 January 2021 11:55
joostnl wrote: Saturday 07 November 2020 18:05
Lokonli wrote: Wednesday 06 March 2019 19:39
Still running without issues for me. I've made a PR on github to include the latest version of spotify-web-api, but i've some doubts whether that will solve your problems.

Did you test while a spotify player is active in your local network? (Dashticz only is a remote control)
You have a premium account?
Were you able to solve your Dashticz + Fully Kiosk + Spotify issue? I have the same issue, when using dashticz in fully kiosk, I do not see the spotify block. When I open it on the same tablet in Chrome, I see it and can control it. I've tried to clear the cache (button in kiosk), but nothing happens. I'm not even prompted for spotify authorization again.
Anyone who is having Dashticz + Fully Kiosk + Spotify working?
Yes! Mine works fine on Fully Kiosk!
Did you select the device on block? did you see a "select list" and "select device" on block?
You have a premium account?
Like Lokonli say, Did you already try to add the slash to the redirect URI setting on https://developer.spotify.com ?
Iff you have, try delete and create new one.

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

Posted: Wednesday 06 January 2021 8:38
by jgaalen
Nefsolive wrote: Tuesday 05 January 2021 13:02
jgaalen wrote: Tuesday 05 January 2021 11:55
joostnl wrote: Saturday 07 November 2020 18:05
Were you able to solve your Dashticz + Fully Kiosk + Spotify issue? I have the same issue, when using dashticz in fully kiosk, I do not see the spotify block. When I open it on the same tablet in Chrome, I see it and can control it. I've tried to clear the cache (button in kiosk), but nothing happens. I'm not even prompted for spotify authorization again.
Anyone who is having Dashticz + Fully Kiosk + Spotify working?
Yes! Mine works fine on Fully Kiosk!
Did you select the device on block? did you see a "select list" and "select device" on block?
You have a premium account?
Like Lokonli say, Did you already try to add the slash to the redirect URI setting on https://developer.spotify.com ?
Iff you have, try delete and create new one.
All is working in chrome on the tablet, but not in kiosk. So dashticz and spotify is configured well. But when opening in kiosk, there is nothing. No redirect to spotify to login, no spotify block, nothing. It's also not there if I delete the cache, as I would expect it to redirect it to spotify again to login there. I just don't think it is deleting the cache properly (or maybe not the cookies). I remember that maybe half a year ago I actually GOT redirected to spotify, but the keyboard overlay didn't popped up so I had no way entering the password. After that, I was never prompted to login to spotify so I guess the issue could be there if other people have a successful kiosk + spotify integration

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

Posted: Wednesday 06 January 2021 11:08
by Nefsolive
jgaalen wrote: Wednesday 06 January 2021 8:38
Nefsolive wrote: Tuesday 05 January 2021 13:02
jgaalen wrote: Tuesday 05 January 2021 11:55

Were you able to solve your Dashticz + Fully Kiosk + Spotify issue? I have the same issue, when using dashticz in fully kiosk, I do not see the spotify block. When I open it on the same tablet in Chrome, I see it and can control it. I've tried to clear the cache (button in kiosk), but nothing happens. I'm not even prompted for spotify authorization again.
Anyone who is having Dashticz + Fully Kiosk + Spotify working?
Yes! Mine works fine on Fully Kiosk!
Did you select the device on block? did you see a "select list" and "select device" on block?
You have a premium account?
Like Lokonli say, Did you already try to add the slash to the redirect URI setting on https://developer.spotify.com ?
Iff you have, try delete and create new one.
All is working in chrome on the tablet, but not in kiosk. So dashticz and spotify is configured well. But when opening in kiosk, there is nothing. No redirect to spotify to login, no spotify block, nothing. It's also not there if I delete the cache, as I would expect it to redirect it to spotify again to login there. I just don't think it is deleting the cache properly (or maybe not the cookies). I remember that maybe half a year ago I actually GOT redirected to spotify, but the keyboard overlay didn't popped up so I had no way entering the password. After that, I was never prompted to login to spotify so I guess the issue could be there if other people have a successful kiosk + spotify integration
Understand! Strange, mine works fine.
Did you buy the license?
Did you try uninstall Kiosk, and install again?

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

Posted: Wednesday 06 January 2021 13:17
by jgaalen
Hmm I'm one step further. While writing I assumed it really had to do something with cookies and not the cache. So changed some reload settings to clear cookies too. That helped. After that, it got me redirected to spotify and I was able to login. When it redirected me back, I noticed the spotify block for 1 second, then the screen turned into 'Domoticz authorization failure'. In the logs I see HTTP-401 messages from domoticz. New issue to tackle when I have the time, but I'm sure the spotify issue is solved.

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

Posted: Friday 19 January 2024 22:06
by EdwinK
REviving this old topic.

Came here to see if there was an solution for this problem. I too have the problem with redirect url. Tried several things, as https://192.168.0.11:8080/ (with and without the slash at the end. Also tried with a no-ip.net address.
On my local network I don't have a ssl certificate (can't get that too work), but on the no-ip I have.

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

Posted: Sunday 21 January 2024 14:03
by Lokonli
The redirect URI in Spotify settings should be exactly the same as the URL you use to open Dashticz.

So if you open Dashticz with 'http://192.168.0.11:8080/' then this also is your redirect URI in Spotify

To use spotify the query parameters to open Dashticz are not supported.
So you can not use the following URL to open Dashticz: 'http://192.168.0.11:8080/?cfg=spotify.js'

Spotify doesn't enforce that the redirect URI is an https address: http is sufficient.
But again: it must be the same URL as how you open Dashticz.

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

Posted: Sunday 21 January 2024 14:11
by EdwinK
This time I double checked and put in the correct URL where Dashticz lives, 'http://192.168.0.11:8082' but still the same error. Restarted computer and all, but no luck :(

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

Posted: Sunday 21 January 2024 18:24
by Lokonli
The redirect URI in spotify needs a slash at the end. Did you try with that?

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

Posted: Wednesday 24 January 2024 9:18
by EdwinK
It is kind of working. Now I get a playlist error.

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

Posted: Wednesday 24 January 2024 9:49
by EdwinK
O, I found out. My Spotify account is on another email then the developers account.