using 2 instances of the spotify component

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
K0enH
Posts: 32
Joined: Monday 20 March 2017 14:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

using 2 instances of the spotify component

Post by K0enH »

Hi there,

I'm a happy domoticz users combined with dashticz on a LENOVO TAB M10+ with a dock.
recently I upgraded my stereo to SONOS and since we are already using Spotify for a long time the spotify component is heavily being used.
however I havent found a way to use multiple instances of the spotify component at the same time, as me and my wife have our own favorites it would be great if we could have multiple instances of the spotify component in dashticz. this would make that when clicking on one of the instances I would see my prefered lists and the other one my wifes favorites.
any ideas on this if this can be accomplished any how?

Regards,

Koen
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: using 2 instances of the spotify component

Post by Lokonli »

K0enH wrote: Friday 31 December 2021 12:55 Hi there,

I'm a happy domoticz users combined with dashticz on a LENOVO TAB M10+ with a dock.
recently I upgraded my stereo to SONOS and since we are already using Spotify for a long time the spotify component is heavily being used.
however I havent found a way to use multiple instances of the spotify component at the same time, as me and my wife have our own favorites it would be great if we could have multiple instances of the spotify component in dashticz. this would make that when clicking on one of the instances I would see my prefered lists and the other one my wifes favorites.
any ideas on this if this can be accomplished any how?

Regards,

Koen
Currently only one account is supported. To support multiple accounts the spotify component needs to be updated. It's not too complex.

I'll add it to the feature request list of January
K0enH
Posts: 32
Joined: Monday 20 March 2017 14:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: using 2 instances of the spotify component

Post by K0enH »

that would be great @Lokonli!
might be handy if you can supply multiple spotclient_id and then decide in a dropdown or something like that as what user you want to navigate :)
K0enH
Posts: 32
Joined: Monday 20 March 2017 14:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: using 2 instances of the spotify component

Post by K0enH »

Lokonli wrote: Friday 31 December 2021 13:22
K0enH wrote: Friday 31 December 2021 12:55 Hi there,

I'm a happy domoticz users combined with dashticz on a LENOVO TAB M10+ with a dock.
recently I upgraded my stereo to SONOS and since we are already using Spotify for a long time the spotify component is heavily being used.
however I havent found a way to use multiple instances of the spotify component at the same time, as me and my wife have our own favorites it would be great if we could have multiple instances of the spotify component in dashticz. this would make that when clicking on one of the instances I would see my prefered lists and the other one my wifes favorites.
any ideas on this if this can be accomplished any how?

Regards,

Koen
Currently only one account is supported. To support multiple accounts the spotify component needs to be updated. It's not too complex.

I'll add it to the feature request list of January
@Lokonli, I also made a try myself, however I was struggling with the fact on how to pass a different token to the functions.
I basically duplicated the spotify.js and changed spotifyToken to spotifyToken2 etc but the functions seem somehow to be using the spotifyToken.
the other functions are webservices from spotify correct? and they are always using the spotifyToken? if you could guide me I might be able to fix somehow by myself :)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest