<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Profile Switcher - RC522 RFID]]></title><description><![CDATA[<p dir="auto">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 :)<br />
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 !!!</p>
<p dir="auto">I know i can’t be the first one trying this out ;)</p>
]]></description><link>https://forum.magicmirror.builders/topic/9983/profile-switcher-rc522-rfid</link><generator>RSS for Node</generator><lastBuildDate>Mon, 11 May 2026 06:43:01 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/9983.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 07 Mar 2019 18:07:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Profile Switcher - RC522 RFID on Thu, 06 Jun 2019 03:03:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/richland007" aria-label="Profile: richland007">@<bdi>richland007</bdi></a> I think the node helper strips the trailing spaces. I don’t know if the tag needs all 16 digits</p>
<p dir="auto">If there ARE trailing spaces, then it won’t match the config entries</p>
]]></description><link>https://forum.magicmirror.builders/post/57725</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/57725</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 06 Jun 2019 03:03:01 GMT</pubDate></item><item><title><![CDATA[Reply to Profile Switcher - RC522 RFID on Thu, 06 Jun 2019 02:54:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> For the tags i am 100% sure i have written them right i have tasted with the <a href="http://Read.py" target="_blank" rel="noopener noreferrer nofollow ugc">Read.py</a> script and others … One thing i am unsure of why are the zeros at the end needed?? In the online translator they just add spaces at the end of the name for no reason.<br />
Do i have to write the names with spaces in the back too i don’t think it makes sense or do i write the tags with out the zeros at the end??</p>
<p dir="auto">Another thing i am unsure off is that on the MMM-RFID config.js entry do i need to assign the tag values to the names or is that done by the module directly through “translation”</p>
<pre><code>{
        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
                    }
                ]
                         
            }
        }
    },

</code></pre>
<p dir="auto">I am not very familiar with how this works but maybe the original creator of the MMM-RFID has made a mistake on commenting out // the value part after the name in the above config entry …i don’t know</p>
<p dir="auto">Anyhow always your input is greatly appreciated … i will try your changes as soon as i get home<br />
thanks again<br />
Denis</p>
]]></description><link>https://forum.magicmirror.builders/post/57724</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/57724</guid><dc:creator><![CDATA[richland007]]></dc:creator><pubDate>Thu, 06 Jun 2019 02:54:07 GMT</pubDate></item><item><title><![CDATA[Reply to Profile Switcher - RC522 RFID on Wed, 05 Jun 2019 16:05:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/richland007" aria-label="Profile: richland007">@<bdi>richland007</bdi></a> said in <a href="/post/57714">Profile Switcher - RC522 RFID</a>:</p>
<p dir="auto">no ideas really… the node_helper code sends two different notices up to the module,<br />
which forwards them on…</p>
<p dir="auto">I don’t see any debug info in the module, so  edit the MMM-RFID.js file</p>
<p dir="auto">and change it like this</p>
<pre><code>        if (notification === "RFID_UID") {
            Log.log(" UID received="+payload);
            this.sendNotification("RFID_UID", payload);
        }
</code></pre>
<p dir="auto">and</p>
<pre><code>        if (notification === "RFID_DATA") {
             Log.log(" DATA received="+payload);
            this.sendNotification("RFID_DATA", payload);
            this.dispatchEvents(payload.data)
        }
</code></pre>
<p dir="auto">it looks like the converter should work… u did WRITE those decimal values to the tags, right?</p>
<p dir="auto">I see he has a test reader tool</p>
<pre><code>sudo python modules/MMM-RFID/MFRC522-python/Read.py
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/57718</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/57718</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 05 Jun 2019 16:05:26 GMT</pubDate></item><item><title><![CDATA[Reply to Profile Switcher - RC522 RFID on Wed, 05 Jun 2019 03:38:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> @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</p>
<p dir="auto"><img src="/assets/uploads/files/1559703333153-consolerfid.png" alt="0_1559703351342_consoleRFID.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">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??</p>
<p dir="auto">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</p>
<pre><code>{
        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
                    }
                ]
                         
            }
        }
    },

</code></pre>
<pre><code>{
        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
                     },
                     }
        }
    }, 
</code></pre>
<p dir="auto">so on each of our MM modules we have classes: for “default everyone” and “Denis” or “Eva”</p>
<p dir="auto">what am i doing wrong ??</p>
<p dir="auto">Denis</p>
]]></description><link>https://forum.magicmirror.builders/post/57714</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/57714</guid><dc:creator><![CDATA[richland007]]></dc:creator><pubDate>Wed, 05 Jun 2019 03:38:42 GMT</pubDate></item><item><title><![CDATA[Reply to Profile Switcher - RC522 RFID on Tue, 04 Jun 2019 11:12:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/richland007" aria-label="Profile: richland007">@<bdi>richland007</bdi></a> open the developers console, either by</p>
<p dir="auto">npm start dev</p>
<p dir="auto">when you start the mirror</p>
<p dir="auto">or ctrl-shift-i</p>
<p dir="auto">when then mirror is running</p>
<p dir="auto">then select the console tab</p>
<p dir="auto">these tools send notifications from one module to another…<br />
so you should see those messages in the console</p>
<p dir="auto">you can also filter the messages by the name of the file so<br />
put rfid in the filter field to see only messages sent from the rfid module</p>
]]></description><link>https://forum.magicmirror.builders/post/57706</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/57706</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 04 Jun 2019 11:12:22 GMT</pubDate></item><item><title><![CDATA[Reply to Profile Switcher - RC522 RFID on Tue, 04 Jun 2019 05:29:08 GMT]]></title><description><![CDATA[<p dir="auto">@miguel-abap OK so i made some progress than i got stuck again<br />
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!!<br />
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??</p>
<p dir="auto">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)</p>
<p dir="auto"><a href="https://stackoverflow.com/questions/54847012/raspberry-pi-3b-and-rfid-rc522-python-typeerror/55024642#55024642" target="_blank" rel="noopener noreferrer nofollow ugc">https://stackoverflow.com/questions/54847012/raspberry-pi-3b-and-rfid-rc522-python-typeerror/55024642#55024642</a></p>
<p dir="auto">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.</p>
<p dir="auto">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.</p>
<p dir="auto">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</p>
<p dir="auto">Denis</p>
]]></description><link>https://forum.magicmirror.builders/post/57701</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/57701</guid><dc:creator><![CDATA[richland007]]></dc:creator><pubDate>Tue, 04 Jun 2019 05:29:08 GMT</pubDate></item><item><title><![CDATA[Reply to Profile Switcher - RC522 RFID on Wed, 29 May 2019 13:07:09 GMT]]></title><description><![CDATA[<p dir="auto">If anyone in the comunity would like to give us a hand it would be GREAT!!</p>
]]></description><link>https://forum.magicmirror.builders/post/57533</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/57533</guid><dc:creator><![CDATA[miguel.abap]]></dc:creator><pubDate>Wed, 29 May 2019 13:07:09 GMT</pubDate></item><item><title><![CDATA[Reply to Profile Switcher - RC522 RFID on Wed, 29 May 2019 13:04:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/richland007" aria-label="Profile: richland007">@<bdi>richland007</bdi></a> Hey there, i couldn’t get it working, i stepped from the project, im going to try again!</p>
]]></description><link>https://forum.magicmirror.builders/post/57532</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/57532</guid><dc:creator><![CDATA[miguel.abap]]></dc:creator><pubDate>Wed, 29 May 2019 13:04:42 GMT</pubDate></item><item><title><![CDATA[Reply to Profile Switcher - RC522 RFID on Fri, 24 May 2019 04:12:25 GMT]]></title><description><![CDATA[<p dir="auto">@miguel-abap <a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> I am trying to run this module but here is what i get…has anyone else gotten this to work??</p>
<p dir="auto">Please help it will really help me a lot and it will be really cool if i get this to work</p>
<p dir="auto">D<br />
<img src="/assets/uploads/files/1558671138392-mmm-rfid.png" alt="0_1558671166407_MMM-RFID.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.magicmirror.builders/post/57370</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/57370</guid><dc:creator><![CDATA[richland007]]></dc:creator><pubDate>Fri, 24 May 2019 04:12:25 GMT</pubDate></item><item><title><![CDATA[Reply to Profile Switcher - RC522 RFID on Wed, 27 Mar 2019 21:51:54 GMT]]></title><description><![CDATA[<p dir="auto">@miguel-abap Hi there did you get htis to work??<br />
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.</p>
<p dir="auto">Let me know please if you ran into any issues<br />
Denis</p>
]]></description><link>https://forum.magicmirror.builders/post/54976</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/54976</guid><dc:creator><![CDATA[richland007]]></dc:creator><pubDate>Wed, 27 Mar 2019 21:51:54 GMT</pubDate></item><item><title><![CDATA[Reply to Profile Switcher - RC522 RFID on Thu, 07 Mar 2019 19:07:47 GMT]]></title><description><![CDATA[<p dir="auto">It seams to be working i got it today and connected with some jumper cables to the raspberry pi.<br />
I just now found this <a href="https://github.com/hebestreit/MMM-RFID/" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/hebestreit/MMM-RFID/</a> later today i’ll try this method and see if it works :)</p>
]]></description><link>https://forum.magicmirror.builders/post/53880</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/53880</guid><dc:creator><![CDATA[miguel.abap]]></dc:creator><pubDate>Thu, 07 Mar 2019 19:07:47 GMT</pubDate></item><item><title><![CDATA[Reply to Profile Switcher - RC522 RFID on Thu, 07 Mar 2019 18:59:58 GMT]]></title><description><![CDATA[<p dir="auto">@miguel-abap should be pretty easy if the RFID reader works</p>
]]></description><link>https://forum.magicmirror.builders/post/53879</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/53879</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 07 Mar 2019 18:59:58 GMT</pubDate></item></channel></rss>