• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.1k 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 Sep 15, 2019, 8:32 AM

    @binaryhellstorm

    ✔ Rebuild Complete
    electron-v3.1-linux-arm node-v64-linux-arm
    lib/node/index.js

    means you completed installation finally.

    1 Reply Last reply Reply Quote 0
    • B Offline
      binaryhellstorm
      last edited by Sep 15, 2019, 12:42 PM

      Ah Ok, I guess I assumed the errors were bad.

      So then I guess my next question is, why would Hotword detection not work? I’ve enabled it in the config.js and I get the Google Assistant icon at the bottom of my screen, but no hotword icon, and saying any of the built in hotwords doesn’t seem to do anything.

      I’ve done test recordings from command line and the microphone is picking up audio, but just no dice on getting the mirror to respond to voice commands.

      ? 1 Reply Last reply Sep 15, 2019, 12:46 PM Reply Quote 0
      • ? Offline
        A Former User @binaryhellstorm
        last edited by Sep 15, 2019, 12:46 PM

        @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 Sep 15, 2019, 1:06 PM

          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 Sep 15, 2019, 6:12 PM Reply Quote 0
          • ? Offline
            A Former User @binaryhellstorm
            last edited by Sep 15, 2019, 6:12 PM

            @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 Sep 21, 2019, 11:45 PM

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

              ? 1 Reply Last reply Sep 29, 2019, 5:38 AM Reply Quote 0
              • ? Offline
                A Former User @binaryhellstorm
                last edited by Sep 29, 2019, 5:38 AM

                @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 Sep 29, 2019, 9:49 PM

                  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 Oct 2, 2019, 2:20 PM Reply Quote 1
                  • ? Offline
                    A Former User @binaryhellstorm
                    last edited by Oct 2, 2019, 2:20 PM

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

                    citizendevpiC S 2 Replies Last reply Oct 4, 2019, 2:34 AM Reply Quote 0
                    • citizendevpiC Offline
                      citizendevpi @Guest
                      last edited by Oct 4, 2019, 2:34 AM

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

                      ? 1 Reply Last reply Oct 5, 2019, 2:18 AM 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