MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Black screen after i added assistant and hotword to config

    Scheduled Pinned Locked Moved Troubleshooting
    2 Posts 2 Posters 133 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • O Offline
      Obakemono
      last edited by sdetweil

      Can anyone help ? im new to coding so help would be appreciated

      /* 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 = {
      	zoom: 1,
      	address: "", // 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: [], // 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: "en",
      	timeFormat: 24,
      	units: "metric",
      	// serverOnly:  true/false/"local" ,
      			     // local for armv6l processors, default 
      			     //   starts serveronly and then starts chrome browser
      			     // false, default for all  NON-armv6l devices
      			     // true, force serveronly mode, because you want to.. no UI on this device
      	
      	modules: [
      	    {
                     module: "MMM-Hotword",
       
                     position: "centre_top",
      
      	       config: {
      
      		chimeOnFinish: null,
      
      		mic: {
      
      			recordProgram: "arecord",
      
      			device: "plughw:1"
      
      		},
      
      		models: [
      
      			{
      
      				hotwords    : "smart_mirror",
      
      				file        : "smart_mirror.umdl",
      
      				sensitivity : "0.5",
      
      			},
      
      		],
      
      		commands: {
      
      			"smart_mirror": {
      
      				notificationExec: {
      
      					notification: "ASSISTANT_ACTIVATE",
      
      					payload: (detected, afterRecord) => {
      
      						return {profile:"default"}
      
      					}
      
      				},
      
      				restart:false,
      
      				afterRecordLimit:0
      
      			}
      
      		}
      
      	}
      
      },
      
      {
      
      	module: "MMM-AssistantMk2",
      
      	position: "centre_top",
      
      	config: {
      
      		deviceLocation: {
      
      			coordinates: {
      
      				latitude: 57.182937, // -90.0 - +90.0
      
      				longitude: 2.201246, // -180.0 - +180.0
      
      			},
      
      		},
      
      		record: {
      
      			recordProgram : "arecord",  
      
      			device        : "plughw:1",
      
      		},
      
      		notifications: {
      
      			ASSISTANT_ACTIVATED: "HOTWORD_PAUSE",
      
      			ASSISTANT_DEACTIVATED: "HOTWORD_RESUME",
      
      		},
      
      		useWelcomeMessage: "brief today",
      
      		profiles: {
      
      			"default" : {
      
      				lang: "en-US"
      
      			}
      
      		},
      
      	}
      
      },
      		{
      			module: "alert",
      		},
                      {
                              module: "compliments",
                              position: "lower_third"
                      },
      		{
      			module: "updatenotification",
      			position: "top_bar"
      		},
      		{
      			module: "clock",
      			position: "top_left"
      		},
      		{
      			module: "calendar",
      			header: "UK Holidays",
      			position: "top_left",
      			config: {
      				calendars: [
      					{
      						symbol: "calendar-check",
      						url: "webcal://www.calendarlabs.com/ical-calendar/ics/75/UK_Holidays.ics"					}
      				]
      			}
      		},
      		{
      			module: "currentweather",
      			position: "top_right",
      			config: {
      				location: "Aberdeen",
      				locationID: "2657832",  //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
      				appid: "b577b21d7aa76d1c63a88af2513126d2"
      			}
      		},
      		{
      			module: "weatherforecast",
      			position: "top_right",
      			header: "Weather Forecast",
      			config: {
      				location: "Aberdeen",
      				locationID: "2657832",  //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
      				appid: "b577b21d7aa76d1c63a88af2513126d2"
      			}
      		},
      		{
      			module: "newsfeed",
      			position: "bottom_bar",
      			config: {
      				feeds: [
      					{
      						title: "BBC News",
      						url: "http://feeds.bbci.co.uk/news/rss.xml"
      					}
      				],
      				showSourceTitle: true,
      				showPublishDate: true,
      				broadcastNewsFeeds: true,
      				broadcastNewsUpdates: true
      			}
      		},
      	]
      
      };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== "undefined") {module.exports = config;}
      
      
      1 Reply Last reply Reply Quote 0
      • ? Offline
        A Former User
        last edited by

        hi, i think it’s better for you reading offical wiki in each module on github website

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Enjoying MagicMirror? Please consider a donation!
        MagicMirror created by Michael Teeuw.
        Forum managed by Sam, technical setup by Karsten.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy