skuethe / MMM-Spotify

Spotify display and controller for MagicMirror
MIT License
66 stars 17 forks source link

The Device selection button doesn't work #190

Closed albaayna closed 1 year ago

albaayna commented 2 years ago

How do I make this work? All the other buttons, pause, next, random... work except the one to choose a device. Is there a way to automatically play the music on the raspberry or choose the device without having to use my phone? I can't find MMM-Modal for the device popup selection either. I already have raspotify and everything works well when I select the raspberry device on my phone.

skuethe commented 2 years ago

Have a look at the default device configuration:

defaultDevice: null, // optional - if you want the "SPOTIFY_PLAY" notification to also work from "idle" status, you have to define your default device here (by name)

MMM-Modalis another plugin which you need to install separately.

Nneuland commented 2 years ago

I am having trouble getting any of the buttons, pause, next, random to work.

Could you explain the process to enable?

@albaayna @skuethe

Nneuland commented 2 years ago

Also is it possible to have previous, next, random, to be used while the module is on the bottom bar?

skuethe commented 2 years ago

I am having trouble getting any of the buttons, pause, next, random to work.

Could you explain the process to enable?

Possible configuration options are documented in the readme: https://github.com/skuethe/MMM-Spotify#detail--default

... to be used while the module is on the bottom bar

Sorry, the "miniBar" style is not supported any more. Also noted in the README: https://github.com/skuethe/MMM-Spotify/blob/master/README.md?plain=1#L274

Nneuland commented 2 years ago

Thank you for the reply. I’m curious how to, for example implement this.sendNotification("SPOTIFY_PAUSE")

Into the module to enable a pause feature. Is this being added to the config file, or elsewhere? I apologize for the noob question

Nick On Wed, Jul 27, 2022 at 4:57 PM skuethe @.***> wrote:

I am having trouble getting any of the buttons, pause, next, random to work.

Could you explain the process to enable?

Possible configuration options are documented in the readme: https://github.com/skuethe/MMM-Spotify#detail--default

... to be used while the module is on the bottom bar

Sorry, the "miniBar" style is not supported any more. Also noted in the README: https://github.com/skuethe/MMM-Spotify/blob/master/README.md?plain=1#L274

— Reply to this email directly, view it on GitHub https://github.com/skuethe/MMM-Spotify/issues/190#issuecomment-1197359733, or unsubscribe https://github.com/notifications/unsubscribe-auth/AV4YKP7BQ4CW5FKB2XWL3JTVWGPETANCNFSM53FFF6CA . You are receiving this because you commented.Message ID: @.***>

skuethe commented 2 years ago

Thank you for the reply. I’m curious how to, for example implement this.sendNotification("SPOTIFY_PAUSE")

Into the module to enable a pause feature. Is this being added to the config file, or elsewhere? I apologize for the noob question

Nick

Notifications are an internal method of MM² to communicate between different modules. See documentation for more details: https://docs.magicmirror.builders/development/notifications.html

In case of this module, the notifications enable you to control MMM-Spotify from OTHER modules. An example:

  1. configure third-party module to send notifications on specific triggers
  2. execute trigger f.e. for "SPOTIFY_PAUSE"
  3. notification is send
  4. MMM-Spotify fetches notification and pauses the playback

For the first step, you would need to look around for possible third-party modules which can provide that. I can remember f.e. that there is / was a module to control your MM from your mobile device. https://github.com/MichMich/MagicMirror/wiki/3rd-Party-Modules

skuethe commented 1 year ago

Closing due to inactivity. Feel free to re-open if something else is unclear.