Dashticz - Module - Spotify (new version!)

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

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

Dashticz - Module - Spotify (new version!)

Post by robgeerts »

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

config['spot_clientid'] = '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!
vgr2
Posts: 71
Joined: Monday 29 August 2016 12:02
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Spotify

Post by vgr2 »

Receiving: INVALID_CLIENT: Invalid redirect UR
Jonb
Posts: 16
Joined: Thursday 20 April 2017 10:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Location: NL
Contact:

Re: Dashticz - Module - Spotify

Post by Jonb »

I’m back.
@Rob: Yes! Nice! Lets test tonight :mrgreen:
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

Post by robgeerts »

Did you enter the dashticz url into your spotify account in the app settings??
vgr2
Posts: 71
Joined: Monday 29 August 2016 12:02
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Spotify

Post by vgr2 »

Yes, as written...
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

Post by robgeerts »

Just to be sure, you didnt accidentally use the api key as I typed in the first post?
vgr2
Posts: 71
Joined: Monday 29 August 2016 12:02
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Spotify

Post by vgr2 »

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: 499
Joined: Thursday 11 July 2013 22:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Dashticz - Module - Spotify

Post by remb0 »

INVALID_CLIENT: Invalid redirect URI
http://192.168.xxx.xx:8080/dashboard/
tried also my domain (external url)
vgr2
Posts: 71
Joined: Monday 29 August 2016 12:02
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Spotify

Post by vgr2 »

did you save it on the developer spotify page? Without saving I had the same problem..
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

Post by robgeerts »

Vgr2: Dont you see a popup when you click on 'Select playlist'?
vgr2
Posts: 71
Joined: Monday 29 August 2016 12:02
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Spotify

Post by vgr2 »

I mean, empty playlist
Attachments
2017-07-10_21h08_00.png
2017-07-10_21h08_00.png (4.76 KiB) Viewed 16059 times
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Module - Spotify

Post by EdwinK »

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 (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
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

Post by robgeerts »

Ok, I'll get back to the drawing table ;) will try to fix it tomorrow!
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

Post by robgeerts »

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
vgr2
Posts: 71
Joined: Monday 29 August 2016 12:02
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Spotify

Post by vgr2 »

Hi Rob, whats about my empty playlist? Saw some same issues in google.
User avatar
capman
Posts: 153
Joined: Friday 12 July 2013 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Belgium
Contact:

Re: Dashticz - Module - Spotify

Post by capman »

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 15981 times
2.JPG
2.JPG (64.49 KiB) Viewed 15981 times
Last edited by capman on Tuesday 11 July 2017 10:33, edited 1 time in total.
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

Post by robgeerts »

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..
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

Post by robgeerts »

Thanks to vgr2 I just pushed a fix in latest BETA!
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Module - Spotify

Post by EdwinK »

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 15866 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 (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
vgr2
Posts: 71
Joined: Monday 29 August 2016 12:02
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Spotify

Post by vgr2 »

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 15885 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest