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

    Posts

    Recent Best Controversial
    • My first Mirror ...Draft

      Hi Guys ,

      I’m sharing my first attempt of my mirror build.
      0_1553344372098_IMG_20190224_190002.jpg
      0_1553344383118_IMG_20190224_190137.jpg
      0_1553344397708_IMG_20190224_190315.jpg
      0_1553344408328_IMG_20190224_200048.jpg
      0_1553344416876_IMG_20190224_200300.jpg
      0_1553344426508_IMG_20190224_221412.jpg
      0_1553344439955_IMG_20190225_105346.jpg
      0_1553344451014_IMG_20190225_112745.jpg
      0_1553344458241_IMG_20190225_113438.jpg
      0_1553344471103_IMG_20190224_221456.jpg
      0_1553344478139_IMG_20190224_222250.jpg

      0_1553340137397_IMG_20190323_121411_edited.jpg
      0_1553340168673_IMG_20190323_121426_edited.jpg

      I used a frame with some deep bought in Leroy Merlin .
      And added a mirror film on the glass . Look is ok, but I’ll redo it as I scratched it a bit at pose time.

      Inside : A 17’ LCD I got from an old laptop .
      I bought a LDC controler on ebay to get the hdmi output and the power.
      A raspberry pi3B+
      1 wifi usb adapter with external antena to extend wifi range
      1 usb Fan, because my room can become very hot in summer ( this is just in case )
      1 micro sd extender so I can switch SD card from outside without opening the box.

      For the Modules on display :

      • MMM-AssistantMk2
      • MMM-Hotword
      • MMM-Volume
      • MMM-Spotify
      • MMM-DarkWeatherforecast
      • MMM-AI
      • MMM-Hue
      • MMM-tools
      • News feed & clock

      No speaker or amp connected .I pluged the 3.5mm jack out directly to my mix table who’s connected to the all sound system.

      That’s pretty it !

      As next step I’ll buy an additional frame and glue it to the first one to make the back more pretty .

      Ejay

      posted in Show your Mirror
      ejay-ibmE
      ejay-ibm
    • RE: MMM-Spotify

      @Cr4z33 if you don’t want to use gaction like me .
      I’ll share my transcription hook and command i’m using with this module and others.
      It works perfectly. with raspotify. raspotify is pretty easy to install and run.

      transcriptionHook: {
      
              HIDE_ALL_MODULES: {
                  pattern: "standby mode",
                  command: "HIDEMODULES"
                },
                SHOW_ALL_MODULES: {
                  pattern: "show modules",
                  command: "SHOWMODULES"
                },
                SCREEN_ON: {
                  pattern: "turn on screen",
                  command: "SCREENON"
                },
                SCREEN_OFF: {
                  pattern: "turn off screen",
                  command: "SCREENOFF"
                },
                REBOOT: {
                  pattern: "reboot the mirror",
                  command: "REBOOT"
                },
                SHUTDOWN: {
                  pattern: "extinction totale",
                  command: "SHUTDOWN"
                },
                STOP_PLAY: {
                  pattern: "stop the video", // this is for youtube but it is preferable to have youtubeAutoplay: false, when running spotify so you don't get interaction with youtube player. 
                  command: "STOP_VID"
                },
               // STOP_PLAY2: {
               //   pattern: "arrête la musique",
               //   command: "STOP_VID"
               // },
      
      	 SPOTIFY_PREVIOUS: {
              pattern: "previous song",
              command: "SPOTIFY_PREVIOUS"
              },
              SPOTIFY_PAUSE: {
              pattern : "stop the musique",
              command: "SPOTIFY_PAUSE"
              },
              SPOTIFY_PLAY: {
              pattern : "music please",
              command: "SPOTIFY_PLAY"
              },
              SPOTIFY_NEXT: {
              pattern: "next song",
              command: "SPOTIFY_NEXT"
              },
              SPOTIFY_VOLUME: {
              pattern: "set music volume to ([0-9]{1,2}[0]?|100)",
              command: "SPOTIFY_VOLUME"
              },
              SPOTIFY_SEARCH: {
              pattern: "play (.*) on Spotify",
              command: "SPOTIFY_SEARCH"
              },
      	SPOTIFY_SEARCH_PLAYLIST: {
              pattern: "playlist (.*) on Spotify",
              command: "SPOTIFY_SEARCH_PLAYLIST"
              },
      	SPOTIFY_MA_PLAYLIST: {
      	pattern: "(.*) my playlist",   // (.*)  is an action  eg: play my playlist / run my playlist etc... 
      	command: "SPOTIFY_MA_PLAYLIST"
      	},
      	SPOTIFY_TRANSFER: {
      	pattern: "play the music on (.*)", // (.*)  is the name of your device
      	command: "SPOTIFY_TRANSFER"
      	},
                VOLUME_UP: {
                  pattern: "volume up",
                  command: "CMD_VOLUME_UP"
                },
                VOLUME_DOWN: {
                  pattern: "volume down",
                  command: "CMD_VOLUME_DOWN"
                },
                SET_VOLUME: {
                  pattern: "set master volume to ([0-9]{1,2}[0]?|100)",
                  command: "CMD_VOLUME_SET"
                }
      
              },
              command: {
      
                STOP_VID: {
                  moduleExec: {
                    module: ["MMM-AssistantMk2"],
                    exec: (module, params, key) => {
                      module.assistant.subdom.youtube.innerHTML = ""; 
                      module.assistant.subdom.youtube.style.display = "none";
                      module.youtubePlaying = false;
                    }
                  }
                },
      	   SPOTIFY_TRANSFER: {
      	    notificationExec: {
                    notification: "SPOTIFY_TRANSFER",
      	         payload: (params) => {
                       console.log("SPOTIFY_TRANSFER @",params)
                      return params[1];
                              }
          
      	}
                },
                 SPOTIFY_PAUSE: {
                  notificationExec: {
                    notification: "SPOTIFY_PAUSE"
                  }
                },
      
              SPOTIFY_PLAY: {
                  notificationExec: {
                      notification: "SPOTIFY_PLAY"
                      }
              },
      	
      	SPOTIFY_MA_PLAYLIST: {
      	    notificationExec:  {
      		notification: "SPOTIFY_PLAY",
      		payload: (params) => {
      		console.log("SPOTIFY_MA_PLAYLIST")
      		return {
      			context_uri:"spotify:playlist:0bdByehKVfdsfdsfdsOhF5t",   // Uri of a personnal playlist or album
      				}
      			},
      		notification: "SPOTIFY_SHUFFLE",  // added this to toogle shuffle
      		notification: "SPOTIFY_NEXT" // added this to not always have the same song starting first 
      		}
      	},		
              
      	SPOTIFY_NEXT: {
               notificationExec: {
                  notification: "SPOTIFY_NEXT"
                      }
              },
      
              SPOTIFY_PREVIOUS: {
               notificationExec: {
                  notification: "SPOTIFY_PREVIOUS"
                      }
              },
              SPOTIFY_VOLUME: {
               notificationExec: {
                 notification: "SPOTIFY_VOLUME",
                 payload: (params) => {
                       console.log("SPOTIFY_VOLUME @",params)
                      return params[1];
                              }
                      }
              },
      	SPOTIFY_SEARCH: {
               notificationExec: {
                 notification: "SPOTIFY_SEARCH",
      
              payload: (params) => {
                      console.log("SPOTIFY_SEARCH @",params)
                      return {
                              type: "artist,track,album,playlist",
                              query: params[1],
                              random:false,
                              }
                           }
                      }
              },
      	 SPOTIFY_SEARCH_PLAYLIST: {
               notificationExec: {
                 notification: "SPOTIFY_SEARCH",
      
              payload: (params) => {
                      console.log("SPOTIFY_SEARCH_PLAYLIST @",params)
                      return {
                              type: "playlist",
                              query: params[1],
                              random:true,
                              }
                           }
                      }
              },
      
      
                CMD_VOLUME_UP: {
                  notificationExec: {
                    notification: "VOLUME_UP"
                  }
                },
                CMD_VOLUME_DOWN: {
                  notificationExec: {
                    notification: "VOLUME_DOWN"
                  }
                },
                CMD_VOLUME_SET: {
                  notificationExec: {
                    notification: "VOLUME_SET",
                    payload: (params, key) => {
                      console.log("@", params);
                      return params[1];
                    }
                  }
                }
              },
      

      hope this will help.

      @Sean let me know if you want me to update the wiki.

      Ejay

      posted in Entertainment
      ejay-ibmE
      ejay-ibm
    • MMM-SpotifyControl . Control your Spotify music player using Mk2 assistant.

      Description

      A module to control spotify command : Play / Pause / Resume/ Next using Mk2assistant hook .

      This Module allow to control Spotify player on your Mirror.
      For now you can only control a single device.
      It could be your mirror if you are running Raspotify on it.

      Special thanks to @mantha who bring this idea and the base code to me.
      Big Thanks to @Sean who helped me in the module development and spent a lot of time to teach me some dev concept.

      Please bear in mind: I’m not a developer and the module might still contain issues.
      I’ll try my best to fix them but if any dev wants to help me in that task or want to help me improve this module you are more than welcome!

      Enjoy

      Ejay

      Download

      [card:ejay-ibm/MMM-SpotifyControl]

      posted in Entertainment
      ejay-ibmE
      ejay-ibm
    • 1 / 1