Hi guys,
It seems my Hello-Lucy module doesnt load sentences, only words.
At least this is my explaination why Lucy doesnt understand me correctly. It seems it only takes words like “who” and “the”, which i can see in the terminal:
![0_1618322341814_f9478479-842d-4043-a952-b4a812810841-image.png](Uploading 100%)
So my first issue which leads me to there was, that my Lucy-module wont start until i initialized
var importedSentences="";
in Hello-Lucy.js.
So maybe improtedSentences is never filled with the data of sentences.json in Hello-Lucy-Folder.
I got an error with concat on line 69:
start() {
var combinedSentences = importedSentences.concat(this.lucy.sentences);
....
Also i had some problems with module_name var, so i had to change to
Module.register("Hello-Lucy",
in line 28.
SO maybe my “localPath” is wrong. Im not sure. Anyone any ideas?
/home/pi/MagicMirror/modules/Hello-Lucy