@sdetweil
Tested the mic and speaker is working
Below is the pm2 log
pi@raspberrypi:~ $ pm2 log
[TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option)
/home/pi/.pm2/pm2.log last 15 lines:
PM2 | 2021-02-19T03:13:56: PM2 log: Stopping app:mm id:0
PM2 | 2021-02-19T03:13:56: PM2 log: App [mm:0] exited with code [0] via signal [SIGINT]
PM2 | 2021-02-19T03:13:56: PM2 log: pid=6721 msg=process killed
PM2 | 2021-02-19T03:13:56: PM2 log: App [mm:0] starting in -fork mode-
PM2 | 2021-02-19T03:13:56: PM2 log: App [mm:0] online
PM2 | 2021-02-19T03:16:29: PM2 log: Stopping app:mm id:0
PM2 | 2021-02-19T03:16:29: PM2 log: App [mm:0] exited with code [0] via signal [SIGINT]
PM2 | 2021-02-19T03:16:29: PM2 log: pid=7359 msg=process killed
PM2 | 2021-02-19T03:16:29: PM2 log: App [mm:0] starting in -fork mode-
PM2 | 2021-02-19T03:16:29: PM2 log: App [mm:0] online
PM2 | 2021-02-19T03:18:25: PM2 log: Stopping app:mm id:0
PM2 | 2021-02-19T03:18:25: PM2 log: App [mm:0] exited with code [0] via signal [SIGINT]
PM2 | 2021-02-19T03:18:25: PM2 log: pid=7508 msg=process killed
PM2 | 2021-02-19T03:18:25: PM2 log: App [mm:0] starting in -fork mode-
PM2 | 2021-02-19T03:18:25: PM2 log: App [mm:0] online
/home/pi/.pm2/logs/mm-error.log last 15 lines:
0|mm |
0|mm | SyntaxError: Unexpected token ‘]’
0|mm | at Module._compile (internal/modules/cjs/loader.js:896:18)
0|mm | at Object.Module._extensions…js (internal/modules/cjs/loader.js:986:10)
0|mm | at Module.load (internal/modules/cjs/loader.js:816:32)
0|mm | at Module._load (internal/modules/cjs/loader.js:728:14)
0|mm | at Function.Module._load (electron/js2c/asar.js:748:26)
0|mm | at Module.require (internal/modules/cjs/loader.js:853:19)
0|mm | at require (internal/modules/cjs/helpers.js:74:18)
0|mm | at loadConfig (/home/pi/MagicMirror/js/app.js:70:12)
0|mm | at App.start (/home/pi/MagicMirror/js/app.js:217:3)
0|mm | at Object. (/home/pi/MagicMirror/js/electron.js:129:7)
0|mm | [19.02.2021 03:16.32.176] [WARN] (electron) The default value of app.allowRendererProcessReuse is deprecated, it is currently “false”. It will change to be “true” in Electron 9. For more information please check https://github.com/electron/electron/issues/18397
0|mm | [19.02.2021 03:18.28.111] [WARN] You’re using a full whitelist configuration to allow for all IPs
0|mm | [19.02.2021 03:18.28.414] [WARN] (electron) The default value of app.allowRendererProcessReuse is deprecated, it is currently “false”. It will change to be “true” in Electron 9. For more information please check https://github.com/electron/electron/issues/18397
/home/pi/.pm2/logs/mm-out.log last 15 lines:
0|mm | [19.02.2021 03:18.28.119] [LOG] Connecting socket for: MMM-Page-Selector
0|mm | [19.02.2021 03:18.28.120] [LOG] Connecting socket for: updatenotification
0|mm | [19.02.2021 03:18.28.121] [LOG] Connecting socket for: calendar
0|mm | [19.02.2021 03:18.28.122] [LOG] Starting node helper for: calendar
0|mm | [19.02.2021 03:18.28.123] [LOG] Connecting socket for: newsfeed
0|mm | [19.02.2021 03:18.28.124] [LOG] Starting node helper for: newsfeed
0|mm | [19.02.2021 03:18.28.124] [LOG] Sockets connected & modules started …
0|mm | [19.02.2021 03:18.28.382] [LOG] Launching application.
0|mm | [19.02.2021 03:18.30.718] [LOG] Create new calendar fetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000
0|mm | [19.02.2021 03:18.30.742] [LOG] Create new news fetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
0|mm | [19.02.2021 03:18.30.835] [INFO] Checking git for module: MMM-page-indicator
0|mm | [19.02.2021 03:18.30.838] [INFO] Checking git for module: MMM-Page-Selector
0|mm | [19.02.2021 03:18.30.839] [INFO] Checking git for module: MMM-Voice-Commands
0|mm | [19.02.2021 03:18.31.483] [INFO] Newsfeed-Fetcher: Broadcasting 62 items.
0|mm | [19.02.2021 03:18.32.670] [INFO] Calendar-Fetcher: Broadcasting 10 events.
Below is my config file
{
module: ‘MMM-page-indicator’,
position: ‘bottom_bar’,
config: {
pages: 4,
}
},
{
module: “MMM-Page-Selector”,
position: “top_center”,
config: {
defaultPage: “main”,
displayTitle: true,
selectPageNotif: [“SELECT_PAGE”],
incrementPageNotif: [“PAGE_UP”],
decrementPageNotif: [“PAGE_DOWN”],
persistentPages: true,
}
},
{
module: “MMM-Voice-Commands”,
config: {
debug: true, //Displays end results and errors from annyang in the Log
autoStart: true, //Adds annyang commands when it first starts
activateCommand: “hello mirror”, //Command to active all other commands
deactivateCommand: “goodbye mirror”, //Command to deactivate all other commands
alertHeard: true, //Whether an alert should be shown when annyang hears a phrase (mostly for debug)
commands: {
// “command statement :variable (optional statement)”: //“SOCKET_NOTIFICATION_NAME”,
//The payload of the socket notification will be whatever is said in the :variable
//“command statement *variable”: function(param){
//alert("Whatever is said in the *variable space is given as the "+param);
//These function’s ‘this’ are bound to the module’s ‘this’ so you can do stuff like:
//this.sendNotification(“PAGE_SELECT”, “2”);
“go to (page) :number”: “PAGE_SELECT”,
“switch to (the) :page (page)”: “PAGE_SELECT”
}
}
},
{
module: "alert",
},
{
module: "updatenotification",
position: "top_bar",
},
{
module: "clock",
name: "clock_module",
//pages: {"main": "top_left", "weather": "top_left"}
position: "top_left", //module position is determine by page config
},
{
module: "calendar",
name: "calendar_module",
header: "US Holidays",
position: "top_left", //module position is determine by page config
config: {
calendars: [
{
symbol: "calendar-check",
url: "webcal://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics" }
]
}
},
{
module: "compliments",
name: "compliments_module",
position: "lower_third",
},
{
module: "currentweather",
name: "currentweather_module",
position: "top_right", //module position is determine by page config
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",
name: "weatherforcast_module",
position: "top_right", //module position is determine by page config
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",
name: "newsfeed_module",
position: "bottom_bar",
config: {
feeds: [
{
title: "New York Times",
url: "https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml"
}
],
showSourceTitle: true,
showPublishDate: true,
broadcastNewsFeeds: true,
broadcastNewsUpdates: true
}
},
],
pages: {
main: {
“clock”: “top_right”,
“calendar_module”: “top_left”
},
compliment: {
“compliments_module”: “lower_third”
},
weather: {
“currentweather_module”: “top_left”,
“weatherforcast_module”: “top_left”
},
information: {
"newsfeed_module": "bottom_bar"
},
},
exclusions: {
“MMM-page-indicator”: “bottom_bar”
},
@sdetweil said in voice module help:
@derick4963 gotta get the voice command to work 1st…
can u show any messages in the window where u start mm.
npm start
or if using pm2, pm2 logs
command