• 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.

Profile Switcher - RC522 RFID

Scheduled Pinned Locked Moved Unsolved Requests
13 Posts 3 Posters 5.0k Views 3 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.
  • M Offline
    miguel.abap
    last edited by Mar 7, 2019, 6:07 PM

    Hey everyone! I’m new in the forum in magicmirror type projects amd i have very little programming skills, but i have successfully assembled a magic mirror and have in working know :)
    I searched extensively to find a means to change profiles using a RC522 reader connected to a Raspberry pi 3 but have not fund nothing substancial :/ I see lots of applications with this format of identification with a simple swipe of a card and i would love some help !!!

    I know i can’t be the first one trying this out ;)

    S 1 Reply Last reply Mar 7, 2019, 6:59 PM Reply Quote 0
    • S Offline
      sdetweil @miguel.abap
      last edited by Mar 7, 2019, 6:59 PM

      @miguel-abap should be pretty easy if the RFID reader works

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • M Offline
        miguel.abap
        last edited by Mar 7, 2019, 7:07 PM

        It seams to be working i got it today and connected with some jumper cables to the raspberry pi.
        I just now found this https://github.com/hebestreit/MMM-RFID/ later today i’ll try this method and see if it works :)

        R 1 Reply Last reply Mar 27, 2019, 9:51 PM Reply Quote 0
        • R Offline
          richland007 @miguel.abap
          last edited by Mar 27, 2019, 9:51 PM

          @miguel-abap Hi there did you get htis to work??
          I have not tried it yet (i just got my RC522) and both me and my wife have rfid/nfc on our wedding rings so it will be cool to switch profiles by grabbing the left side of the mirror frame where the RC522 will be installed.

          Let me know please if you ran into any issues
          Denis

          1 Reply Last reply Reply Quote 1
          • R Offline
            richland007
            last edited by May 24, 2019, 4:12 AM

            @miguel-abap @sdetweil I am trying to run this module but here is what i get…has anyone else gotten this to work??

            Please help it will really help me a lot and it will be really cool if i get this to work

            D
            0_1558671166407_MMM-RFID.png

            1 Reply Last reply Reply Quote 1
            • M Offline
              miguel.abap
              last edited by May 29, 2019, 1:04 PM

              @richland007 Hey there, i couldn’t get it working, i stepped from the project, im going to try again!

              1 Reply Last reply Reply Quote 0
              • M Offline
                miguel.abap
                last edited by May 29, 2019, 1:07 PM

                If anyone in the comunity would like to give us a hand it would be GREAT!!

                R 1 Reply Last reply Jun 4, 2019, 5:29 AM Reply Quote 0
                • R Offline
                  richland007 @miguel.abap
                  last edited by Jun 4, 2019, 5:29 AM

                  @miguel-abap OK so i made some progress than i got stuck again
                  What i mean is that it seems like everything should be working fine but when i try to scan the tag the profiles do not change!!
                  I do not know how to troubleshoot this meaning that:… is it something wrong with the configs of the MMM-ProfileSwitcher part or is it the fault of the MMM-RFID not sending what it is supposed to be sending to ProfileSwitcher??

                  If you are stuck where i was earlier (please look at the screen shot on my messages above) i found the solution here and i got to write and read my tags just fine (that’s what makes me think that the MMM-RFID module is working)

                  https://stackoverflow.com/questions/54847012/raspberry-pi-3b-and-rfid-rc522-python-typeerror/55024642#55024642

                  but i do not know for sure if MMM-RFID is doing its job and converting the tags decimal value and sending the right ASCII to MMM-ProfileSwitcher either.

                  So first how is a working config of the MMM-ProfileSwitcher part supposed to look like in this case and how can we trigger it with the classes: names and than move on to MMM-RFID part and try to figure out what and how is it sending to MMM-ProfileSwitcher if anything at all.

                  I do not see any errors but yet again i do not know where to look in details in a console when the mirror loads up or when we scan a tag

                  Denis

                  S 1 Reply Last reply Jun 4, 2019, 11:12 AM Reply Quote 0
                  • S Offline
                    sdetweil @richland007
                    last edited by Jun 4, 2019, 11:12 AM

                    @richland007 open the developers console, either by

                    npm start dev

                    when you start the mirror

                    or ctrl-shift-i

                    when then mirror is running

                    then select the console tab

                    these tools send notifications from one module to another…
                    so you should see those messages in the console

                    you can also filter the messages by the name of the file so
                    put rfid in the filter field to see only messages sent from the rfid module

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 1
                    • R Offline
                      richland007
                      last edited by Jun 5, 2019, 3:38 AM

                      @sdetweil @miguel-abap Ok so i see that the modules are receiving data from MMM-RFID on the console under npm start dev when i scan the rfid tag. RFID_DATA and RFID_UID… do not know why 2 different ones

                      0_1559703351342_consoleRFID.png

                      But what kind of data?? Where can i see if they are receiving Denis or Eva or just the decimal value stored on the tag etc etc??

                      Hers is my config.js entry for the MMM-RFID module and the MMM-ProfileSwitcher and also all my modules have the appropriate classes entry assigned according to our names for whatever module belonging to each one of us

                      {
                              module: 'MMM-RFID',
                              config: {
                                  events: {
                                      Eva: [ // data on rfid tag as decimal block will be used as identifier [0691180970000000]
                                          {
                                              CURRENT_PROFILE: "Eva" // i.e. "CURRENT_PROFILE" is used for notification identifier and "Eva" for notification payload
                                          }
                                      ],
                                      Denis: [ // data on rfid tag as decimal block will be used as identifier [0681011101051150]
                                          {
                                              CURRENT_PROFILE: "Denis" // i.e. "CURRENT_PROFILE" is used for notification identifier and "Denis" for notification payload
                                          }
                                      ]
                                               
                                  }
                              }
                          },
                      
                      
                      {
                              module: 'MMM-ProfileSwitcher',
                              config: { // See 'Configuration options' for more information.
                                 includeEveryoneToDefault: true,
                                 alwaysShowLeave: true,
                                 ignoreModules: ["alert", "updatenotification"],
                                 enterMessages: {
                                      "Denis Eva": "What's up %profile%?", // We both have this message
                                                },
                                 leaveMessages: false,
                                 defaultTime: 120000,
                                 timers: {
                                          "Eva": {
                                           time: 60 * 1000
                                           },
                                           }
                              }
                          }, 
                      

                      so on each of our MM modules we have classes: for “default everyone” and “Denis” or “Eva”

                      what am i doing wrong ??

                      Denis

                      S 1 Reply Last reply Jun 5, 2019, 4:03 PM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      • 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