Dashticz - Module - Spotify (new version!)

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: robgeerts, htilburgs

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

Dashticz - Module - Spotify (new version!)

Post by robgeerts » Monday 10 July 2017 16:59

Now can add a Spotify block.
Image
Image

Before you can use it, create an app on the spotify website:
https://developer.spotify.com/my-applic ... ons/create

Title: Dashticz
Description: whatever ;)

On the next page, copy "Client ID" to your CONFIG.js like:

Code: Select all

var _CLIENTID_SPOTIFY = '1112f16564cf4f4dsd4cbe8b52c58a44';
At the same page, enter your dashticz-url in the Redirect URIs field, for example:'
http://192.168.1.3:8080/
DONT FORGET TO PUSH THE SAVE BUTTON!!


In CONFIG.js, add the block like:

Code: Select all

columns[2] = {}
columns[2]['blocks'] = ['spotify']
columns[2]['width'] = 5; 
Currently you can only change playlist, but more functions are coming!
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

vgr2
Posts: 91
Joined: Monday 29 August 2016 12:02
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Spotify

Post by vgr2 » Monday 10 July 2017 17:52

Receiving: INVALID_CLIENT: Invalid redirect UR

Jonb
Posts: 16
Joined: Thursday 20 April 2017 10:01
Target OS: Raspberry Pi
Domoticz version: 3.5877
Location: NL
Contact:

Re: Dashticz - Module - Spotify

Post by Jonb » Monday 10 July 2017 17:54

I’m back.
@Rob: Yes! Nice! Lets test tonight :mrgreen:

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

Re: Dashticz - Module - Spotify

Post by robgeerts » Monday 10 July 2017 17:55

Did you enter the dashticz url into your spotify account in the app settings??
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

vgr2
Posts: 91
Joined: Monday 29 August 2016 12:02
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Spotify

Post by vgr2 » Monday 10 July 2017 17:58

Yes, as written...

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

Re: Dashticz - Module - Spotify

Post by robgeerts » Monday 10 July 2017 18:14

Just to be sure, you didnt accidentally use the api key as I typed in the first post?
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

vgr2
Posts: 91
Joined: Monday 29 August 2016 12:02
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Spotify

Post by vgr2 » Monday 10 July 2017 18:20

Working with http://192.168.xxx.xx:8080/dashboard/ as redirect UR.

But after that i can only see 'Select playlist' button, nothing more. And yes I have a playlist.....

User avatar
remb0
Posts: 929
Joined: Thursday 11 July 2013 22:21
Target OS: Raspberry Pi
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Dashticz - Module - Spotify

Post by remb0 » Monday 10 July 2017 20:10

INVALID_CLIENT: Invalid redirect URI
http://192.168.xxx.xx:8080/dashboard/
tried also my domain (external url)
All Domoticz compatible products at shop: https://www.domoticz.com/wiki/Compatibl ... n_gearbest

vgr2
Posts: 91
Joined: Monday 29 August 2016 12:02
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Spotify

Post by vgr2 » Monday 10 July 2017 20:34

did you save it on the developer spotify page? Without saving I had the same problem..

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

Re: Dashticz - Module - Spotify

Post by robgeerts » Monday 10 July 2017 21:00

Vgr2: Dont you see a popup when you click on 'Select playlist'?
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

vgr2
Posts: 91
Joined: Monday 29 August 2016 12:02
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Spotify

Post by vgr2 » Monday 10 July 2017 21:10

I mean, empty playlist
Attachments
2017-07-10_21h08_00.png
2017-07-10_21h08_00.png (4.76 KiB) Viewed 5274 times

User avatar
EdwinK
Posts: 1148
Joined: Sunday 22 January 2017 22:46
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Module - Spotify

Post by EdwinK » Monday 10 July 2017 22:34

remb0 wrote:INVALID_CLIENT: Invalid redirect URI
http://192.168.xxx.xx:8080/dashboard/
Same here. Triple checked to see if the API key was inserted correctly
Running latest BETA on a Pi-3 | Toon Thermostat | RFxcom | Dashticz V2 |

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

Re: Dashticz - Module - Spotify

Post by robgeerts » Monday 10 July 2017 22:48

Ok, I'll get back to the drawing table ;) will try to fix it tomorrow!
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
robgeerts
Posts: 1230
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Spotify

Post by robgeerts » Tuesday 11 July 2017 9:37

Well, I just tested it.
I tried to call the dashboard by localhost and 192.168.1.119 and both worked when entering the address to the spotify app page:

Image

First time it didnt work till I found out I forgot to press the save button ;)

AND make sure you enter the Client ID in CONFIG.JS, and NOT (!) the Client Secret
Image
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

vgr2
Posts: 91
Joined: Monday 29 August 2016 12:02
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Spotify

Post by vgr2 » Tuesday 11 July 2017 10:11

Hi Rob, whats about my empty playlist? Saw some same issues in google.

User avatar
capman
Posts: 181
Joined: Friday 12 July 2013 20:48
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Belgium
Contact:

Re: Dashticz - Module - Spotify

Post by capman » Tuesday 11 July 2017 10:22

INVALID_CLIENT: Invalid redirect URL

I have the same problem. Try this. Select the redirect url with your mouse (example: http://192.168.178.29/keuken/) Then click with your right mouse key on it and choose option "open link in new tab'. Now spotify ask you if you give permission to open this link. Click OK button. Solved !
Attachments
1.JPG
1.JPG (25.64 KiB) Viewed 5196 times
2.JPG
2.JPG (64.49 KiB) Viewed 5196 times
Last edited by capman on Tuesday 11 July 2017 10:33, edited 1 time in total.

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

Re: Dashticz - Module - Spotify

Post by robgeerts » Tuesday 11 July 2017 10:30

vgr2 wrote:Hi Rob, whats about my empty playlist? Saw some same issues in google.
Good question, maybe we can solve this via Teamviewer? PM me..
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
robgeerts
Posts: 1230
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Spotify

Post by robgeerts » Tuesday 11 July 2017 17:36

Thanks to vgr2 I just pushed a fix in latest BETA!
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
EdwinK
Posts: 1148
Joined: Sunday 22 January 2017 22:46
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Module - Spotify

Post by EdwinK » Tuesday 11 July 2017 18:23

All of a sudden it seems to work
Screen Shot 2017-07-11 at 21.24.45.png
Screen Shot 2017-07-11 at 21.24.45.png (37.62 KiB) Viewed 5081 times
Last edited by EdwinK on Tuesday 11 July 2017 21:26, edited 1 time in total.
Running latest BETA on a Pi-3 | Toon Thermostat | RFxcom | Dashticz V2 |

vgr2
Posts: 91
Joined: Monday 29 August 2016 12:02
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Spotify

Post by vgr2 » Tuesday 11 July 2017 21:01

Rob, now I have to loging to Spotify parallel, otherwise it will not work.
Attachments
2017-07-11_20h01_46.png
2017-07-11_20h01_46.png (11.96 KiB) Viewed 5100 times

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest