MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. s.monti.74
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    S
    Offline
    • Profile
    • Following 2
    • Followers 0
    • Topics 6
    • Posts 42
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: temperature sensors

      @ardenking said in temperature sensors:

      esp8266 and mysensors

      no i haven’t find yet
      I’ m trying with openhab and home assistant to read shelly h&t but I don’t understand how to setup
      dht22 are connected to the PI ? do you have one Pi in each room ?
      thanks

      posted in Hardware
      S
      s.monti.74
    • RE: temperature sensors

      @broberg , usually, in this moment, @sdetweil pull the module we need out of the cylinder …

      posted in Hardware
      S
      s.monti.74
    • RE: temperature sensors

      @broberg Not bad the “Shelly solution” but with which module can I read the values ?

      posted in Hardware
      S
      s.monti.74
    • RE: temperature sensors

      @seychellch
      OK but I would measure the temperature of various rooms, so I was thinking about wifi or zeegbee sensors without using the gateway or a cheap gateway

      posted in Hardware
      S
      s.monti.74
    • RE: MYMIRROR - From Modena

      @seychellch I use the module only to view what I am listening on Spotify in that moment (singer, song, disco cover). I use Alexa to play songs and the Mirror to view them.

      posted in Show your Mirror
      S
      s.monti.74
    • temperature sensors

      HI
      which is the chepest way to manage temperature sensors with MM ? I mean, I’m searching cheap hardware sensors to retrieve temperature in one or more rooms
      thanks

      posted in Hardware
      S
      s.monti.74
    • RE: MYMIRROR - From Modena

      @Cr4z33
      this is my “paste”…
      https://pastebin.com/wY8yVtpv

      posted in Show your Mirror
      S
      s.monti.74
    • RE: MYMIRROR - From Modena

      @richland007 I can’t upload in the editor the full code because the editor blocks it (probably it converts the “;” char as the end of the code) I also can’t upload a txt file witch the code, i can upload only images

      posted in Show your Mirror
      S
      s.monti.74
    • RE: MYMIRROR - From Modena

      0_1571941656870_Cattura.JPG

      posted in Show your Mirror
      S
      s.monti.74
    • RE: MYMIRROR - From Modena

      @richland007 I have modified the code before update it, to make it simpler and probably something is wrong.
      I use 2 tags, the first to recognize me (S) and the second to recognize my wife (G)
      for serial communication, later I send you a photo

      posted in Show your Mirror
      S
      s.monti.74
    • RE: MYMIRROR - From Modena

      I have bought this on Amazon:
      AZDelivery ⭐⭐⭐⭐⭐ Kit RFID RC522 13,56MHz con Reader, Chip e Scheda per Arduino e Raspberry Pi con eBook Gratuito!
      7€

      I have connected Arduino with PI via USb cable
      with this connection I upload sketch to Aruino (this is why I use Arduino IDE on PI) and with the same connection datas (RFID tags) are tranfered from Arduino to PI (and the module of magic Mirror does the rest of the job)

      posted in Show your Mirror
      S
      s.monti.74
    • RE: Amazon shipping

      thanks, I tried MMM-Parcel but I am searching a service to connect directly to my amazon account, like MY ORDERS

      posted in Requests
      S
      s.monti.74
    • RE: MYMIRROR - From Modena

      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

      posted in Show your Mirror
      S
      s.monti.74
    • RE: MYMIRROR - From Modena
      ----------------------------------------------------
      #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);
      }
      ----------------------------------------------------
      
      posted in Show your Mirror
      S
      s.monti.74
    • RE: MYMIRROR - From Modena

      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)

      posted in Show your Mirror
      S
      s.monti.74
    • Amazon shipping

      Hello
      is it possible to manage amazon notifications (online purchases) on the magic mirror?

      posted in Requests
      S
      s.monti.74
    • 1 / 1