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

MagicMirror electrical cabinet door

Scheduled Pinned Locked Moved Show your Mirror
7 Posts 4 Posters 9.9k Views 4 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.
  • K Offline
    Kereknjek
    last edited by Nov 18, 2019, 10:12 PM

    So, here is my build…

    Electrical cabinet:
    Holds circuit brakers, patch pannel, network switches and NAS
    cabinett

    How it should look:
    test
    My wife and daughter likes it.

    And my test setup:
    test setup

    For now, I’m runnung it on VirtualBox running Raspbian like distro.
    I have one Raspberry PI 3 runing Pihole and tor proxy for now.
    I’ll add MagicMirror to that PI once I learn to fine tune MagicMirror and when my kids let me.

    I never expected it to look so good! :drooling_face:

    Technical:
    Rear is OSB board 12mm painted black
    Glass is blue(ish) tinted 6mm thick
    22" LED display, only VGA, working with RPI using adapter
    Aluminium L profiles 20x10x2mm to hold glass in place
    Dimensions are 205 cm tall, 33cm wide, 2 cm tick, heavy as f***.
    Between glass and board there is black cloth. Behind glass it has texture like display.
    On strong light, diplay is just visible because i taped black electrical tape to metal edges. And it slightly reflects light.

    S 1 Reply Last reply Nov 18, 2019, 10:14 PM Reply Quote 4
    • S Offline
      sdetweil @Kereknjek
      last edited by Nov 18, 2019, 10:14 PM

      @Kereknjek very cool!

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • B Offline
        BD0G
        last edited by Nov 18, 2019, 10:28 PM

        Most Excellent! Fit it right between the door molding! Great spot for visibility!

        1 Reply Last reply Reply Quote 0
        • K Offline
          Kereknjek
          last edited by Jan 6, 2020, 12:57 AM

          It’s been a while…

          So, I mounted my MM in place, customized it to my preference and enjoyed it for a while.

          If you read my other post about sending data from arduino to MM over ethernet, I’ve given up from it as I realy suck at programming web aplications.

          But, it’s not all lost. I’m running my “not so smart” home on multidrop RS485 network and my master node is right behind RPI3 running MM.

          So I made packet sniffing node using arduino nano.
          In short, it listens for packets that are interesting to be shown on MM, translates them to format for MMM-ArduPort and sends them over usb. If no packet is received in 5 minutes, than it sends request.

          So I installed MMM-ArduPort, configured config.js and then…
          Disaster! I was only getting black screen! I taught: “NOOOOO!!! I’m to ugly to watch my self in a mirror!”
          Started to remove modules one by one and nothing helped.
          So I deleted MagicMirror folder and went to reinstal. But instalation got frozen at “Updating packages”.
          Fortunatly, manual instalation worked. I reinstalled all modules and copied configuration from old config.js (yes, i made backup :D ), and finaly got it to work.

          Problem was that i have updated it prior installing MMM-ArduPort and somehow update crashed MM.

          Now it is 1:57 am so I’m going to sleep. Arduport will have to wait till morning.

          I’ll slap some new pictures tomorrow!

          1 Reply Last reply Reply Quote 0
          • K Offline
            Kereknjek
            last edited by Jan 6, 2020, 10:00 PM

            I’m having trouble uploading pictures…

            But, I’m allso having trouble with MMM-ArduPort. It connects to arduino, shows sensors, and then returns to “waiting for connection…” :confused_face:

            1 Reply Last reply Reply Quote 0
            • K Offline
              Kereknjek
              last edited by Jan 19, 2020, 12:12 PM

              Well, I have abandoned ArduPort. Never got it to work. So I switched to json-feed.

              It wasn’t easy for me because I had zero knowledge about http requests. But I got it working.

              For anyone, with limited knowlege, like me, here is the code I’m sending from arduino ethernet server:

              void sendjson(EthernetClient cl)
              {
                  // send a standard http response header
                  cl.println("HTTP/1.0 200 OK");
                  cl.println("Content-Type: application/json");
                  cl.println("Connection: close");
                  cl.println();
                  // 
                  cl.println("{"); // start of json data
                  cl.print("\"Info\":\" ");
                  if(y==true){cl.print("ERR COM");} // error in comunication
                  if(y==false){
                    if(inverterukljucen==1){
                      cl.print("ON"); // system is on
                      }
                      else
                      {
                        cl.print("OFF"); // system is off i.e. no sun
                      }
                    }
                  cl.println("\",");
                  
                  cl.print("\"Baterija\":\" "); // battery voltage
                  cl.print(naponbaterije);
                  cl.println(" V\",");
              
                  cl.print("\"Struja\":\" "); // current going in or ouf trom battery
                  cl.print(strujabaterije);
                  cl.println(" A\",");
              
                  cl.print("\"Proizvodnja\":\" "); // production of electricity
                  cl.print(snagapanela);
                  cl.print(" W / ");
                  cl.print((snagapanela/560)*100);
                  cl.println("%\",");
              
                  cl.print("\"Teret\":\" "); // load at inverter side
                  cl.print(snagainvertera);
                  cl.print(" W / ");
                  cl.print((snagainvertera/1200)*100); // load percentage
                  cl.println(" %\"");
              
                  cl.println("}"); //end of json data
              }
              

              And json data received by MM:

              {
              "Info":" ON",
              "Baterija":" 26.15 V",
              "Struja":" -0.79 A",
              "Proizvodnja":" 6.72 W / 1.20%",
              "Teret":" 27.52 W / 2.29 %"
              }
              

              And result:
              alt text

              Back of the cabinet (I have to tie those cables):
              alt text

              1 Reply Last reply Reply Quote 0
              • R Offline
                RoyCormi
                last edited by RoyCormi Dec 26, 2022, 3:30 PM Dec 26, 2022, 3:29 PM

                How do you lock and unlock this mirrored door? A friend of mine is also hiding all patch panels and circuit brakers behind a mirror. He once told me that the mirrored door is the cause of too many issues. Firstly, due to complicated mechanisms, it was tough to install. He hired a locksmith emergency service to give him a hand. Now then, the circuit brakers are out of order, and he has to take the mirror completely out.
                What struggles have you encountered?

                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 Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy