skuethe / MMM-Spotify

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

Contrôles #123

Closed jeff44850 closed 3 years ago

jeff44850 commented 3 years ago

Bonjour et merci d'effectuer le suivi de ce module J'apprécie énormément les nouvelles fonctionnalités de changement d'appareil et de compte. J'ai également vu que l'on pouvais contrôler le volume en tactile mais je ne sais pas où le faire 🙄 Faut-il un module spécial ? Les autres boutons fonctionnent très bien en tactile Merci encore

skuethe commented 3 years ago

Hi there. Please open issues in English. Thanks

jeff44850 commented 3 years ago

Hello and thank you follow the tracking module of this I really like the new device and account switching features. I also saw that we could control the volume by touch but I do not know where to do it🙄 Do you need a special module? The other buttons work very well in touch thanks again

skuethe commented 3 years ago

Thank you for the feedback and translation :) I use MMM-Touch for all touch related operations. It is very powerful.

An example configuration could be:

    {
      // Have this at the bottom, or else it will "push" down other modules comming after it, even tho it is "hidden"
      module: "MMM-Touch",
      position: "top_right",
      config: {
        useDisplay: false,
        defaultMode: "normalOperation",
        gestureCommands: {
          "normalOperation": {
            // Spotify - increase volume
            "MOVE_UP_1": (commander, gesture) => {
              commander.sendNotification("SPOTIFY_VOLUME_UP")
            },
            // Spotify - decrease volume
            "MOVE_DOWN_1": (commander, gesture) => {
              commander.sendNotification("SPOTIFY_VOLUME_DOWN")
            },
          },
        }
      }
    },

The MOVE_* command from MMM-Touch is described here

jeff44850 commented 3 years ago

thank you so much I will study this module 😉

skuethe commented 3 years ago

Sure thing. Get back to me if you have any other questions.