Hi,
your config is missing a closing bracket } in the config of the camera module. To be specific, it seems like the closing bracket of “auth:” is missing.
And it also seems weird to me that after “config:” there is no object (in brackets), but that’s how the readme of the module shows the example configuration.
{
module: "camera",
position: "top_center",
config: { // added this one, maybe missing/wrong in the example?
selfieInterval: 3, // Time interval in seconds before the photo will be taken.
emailConfig: {
service: "GMail", // Email provider to use to send email with a photo.
auth: {
user: "", // Your email account
pass: "" // Your password for email account
} // this one was missing
}
} // added this one, maybe missing/wrong in the example?
},
And also a closing bracket missing for the config: of the voicecontrol module:
{
module: "voicecontrol",
position: "bottom_left",
config: {
models: [
{
keyword: "Show Camera",
description: "Say 'Show Camera' to display camera",
file: "showCamera.pmdl",
message: "SHOW_CAMERA"
},
{
keyword: "Hide Camera",
description: "Say 'Hide Camera' to hide camera",
file: "hideCamera.pmdl",
message: "HIDE_CAMERA"
},
{
keyword: "Selfie",
description: "Say 'Selfie' when camera is visible",
file: "selfie.pmdl",
message: "SELFIE"
},
]
} // this one was missing
},
Some thing’s to consider: Use one sort of quotes throughout the file for strings of text. The config.js uses " while some module’s authors use '. Usually not a problem, but it’s cleaner to stick with one and helps minimize problems, for example when we look at this line from your config (which is not a problem but shows where it gets complicated):
description: "Say 'Show Camera' to display camera",
Some good ideas for people running into this to check their configs:
- remove the last added module, run again, see if the problem is gone, if so, re-add the module and check brackets and commas, if not, re-add it, it wasn’t the source of the problem, check the next one.
- or directly go through your file and check that every opening bracket has a matching closing bracket.
Some text editors will highlight the closing bracket if you select the opening bracket be setting the cursor to it, or the other way round (Sublime Text does).