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
using 2 instances of the spotify component
Moderators: leecollings, htilburgs, robgeerts
-
- 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
Currently only one account is supported. To support multiple accounts the spotify component needs to be updated. It's not too complex.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
I'll add it to the feature request list of January
-
- 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
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
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

-
- 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
@Lokonli, I also made a try myself, however I was struggling with the fact on how to pass a different token to the functions.Lokonli wrote: ↑Friday 31 December 2021 13:22Currently only one account is supported. To support multiple accounts the spotify component needs to be updated. It's not too complex.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
I'll add it to the feature request list of January
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

Who is online
Users browsing this forum: No registered users and 1 guest