Read the statement by Michael Teeuw here.
snowboy Install Failure
-
@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 usenpm start dev
insteadpm2
), If there is some issue, it will be logged.
Then show me your config. -
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 loadEven 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;} -
@binaryhellstorm
You haven’t described “models” in your configuration.
https://github.com/eouia/MMM-Hotword/blob/master/documents/config.md -
Awesome! That was it, thanks so much for the help.
-
@binaryhellstorm After fixing this error, Does your magic mirror in snowboy,hotword is work on Google Ai?
-
The hotword detection is working and it’s passing it to the Google Assistant module and that module is working too
-
@binaryhellstorm Can you show me the modified config file or e-mail it to me?
-
@kai did you vr get the updated config ? i am also in need
-
@citizendevpi no I’ve not yet
-
@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 } } } },