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

Core of MagicMirror

Scheduled Pinned Locked Moved General Discussion
8 Posts 3 Posters 2.9k Views 2 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.
  • Y Offline
    yours.mukul
    last edited by Dec 5, 2017, 3:35 AM

    Which database do magic mirror use?
    And what is the functionality of Magic Mirror at the core?
    I mean how it works?
    Can anyone please explain…

    ? 1 Reply Last reply Dec 5, 2017, 7:35 AM Reply Quote 0
    • ? Offline
      A Former User @yours.mukul
      last edited by Dec 5, 2017, 7:35 AM

      @yours.mukul
      MM doesn’t use any database by default.
      And how it works…
      Hmmm…

      Basically, Role of MM core is just searching modules with config.js and loading them into memory. If it needs, it executes node_helper.js also. MM run start point of each module and gather the result of getDom() and show them on screen.
      Sometimes, MM handles to carry notification among the modules and socketNotification between the module and node_helper.

      Well. enough?

      1 Reply Last reply Reply Quote 2
      • Y Offline
        yours.mukul
        last edited by Dec 5, 2017, 2:22 PM

        Which database does it use??

        ? 1 Reply Last reply Dec 5, 2017, 2:25 PM Reply Quote 0
        • ? Offline
          A Former User @yours.mukul
          last edited by Dec 5, 2017, 2:25 PM

          @yours.mukul said in Core of MagicMirror:

          Which database does it use??

          Nothing. Should it?

          1 Reply Last reply Reply Quote 0
          • Y Offline
            yours.mukul
            last edited by Dec 5, 2017, 2:26 PM

            Well I read from internet that a nodejs application must be connected to a database that’s why I’m askin

            ? 1 Reply Last reply Dec 5, 2017, 2:29 PM Reply Quote 0
            • ? Offline
              A Former User @yours.mukul
              last edited by Dec 5, 2017, 2:29 PM

              @yours.mukul said in Core of MagicMirror:

              Well I read from internet that a nodejs application must be connected to a database that’s why I’m askin

              NoSQL type databases are working with nodeJS frequently, however, that is optional.

              1 Reply Last reply Reply Quote 0
              • Y Offline
                yours.mukul
                last edited by yours.mukul Dec 5, 2017, 4:26 PM Dec 5, 2017, 2:33 PM

                Actually I need to explain MagicMirror to my Teacher, so can you please elaborate everything about it??
                @sean

                B 1 Reply Last reply Dec 6, 2017, 1:12 AM Reply Quote -1
                • B Offline
                  bhepler Module Developer @yours.mukul
                  last edited by Dec 6, 2017, 1:12 AM

                  @yours.mukul Heh. All right, short version:

                  Magic Mirror is a modularized application that is written using NodeJS, the Electron application framework and a mix of Javascript and Python programming languages. It does not use a database for state information. Instead, the Magic Mirror application uses a configuration file that determines how the application loads and run a series of modules.

                  The Electron application framework is responsible for coordinating between the back-end NodeJS processes and the front-end Javascript processes. The electron application is also responsible for rendering the interface onto the screen via a built-in web browser (Chromium).

                  When a module starts up (as directed by the main application), that module returns a chunk of HTML code that the application will then render and place upon the interface. If the module needs information from another source (RSS feed, weather information, sports scores, whatever), the application framework has hooks that allow a node process to retrieve/generate that information and then present it to front-end module code. Any state information is stored in memory and is regularly replaced by the back end process.

                  I hope that clarifies things.

                  1 Reply Last reply Reply Quote 1
                  • 1 / 1
                  1 / 1
                  • First post
                    4/8
                    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