UNSOLVED Magic Mirror script ERROR when executing saying face_rec_name not defined in node_helper.js
Anyone able to help me out here? I’m fairly new still to all of this and have been looking through different posts on troubleshooting and that helped solve a lot of issues I ran into that way, I can’t seem to figure this out.
When running the MagicMirror I’m getting this error:
[11.10.2021 05:29.26.184] [ERROR] Whoops! There was an uncaught exception…
[11.10.2021 05:29.26.192] [ERROR] ReferenceError: face_rec_name is not defined
at /home/pi/MagicMirror/modules/MMM-Face-Recognition-SMAI/node_helper.js:41: 12
at FSReqCallback.oncomplete (fs.js:171:23)
[11.10.2021 05:29.26.194] [ERROR] MagicMirror will not quit, but it might be a g ood idea to check why this happened. Maybe no internet connection?
[11.10.2021 05:29.26.196] [ERROR] If you think this really is an issue, please o pen an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
I’ve gone through the node_helper.js and it does seem like it just calls these variables without them having clear values/values that weren’t only part of their if clause. I’m not too familiar with code (especially js) which is why I’m struggling to fix it.
If you need more context let me know, I didn’t want to write up a really long problem.
not many have worked with that module
but looking at the node_helper that variable is set from info from
I thought that might’ve been the case, but thought maybe it was a simple fix I just couldn’t recognise.
Okay, so it’s getting the information out of the ‘…/sample.txt’ file.
I looked in the ‘sample.txt’ file and it only contains the word ‘Guest’ nothing else, do you think that means I should be adding information into the ‘sample.txt’ file for it to read?
Thank you, I’ll also ask the dev and see if they can shed some light on it.
@jawz_44 looks like the py script writes to that file. sort of like registering a user I think.
not a lot of doc there