• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Magic Mirror script ERROR when executing saying face_rec_name not defined in node_helper.js

Scheduled Pinned Locked Moved Unsolved Troubleshooting
4 Posts 2 Posters 584 Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    jawz_44
    last edited by Oct 10, 2021, 7:49 PM

    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.
    Thank You!

    S 1 Reply Last reply Oct 10, 2021, 7:55 PM Reply Quote 0
    • S Offline
      sdetweil @jawz_44
      last edited by Oct 10, 2021, 7:55 PM

      @jawz_44 said in Magic Mirror script ERROR when executing saying face_rec_name not defined in node_helper.js:

      MMM-Face-Recognition-SMAI

      not many have worked with that module

      but looking at the node_helper that variable is set from info from

      fs.readFile(“/home/pi/MagicMirror/modules/MMM-Face-Recognition-SMAI/sample.txt”

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      J 1 Reply Last reply Oct 11, 2021, 12:00 PM Reply Quote 0
      • J Offline
        jawz_44 @sdetweil
        last edited by Oct 11, 2021, 12:00 PM

        @sdetweil
        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.

        S 1 Reply Last reply Oct 11, 2021, 12:11 PM Reply Quote 0
        • S Offline
          sdetweil @jawz_44
          last edited by Oct 11, 2021, 12:11 PM

          @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

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          1 / 1
          • First post
            1/4
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy