Read the statement by Michael Teeuw here.
Adding Modules... Please Please advise
-
@wjdw87 Indeed, you can. The documentation for the newsfeed module gives a simple example.
-
Ah cool, updated that, but still have issues around the modules i’ve /// out
much appreciated though!
-
@wjdw87 Okay, I finally had some time so I looked at the file you linked.
As @strawberry-3-141 said, you have an issue on line 100, part of the configuration of the camera module. You have:
config: selfieInterval: 3, // Time interval in seconds before the photo will be taken.
You need to follow the config key with a JSON object, designated by curly braces. So the camera module section should look like so:
{ module: 'camera', position: 'top_center', config: { selfieInterval: 3 emailConfig: { service: 'gmail', auth: { user: '<xxx@xxx.com>', pass: '<xxx>' }, }, } },
It doesn’t help that the config section is wrong in the README.MD in the camera module. I’ll see if I can’t get a PR to fix that.
-
Additionally, you are missing a closed square bracket in your configuration for the VoiceControl module. After you define your keywords, you need to close the array. The second to last line of your voicecontrol configuration is where it needs to go. Like so:
{ 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" } ] // **HERE** },
-
@bhepler said in Adding Modules... Please Please advise:
@wjdw87 Okay, I finally had some time so I looked at the file you linked.
As @strawberry-3-141 said, you have an issue on line 100, part of the configuration of the camera module. You have:
config: selfieInterval: 3, // Time interval in seconds before the photo will be taken.
You need to follow the config key with a JSON object, designated by curly braces. So the camera module section should look like so:
{ module: 'camera', position: 'top_center', config: { selfieInterval: 3 emailConfig: { service: 'gmail', auth: { user: '<xxx@xxx.com>', pass: '<xxx>' }, }, } },
It doesn’t help that the config section is wrong in the README.MD in the camera module. I’ll see if I can’t get a PR to fix that.
@bhepler said in Adding Modules... Please Please advise:
Additionally, you are missing a closed square bracket in your configuration for the VoiceControl module. After you define your keywords, you need to close the array. The second to last line of your voicecontrol configuration is where it needs to go. Like so:
{ 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" } ] // **HERE** },
Many thanks