MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. GinSeng
    3. Best
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    G
    Offline
    • Profile
    • Following 0
    • Followers 1
    • Topics 2
    • Posts 13
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: VoiceControl module

      @Jeff
      Lets see if i can make a complete list for you.
      Step 1. cd in your MagicMirror/module folder then git clone the modul ( https://github.com/alexyak/voicecontrol.git )
      Step 2. cd in the voice module and install dependencies ( sudo apt-get install python-pyaudio python3-pyaudio sox )
      Step 3. Create snowboy files and copy them into the ( im not sure which works i copied them in 3 placed) 1. voice control module 2. mm-music-player module and MagicMirror folder
      Step 4. cd into your mm-music-player and sudo nano mm-music-player.js add following lines after this lines:
      start: function() {
      Log.info("Starting module: " + this.name);
      },

      ->> Add this
      notificationReceived: function(notification, payload, sender) {
      if (notification === “PLAY”){
      var playButton = document.getElementById(‘play-button’);
      playButton.click();

      if (notification === “STOP”){
      var pauseButton = document.getElementById(‘pause-button’);
      pauseButton.click();

      then go down to

          playButton.className = "play";
          playButton.innerHTML = '<i class="fa fa-play" aria-hidden="true"></i>'; 
      

      playButton.id = ‘play-button’;

          pauseButton.className = "pause";
          pauseButton.innerHTML = '<i class="fa fa-pause" aria-hidden="true"></i>'; 
      

      pauseButton.id = ‘pause-button’;

      Then cd in your MagicMirror config and sudo nano config.js

      and add the following lines

      {
      module: ‘voicecontrol’,
      position: ‘bottom_right’,
      config: {
      models: [
      {
      keyword: “play music”, // keyword
      description:
      file: “yourfile.pmdl”,
      message: “PLAY”,
      },
      {
      keyword: “stopmusic”, // keyword
      description:
      file: “yourfile.pmdl”,
      message: “STOP”
      },

      This should be all.
      If it doesn’t work, feel free to write me a PM.
      greez GinSeng

      posted in Utilities
      G
      GinSeng
    • RE: Where are you from?

      Ulm, Germany / Ravensburg, Germany

      posted in General Discussion
      G
      GinSeng
    • RE: Mobile app (bachelor thesis)

      Done ! :)

      Good luck with your bachelor thesis.

      posted in Development
      G
      GinSeng
    • 1 / 1