MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    MMM-RFID and MMM-Profileswitcher with RC522

    Troubleshooting
    2
    10
    368
    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
      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
        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

        Create a working config
        How to add modules

        K 1 Reply Last reply Reply Quote 1
        • K
          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
            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

            Create a working config
            How to add modules

            K 1 Reply Last reply Reply Quote 1
            • K
              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
                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

                Create a working config
                How to add modules

                K 1 Reply Last reply Reply Quote 1
                • K
                  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
                    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

                    Create a working config
                    How to add modules

                    K 1 Reply Last reply Reply Quote 1
                    • K
                      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
                        sdetweil @Kavilan last edited by

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

                        Sam

                        Create a working config
                        How to add modules

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy