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.

    MYMIRROR - From Modena

    Scheduled Pinned Locked Moved Show your Mirror
    28 Posts 6 Posters 15.6k Views 7 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.
    • S Offline
      s.monti.74
      last edited by

      Hi, this is my mirror
      I used these modules and with Arduino I read the RFID tags (via serial notifications) to recognize the user (see the mirror photo, top right, there is the RFID tag reader) and show a personalized page

      MMM-NBA
      MMM-MyScoreboard
      MMM-cryptocurrency
      MMM-DarkSkyForecast
      MMM-NowPlayingOnSpotify
      MMM-TPLink
      mrx-work-traffic
      MMM-Traffic
      newsfeed
      MMM-Events
      MMM-AirQuality
      MMM-json-feed
      mmm-weatherchart
      MMM-History
      MMM-Serial-Notifications
      MMM-ProfileSwitcher
      MMM-page-indicator
      MMM-Buttons

      0_1571490850958_IMG_20191019_145754_resized_20191019_025832226.jpg 0_1571490861073_pagina1.jpg 0_1571490865417_pagina2.jpg 0_1571490869747_pagina3.jpg 0_1571490874696_IMG_20191019_145718_resized_20191019_025832012.jpg 0_1571490879115_miapagina.jpg

      S 1 Reply Last reply Reply Quote 3
      • S Away
        sdetweil @s.monti.74
        last edited by

        @s-monti-74 very cool… nicely done!

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Offline
          s.monti.74
          last edited by

          @sdetweil , don’t forget you helped me with serial notifications with Arduino…

          1 Reply Last reply Reply Quote 0
          • richland007R Offline
            richland007
            last edited by

            @s-monti-74 said in MYMIRROR - From Modena:

            MMM-Serial-Notifications

            Very interested on this as well i have some rfid rings that i want to use and the rfid-rc522 and arduino uno. So basically everything needed.
            I gave a try to this https://forum.magicmirror.builders/topic/9983/profile-switcher-rc522-rfid?page=1 but i could not get it to work can you please guide me how to use the rfid to switch profiles

            Denis

            1 Reply Last reply Reply Quote 0
            • S Offline
              s.monti.74
              last edited by s.monti.74

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • S Offline
                s.monti.74
                last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • S Offline
                  s.monti.74
                  last edited by

                  I have done in this way.

                  I Have installed Arduino IDE on RPI and to run on Arduino the program to send via serial communication ten information of the RFID it’s reading
                  This in the programo uploaded on Arduino
                  I use two RFID tags (TAG1 and TAG2)

                  richland007R 1 Reply Last reply Reply Quote 0
                  • S Offline
                    s.monti.74
                    last edited by

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      s.monti.74
                      last edited by

                      ----------------------------------------------------
                      #include <SPI.h>
                      #include <RFID.h>
                      
                      #define SDA_DIO 10  // 53 per Mega
                      #define RESET_DIO 9
                      #define delayRead 1000 // Time of delay 
                      #define delayLed 2000 
                      #define ledVerde 3
                      #define ledRosso 4
                      RFID RC522(SDA_DIO, RESET_DIO); 
                       
                      String TAG1= "975318736";
                      String TAG2= "976A15D37";
                       
                      void setup()
                      { 
                        Serial.begin(9600);
                        /* Abilita SPI*/
                        SPI.begin(); 
                        /* Viene inizilizzato RFID reader */
                        RC522.init();
                        /*Serial.println("Setup");*/
                        pinMode(ledVerde,OUTPUT);
                        pinMode(ledRosso,OUTPUT);
                      }
                       
                      void loop()
                      {
                        /* Temporary loop counter */
                        byte i;
                        // Se viene letta una tessera
                        if (RC522.isCard())
                        {
                          RC522.readCardSerial();
                          String codiceLetto ="";
                          for(i = 0; i <= 4; i++)
                          {
                            codiceLetto+= String (RC522.serNum[i],HEX);
                            codiceLetto.toUpperCase();
                          }
                           if (codiceLetto.equals(TAG1)){
                            Serial.println("S");
                            accendiLed(ledVerde);
                          }
                          if (codiceLetto.equals(TAG2)){
                            Serial.println("G");
                            accendiLed(ledVerde)
                          delay(delayRead);  
                        }
                       }
                      
                      boolean verificaCodice(String codiceLetto){
                        if(codiceLetto.equals(codiceAutorizzato)){
                          return true;
                        }else{
                          return false;
                        }  
                      }    
                      void accendiLed(int ledPin){
                        digitalWrite(ledPin,HIGH);
                        delay(delayLed);
                        digitalWrite(ledPin,LOW);
                      }
                      ----------------------------------------------------
                      
                      richland007R 1 Reply Last reply Reply Quote 0
                      • S Offline
                        s.monti.74
                        last edited by

                        this program sends via serial communication the value “S” if i use TAG1 and “G” if I usa TAG2
                        Then you have to use, on magic mirror, the module MMM-Serial-Notifications to read the value:

                        {
                            module: 'MMM-Serial-Notifications',
                            config: {
                              devices: {
                                '/dev/ttyACM0': {
                                  messages: {
                                    'S': [
                                      {
                        		notification: 'CURRENT_PROFILE', 										
                        		payload:  'S',
                                      },
                                    ],
                                  'A': [
                                      {
                        		notification: 'CURRENT_PROFILE', 										
                        		payload:  'G',
                                      }
                        
                                    ]
                                  }
                                }
                              }
                            }
                          },
                        
                        

                        and the module MMM-ProfileSwitcher to manage all other modules:

                        {
                                		module: 'MMM-ProfileSwitcher',
                        			classes: 'default',
                        			header: "Profile",
                                		config: {
                        		
                        				enterMessages: {
                        					"G": "Ciao, G",
                        					"S": "Ciao, S" 
                        				},
                        				leaveMessages: {
                        					"G": "Ciao G, ci vediamo alla prossima", 
                        					"S": "Ciao S, ci vediamo alla prossima",
                        				},
                        
                        				timers: {
                            				"S": {
                                			time: 10 * 1000
                            				},
                            				"G": {
                                			time: 10 * 1000
                            				}
                        			}
                        
                        		
                        		
                          		      }
                            		},
                        

                        BYE
                        Stefano

                        1 Reply Last reply Reply Quote 1
                        • 1
                        • 2
                        • 3
                        • 1 / 3
                        • 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