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.

    MMM-RFID and MMM-Profileswitcher with RC522

    Scheduled Pinned Locked Moved Troubleshooting
    10 Posts 2 Posters 1.3k 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.
    • K Offline
      Kavilan
      last edited by

      Re: Profile Switcher - RC522 RFID

      Hi all, I’ve been trying to get my RFID tag to switch profile and I have referred every solution so far I can’t seem to get MMM-RFID to detect my card in MagicMirror. When i run the test given it can read the card and the data but when i run npm start dev, I can’t see anything about notifcation getting sent when i scan my RFID. Any help is greatly appreciated.

      S 1 Reply Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @Kavilan
        last edited by

        @kavilan said in MMM-RFID and MMM-Profileswitcher with RC522:

        MMM-RFID

        did u do the steps in the doc to program the rfid tag?

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        K 1 Reply Last reply Reply Quote 1
        • K Offline
          Kavilan @sdetweil
          last edited by

          @sdetweil Yeah I’ve done that and when I run the test read.py from MMM_RFID it shows the UID and the Data in decimals. sc.jpeg

          And this is the config.
          code.png

          S 1 Reply Last reply Reply Quote 0
          • S Do not disturb
            sdetweil @Kavilan
            last edited by

            @kavilan the code says it uses

            python MFRC522-python/Dump.py
            (from the module folder)

            to read the rfid chip on the pi

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            K 1 Reply Last reply Reply Quote 1
            • K Offline
              Kavilan @sdetweil
              last edited by

              @sdetweil When I run Dump.py I still am able to scan the RFID tag and the correct data is shown. SoI dont know why it doesn’t work when running MagicMirror

              S 1 Reply Last reply Reply Quote 0
              • S Do not disturb
                sdetweil @Kavilan
                last edited by

                @kavilan ok, the just send a notice that an rfid was read…

                open the developers window, ctrl-shift-i on the MM keyboard and
                select the tab labeled console

                you should be able to see the events being sent out
                “RFID_UID”, payload
                and
                “RFID_DATA”, payload

                and any events in the config events list

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                K 1 Reply Last reply Reply Quote 1
                • K Offline
                  Kavilan @sdetweil
                  last edited by

                  @sdetweil Yeah this is how I found out there are no events being sent out by MMM-RFID. I have two tags and I’ve tried both and nothing new shows up in the console

                  S 1 Reply Last reply Reply Quote 0
                  • S Do not disturb
                    sdetweil @Kavilan
                    last edited by sdetweil

                    @kavilan when u ran the python pgm, did you use python or python3 as the command?

                    the module uses python

                    to change u can edit the rfid.js file and change this line

                       this.rc522py = this.spawn('python', ['-u', __dirname + '/MFRC522-python/Dump.py']);
                    

                    to use python3

                       this.rc522py = this.spawn('python'3, ['-u', __dirname + '/MFRC522-python/Dump.py']);
                    

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    K 1 Reply Last reply Reply Quote 1
                    • K Offline
                      Kavilan @sdetweil
                      last edited by

                      @sdetweil I used python. Python 3 thrown error whenever used since all those codes don’t use () for print function.

                      S 1 Reply Last reply Reply Quote 0
                      • S Do not disturb
                        sdetweil @Kavilan
                        last edited by

                        @kavilan so it’s down to the output parser in the rfid.js

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • 1 / 1
                        • First post
                          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