MMM-OnSpotify icon indicating copy to clipboard operation
MMM-OnSpotify copied to clipboard

Multiple users on same module

Open thudrox opened this issue 8 months ago • 1 comments

To start off, absolutely loving the module. Upgraded from a Pi3A+ to a 5B and using all the animations, canvas.. its amazing.

What would really be amazing is if it was possible to have multiple users (ie. 2) and have the modules stacked on each other.

So my question is, is it possible? I tried authenticating two different accounts and adding 2 MMM-OnSpotify modules with their respective tokens, ID's etc in config.js but then only one user takes up both of those modules in MM.

Bliz help, is it even possible, and if not, is there any plan to implement this? How would shared spotify accounts work?

A lot of questions, sorry!

thudrox avatar Apr 25 '25 09:04 thudrox

Hi thanks!.

It can be done but there are lots of things that need to be rewritten to have actual multiple user accounts, that said It could be implemented just polling both accounts at the same time (not the best but....) then some stuff like what account should take priority, etc should be written.

2 modules would not work. As this was my first JS project I made it the same way as the original NPOS, 1 server for 1 module (not the best design but lots of modules work like this)

At some point I will add basic second account support but I do not know the ETA.

Fabrizz avatar Apr 27 '25 17:04 Fabrizz