MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    UNSOLVED I need an explanation of how the magic mirror system works

    Feature Requests
    3
    13
    3646
    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.
    • A
      aljosie last edited by

      hi, I am writing about magic mirrors, and I need to explain how the system flow of the magic mirror works? what is the platform? the database? how to exchange data from requests to appear on the user interface? can anyone help me?

      S 1 Reply Last reply Reply Quote 0
      • S
        sdetweil @aljosie last edited by sdetweil

        @aljosie sure… MM is what is called a Single Page Web application. it operates just like any other web page…
        https://en.wikipedia.org/wiki/Single-page_application

        javascript, html, etc…

        Now, Mitch has done an outstanding job of designing the structure so that multiple pieces of code (modules) can be added in a structured way…

        a module has two parts…

        1. the web UI part (created web content to be injected into the web page)
        2. the integration part (connects to everything NOT UI to get/set data for the web component

        the two parts run inside the browser web page, and talk to each other via a socket connection.

        he also designed a methodology for modules to communicate with each other. Notifications

        Node and Angular are the dynamic runtime of the application, providing mechanisms to allow for long running tasks (get some api content which may take seconds) to not hang up the rest of the system

        there is no database … everything is configured in flat files…

        the web UI component of the module gets called to get its content contribution to the web page at its getDom() method…

        Mitch designed in multiple ‘areas’ of the web page… and u must target your modules content to one of those…
        top, bottom, left, right. center and more. thus you have some starting control over where your content goes.

        if u comment out all the modules, the page will be blank

        Sam

        Create a working config
        How to add modules

        A 2 Replies Last reply Reply Quote 0
        • A
          aljosie @sdetweil last edited by

          @sdetweil thank you bro…

          1 Reply Last reply Reply Quote 0
          • A
            aljosie @sdetweil last edited by

            @sdetweil no database there? thats mean magic mirror as server and client too?

            S 1 Reply Last reply Reply Quote 0
            • S
              sdetweil @aljosie last edited by

              @aljosie correct… all in one…

              you can also access the server from a remote system using the same web url address (if permitted)

              some MM implementations also have a single use mode… server only (no ui locally) or client only (no server, just access server).

              MM has all of that

              Sam

              Create a working config
              How to add modules

              A 1 Reply Last reply Reply Quote 0
              • A
                aljosie @sdetweil last edited by

                @sdetweil can u give me link of module for turn on/off light with this smart mirror

                S 1 Reply Last reply Reply Quote 0
                • S
                  sdetweil @aljosie last edited by sdetweil

                  @aljosie sorry… missed ‘this mirror’

                  again, using what technology

                  PIR (Pi Infrared sensor), camera, voice, ?
                  does your monitor support electronic on/off. (mine dont)

                  but did u mean room lights? again, these need to be electronically controlled…
                  what technology? hue, insteon, wifi (lots of different apis there)

                  Sam

                  Create a working config
                  How to add modules

                  A 2 Replies Last reply Reply Quote 0
                  • A
                    aljosie @sdetweil last edited by

                    @sdetweil i’m wanna control light room (turn on/off) with voice comand and i want the comand show on the magic mirror interface, can help me?

                    A 1 Reply Last reply Reply Quote 0
                    • A
                      aljosie @aljosie last edited by

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • A
                        aljosie @sdetweil last edited by

                        @sdetweil and i want only my voice can execute the comand, and i’m using the beardboard, light indicator and relay for this project, so this project just like for home automation system controlling the light room with voice.

                        ejay-ibm 1 Reply Last reply 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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy