MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. Lasmazze
    3. Posts
    L
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 6
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by Lasmazze

    • RE: MMM-AssistantMk2 (v3)

      Hi everyone!

      The module works very well. Good work!

      I just have a request:

      When I say “JARVIS” I would like the sound to be cut or lowered to the minimum if not the assistant records what it is broadcasting like the radio or a youtube video. When I finish talking to the assistant, I would like the sound to come back as it was before.

      Thank you in advance for your help!

      posted in System
      L
      Lasmazze
    • RE: MMM-Spotify

      @Sean Ok thank you for your answer. apart from that your modules work really well, continue like that!

      posted in Entertainment
      L
      Lasmazze
    • RE: MMM-Spotify

      Hi @Sean, I just have a question I read the whole forum but I did not find the answer.
      I installed Raspotify on my Raspberry pi, but when I launch my mirror, I cannot launch music by saying “music play”, only from my phone, once I have started the music from my phone and I connect it on raspotify I can change the music as well as all the other commands.
      And spotify does not launch with onStart.

      {
        module: "MMM-Spotify",
        position: "bottom_left",
        config: {
          style: "mini", // "default" or "mini" available
          control: "hidden", //"default", "hidden" available
          updateInterval: 1000,
          onStart: {
            deviceName: "RASPOTIFY", //if null, current(last) activated device will be.
            spotifyUri: "spotify:track:0hNduWmlWmEmuwEFcYvRu1"
            //when search is set, sportifyUri will be ignored.
            }
          }
      },
      

      thank you for your answers.

      posted in Entertainment
      L
      Lasmazze
    • RE: MMM-Assistantmk2 & MMM-Webradio

      :::

      Spoiler Text

      :::

      @Sean

      Yes I use this module well: https://github.com/MunichStef/MMM_Webradio

      I made my code in the config.js as below. The assistantmk2 detects my sentence, it pauses, but nothing happens.

      /* Magic Mirror Config Sample
       *
       * By Michael Teeuw http://michaelteeuw.nl
       * MIT Licensed.
       *
       * For more information how you can configurate this file
       * See https://github.com/MichMich/MagicMirror#configuration
       *
       */
      
      var config = {
      	address: "localhost", // Address to listen on, can be:
      	                      // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
      	                      // - another specific IPv4/6 to listen on a specific interface
      	                      // - "", "0.0.0.0", "::" to listen on any interface
      	                      // Default, when address config is left out, is "localhost"
      	port: 8080,
      	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
      	                                                       // or add a specific IPv4 of 192.168.1.5 :
      	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
      	                                                       // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
      	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
      
      	language: "fr",
      	timeFormat: 24,
      	units: "metric",
      
      	modules: [
      		{
      			module: "compliments",
      			position: "lower_third",
      			config: {
      			   compliments: {
      				  anytime: [
      					 "Bonjour",
      					 "comment vas-tu?"
      				  ],
      				  morning: [
      					 "Bien dormi?",
      					 "Bonne journée!",
      					 "Bonjour!"
      				  ],
      				  evening: [
      					 "Bonne soirée!",
      					 "Repose toi bien!",
      					 "Bonne nuit..."
      				  ]
      			   }
      			}
      		},
      {
        module: "MMM_Webradio",
        header: "Webradio",
        position: "bottom_right",
        config: {
          startindex: 1,
          initialVolume: 50,
          streams: [
            {
              text: "radio NRJ",
              url: "http://185.52.127.163/fr/30001/mp3_128.mp3?origine=fluxradios"
            }]
        }
      },
      		{
      			module: "clock",
      			position: "top_left",	// This can be any of the regions.
      			config: {
      				displayType: "analog",
      				secondsColor: "#ff0000"// The config property is optional.
      				// See 'Configuration options' for more information.
      			}
      		},
      		{
                  module: "MMM-LocalTemperature",
                  position: "top_right", // Only add a position if you want this module to display the data
                  header: "temperature de la piece",
                  config: {
      				sensorPin: 16,
      				sendTemperature: "true",
      				sendHumidity: "true",
      				showTemperature: "true",
      				showHumidity: "true",
      				iconView: "true",
      				updateInterval: 0.5,
                  }
      		},
      		{
      			module: 'MMM-Screencast',
      			position: 'bottom_right', // This position is for a hidden <div /> and not the screencast window
      			config: {
      				position: 'bottomRight',
      				height: 300,
      				width: 500,
      			}
      		},
      		{
      			module: "MMM-DarkSkyForecast",
      			header: "Weather",
      			position: "top_right",
      			classes: "default everyone",
      			disabled: false,
      			config: {
      			  apikey: ",
      			  latitude: "",
      			  longitude: ",      
      			  iconset: "4c",
      			  concise: false,
      			  language: "fr",
      			label_timeFormat: "k[h]",
      			label_days: ["Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam"],
      			  forecastLayout: "table"
      			}
      		  },
      	{
        module: "MMM-Hotword",
        config: {
          chimeOnFinish: null,
          mic: {
            recordProgram: "arecord",
            device: "plughw:1"
          },
          models: [
            {
        hotwords: "computer",
        file: "computer.umdl",
        sensitivity: "0.5",
      },
          ],
          commands: {
            "computer": {
              notificationExec: {
                notification: "ASSISTANT_ACTIVATE",
                payload: (detected, afterRecord) => {
                  return {profile:"default"}
                }
              },
              restart:false,
              afterRecordLimit:0
            }
          }
        }
      },
      	{
      		module: "MMM-AssistantMk2",
      		position: "top_right",
      		config: {
      			deviceLocation: {
      				coordinates: { // set the latitude and longitude of the device to get localized information like weather or time. (ref. mygeoposition.com)
      				latitude: 
      				longitude: 
      				},
      			},
      			record: {
      				recordProgram : "arecord",  
      				device        : "plughw:1",
      			},
      			transcriptionHook: {
      				"START_RADIO" : {
      					pattern : "play radio",
      					command: "RADIO_ONOFF"
      				  },
      				  "STOP_RADIO" : {
      					pattern : "stop radio",
      					command: "RADIO_ONOFF"
      				  },
      				},
      			  
      				command: {
      				  "START_RADIO": {
      					notificationExec: {
      					  notification: "WEBRADIO_ONOFF",
      					}
      				  },
      				  "STOP_RADIO": {
      					notificationExec: {
      					  notification: "WEBRADIO_ONOFF"
      					}
      				  },
        "SHOW_ALL_MODULES": {
          pattern: "show all",
          command: "SHOWMODULES"
        },
        "SCREEN_ON": {
          pattern: "allume l'écran",
          command: "SCREENON"
        },
        "SCREEN_OFF": {
          pattern: "éteins l'écran",
          command: "SCREENOFF"
        },
        "REBOOT": {
          pattern: "redémarre",
          command: "REBOOT"
        },
        "SHUTDOWN": {
          pattern: "éteins le miroir",
          command: "SHUTDOWN"
        }
      },
      			notifications: {
      				ASSISTANT_ACTIVATED: "HOTWORD_PAUSE",
      				ASSISTANT_DEACTIVATED: "HOTWORD_RESUME",
      				SAY_TEXT: "ASSISTANT_SAY",
      				DEFAULT_HOOK_NOTIFICATION: "ASSISTANT_HOOK",
      				WEBRADIO_ONOFF: "WEBRADIO_ONOFF",
      			},
      			screenDuration: 3000,
      			pauseOnYoutube: false,
      			youtubePlayQuality: "small",
      			useWelcomeMessage: "",
      			profiles: {
      				"default" : {
      					lang: "fr-FR"
      				}
      			},
      		}
      	},
      	]
      
      };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== "undefined") {module.exports = config;}
      

      Do I have to create a recipe.js in the folder
      MMM-AssistantMk2 / recipes?

      posted in Utilities
      L
      Lasmazze
    • RE: MMM-Assistantmk2 & MMM-Webradio

      Hello,

      Thank you very much for your answer, I will try tonight, I’ll give you news.

      posted in Utilities
      L
      Lasmazze
    • MMM-Assistantmk2 & MMM-Webradio

      Good evening,

      I’m new, and I do not know if I’m in the right place. And I do not know anything about codes. 😄

      I would like to activate the webradio module via assistantmk2.

      Do I have to create a new recipe in the recipes folder? and how to code it? And do I have to write a command in the config.js file?

      Thank you very much for your help, I hope you understood me and sorry for my english. 😉

      posted in Utilities
      L
      Lasmazze
    • 1 / 1