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.

    snowboy Install Failure

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    13 Posts 5 Posters 4.5k Views 5 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.
    • ? Offline
      A Former User @binaryhellstorm
      last edited by

      @binaryhellstorm
      First, you’d better check Hotword standalone without other modules in config.js (to make things simple)
      Backup your current config.js and make a new one, which has only MMM-Hotword and other modules be removed.
      Then try to execute and see the log (It is convenient to use npm start dev instead pm2), If there is some issue, it will be logged.
      Then show me your config.

      1 Reply Last reply Reply Quote 0
      • B Offline
        binaryhellstorm
        last edited by

        Ok, here’s the bog standard config with just the hotword module loaded, still don’t get an icon for it.
        I am noticing that in the terminal window there is a
        [HOTWORD] No model to load

        Even though there are models in the directory
        /home/pi/MagicMirror/modules/MMM-Hotword/models
        as well as
        /home/pi/MagicMirror/modules/MMM-Hotword/snoboy/resources/models

        /* 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: "en",
        timeFormat: 24,
        units: "metric",
        
        modules: [
        	{
        		module: "alert",
        	},
        	{
        		module: "updatenotification",
        		position: "top_bar"
        	},
        	{
        		module: "clock",
        		position: "top_left"
        	},
        	{
        		module: "calendar",
        		header: "US Holidays",
        		position: "top_left",
        		config: {
        			calendars: [
        				{
        					symbol: "calendar-check",
        					url: "webcal://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics"					}
        			]
        		}
        	},
        	{
        		module: "compliments",
        		position: "lower_third"
        	},
        	{
        		module: "currentweather",
        		position: "top_right",
        		config: {
        			location: "New York",
        			locationID: "",  //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
        			appid: "YOUR_OPENWEATHER_API_KEY"
        		}
        	},
        	{
        		module: "weatherforecast",
        		position: "top_right",
        		header: "Weather Forecast",
        		config: {
        			location: "New York",
        			locationID: "5128581",  //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
        			appid: "YOUR_OPENWEATHER_API_KEY"
        		}
        	},
        	{
        		module: "newsfeed",
        		position: "bottom_bar",
        		config: {
        			feeds: [
        				{
        					title: "New York Times",
        					url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
        				}
        			],
        			showSourceTitle: true,
        			showPublishDate: true,
        			broadcastNewsFeeds: true,
        			broadcastNewsUpdates: true
        		}
        	},
        	//Hotword Module
        

        {
        module: “MMM-Hotword”,
        config: {
        record: {
        recordProgram : “arecord”,
        device : “plughw:1”,
        },
        autostart:true,
        onDetected: {
        notification: function (payload) {
        return “ASSISTANT_ACTIVATE”
        },
        payload: function (payload){
        return {
        profile: payload.hotword
        }
        }
        },
        },
        },
        ]

        };

        /*************** DO NOT EDIT THE LINE BELOW ***************/
        if (typeof module !== “undefined”) {module.exports = config;}

        ? 1 Reply Last reply Reply Quote 0
        • ? Offline
          A Former User @binaryhellstorm
          last edited by

          @binaryhellstorm
          You haven’t described “models” in your configuration.
          https://github.com/eouia/MMM-Hotword/blob/master/documents/config.md

          1 Reply Last reply Reply Quote 0
          • B Offline
            binaryhellstorm
            last edited by

            Awesome! That was it, thanks so much for the help.

            ? 1 Reply Last reply Reply Quote 0
            • ? Offline
              A Former User @binaryhellstorm
              last edited by

              @binaryhellstorm After fixing this error, Does your magic mirror in snowboy,hotword is work on Google Ai?

              1 Reply Last reply Reply Quote 0
              • B Offline
                binaryhellstorm
                last edited by

                The hotword detection is working and it’s passing it to the Google Assistant module and that module is working too

                ? 1 Reply Last reply Reply Quote 1
                • ? Offline
                  A Former User @binaryhellstorm
                  last edited by

                  @binaryhellstorm Can you show me the modified config file or e-mail it to me?

                  citizendevpiC S 2 Replies Last reply Reply Quote 0
                  • citizendevpiC Offline
                    citizendevpi @Guest
                    last edited by

                    @kai did you vr get the updated config ? i am also in need

                    ? 1 Reply Last reply Reply Quote 0
                    • ? Offline
                      A Former User @citizendevpi
                      last edited by

                      @citizendevpi no I’ve not yet

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        sdetweil @Guest
                        last edited by sdetweil

                        @kai i use the sample config

                        {
                          module: "MMM-Hotword",
                          position: "top_right",
                          config: {
                            chimeOnFinish: null,
                            mic: {
                              recordProgram: "arecord",
                              device: "plughw:1"
                            },
                            models: [    // this is the start of the models, note this is an array, so you can have multiple word choices
                              {
                                hotwords    : "computer",  // what word you expect to hear
                                file        : "computer.umdl",  // where it gets the wave pattern model file
                                sensitivity : "0.5",
                              },
                            ],
                            commands: {
                              "computer": {
                                notificationExec: {
                                  notification: "ASSISTANT_ACTIVATE",
                                  payload: (detected, afterRecord) => {
                                    return {profile:"default"}
                                  }
                                },
                                restart:false,
                                afterRecordLimit:0
                              }
                            }
                          }
                        },
                        

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • 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