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

What difference does node server-only make in operation?

Scheduled Pinned Locked Moved Solved Feature Requests
3 Posts 2 Posters 1.3k Views 1 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
    stuartiannaylor
    last edited by Feb 18, 2019, 4:42 AM

    Hi,

    As I only have a Pi Zero at the moment I am just wondering what is the difference and advantage of electron rather than say chromium browser.

    If it just bloat and the electron framework is just lightweight or are there extra advantages and calls via the client script?

    B 1 Reply Last reply Feb 18, 2019, 4:02 PM Reply Quote 0
    • B Offline
      bhepler Module Developer @stuartiannaylor
      last edited by Feb 18, 2019, 4:02 PM

      @stuartiannaylor - The standard MagicMirror installation is basically a web application that is displayed locally. The NPM application runs in the background and provides the data. It’s basically running a website. Electron is responsible for displaying that data on the screen. It does the work of combining HTML, CSS and Javascript into a screen’s worth of displayed information. NPM is the application layer, Electron is the presentation layer. On a full Raspi, electron is used because it skips all the unnecessary stuff like bookmarks, menus, borders, scroll bars, etc.

      Server-only mode is just running the NPM application. Essentially, you’re just hosting the website and not depending upon Electron to present the information on the screen. Since you need something to actually show the data, you can use the built-in browser for the Pi Zero, which is Chromium. You’ll have to configure it a bit to hide the menu, scroll bars and the like, but it should work.

      Note: Because the MM application is basically a website, if you open up the IP Whitelist, you can view the magic mirror interface from any web browser on your network.

      1 Reply Last reply Reply Quote 0
      • S Offline
        stuartiannaylor
        last edited by stuartiannaylor Feb 18, 2019, 6:55 PM Feb 18, 2019, 5:00 PM

        Many thanks got similar great info from discord as never have patience, apols.

        One last thing as I said because I have done a little script for Pi Zero https://github.com/StuartIanNaylor/MagicMirrorPi0StretchLite that has chromium with all the commandline settings need for the above.
        I said to Mich I was just looking @ Selenium as thinking of doing a Chromium watchdog and he suggest mm_watchdog.
        Then I barbled on but with hindsight does mm_watchdog also work with standalone chromium?

        As if so all I have to do is work out why plymouth confuses me so much as to if it will work or not and maybe show on whatever chance that might maybe :)

        Thanks for a great explanation though.

        One more question is how do you mark as solved?

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