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

Clientonly mode vs just a browser

Scheduled Pinned Locked Moved General Discussion
7 Posts 3 Posters 1.1k Views 3 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.
  • A Offline
    artieikon
    last edited by artieikon Jul 10, 2020, 3:59 PM Jul 10, 2020, 3:57 PM

    I tried searching for a topic on the difference between running MM using clientonly mode vs just connecting to a server using a browser but I couldnt find anything on it.

    Why would you need to run clientonly mode and have to install nodejs and deal with the potential issues that comes with having extra dependencies while you could just connect to a server using a browser?

    Edit: I am not griping about splitting client and server into different parts, I think that is a great idea I just dont see the benefit of running clientonly mode when you already have an option of using a browser… unless the only difference is you choose to depend on nodejs vs depending on chrome

    S 1 Reply Last reply Jul 10, 2020, 4:24 PM Reply Quote 0
    • S Offline
      sdetweil @artieikon
      last edited by sdetweil Jul 10, 2020, 4:30 PM Jul 10, 2020, 4:24 PM

      @artieikon i don’t know either. been pretty stable w chrome since I’ve been here these last 3 years.

      maybe there was a time where the electron browser was better, maybe particularly on pi

      looks like chromium was added to raspian in Jessie in 2016

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • A Offline
        artieikon
        last edited by artieikon Jul 10, 2020, 4:45 PM Jul 10, 2020, 4:45 PM

        True stability might have been an issue at some point. Also maybe it was to support more use cases, more support is always better than less.
        Both are light weight and easy to install/configure so I might just stick with browser for now and switch if I find any kind of issues (or if someone has a reason we missed).

        1 Reply Last reply Reply Quote 0
        • P Offline
          potts-mike
          last edited by Jul 12, 2020, 1:00 PM

          I’m thinking about running client only configs on a couple pi zeros.

          If I were to go with a browser only how would I configure it to launch and load full screen on start up?

          S A 2 Replies Last reply Jul 12, 2020, 1:14 PM Reply Quote 0
          • S Offline
            sdetweil @potts-mike
            last edited by sdetweil Jul 12, 2020, 1:21 PM Jul 12, 2020, 1:14 PM

            @potts-mike install pm2, create a shell script to launch chromium and pass it the url

            see the bottom of the run-start.sh I provide for pi0 for the command line syntax
            script also provided here
            https://github.com/sdetweil/MagicMirror_scripts

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • A Offline
              artieikon @potts-mike
              last edited by Jul 12, 2020, 5:31 PM

              @potts-mike pm2 seems like a bit overkill for just opening a browser.
              If you are just using using the zero to show the browser (and are not running the code with clientonly mode) than you can just edit /home/USER/.config/lxsession/LXDE-pi/autostart to launch chromium
              See this stackoverflow post: Start “Chromium” automatically on booting the Pi3 with Raspbian JESSIE

              1 Reply Last reply Reply Quote 0
              • A Offline
                artieikon
                last edited by Jul 13, 2020, 5:37 PM

                Hah well that didnt take long…
                Chromium crashed on me a few times today with the classic “Aw, Snap!” page… but that might be more of an indication that I have an issue with one of the modules and not with how it is displayed. But as far as I know pm2 can be setup to auto-restart so if the “Aw, Snap!” page I’m seeing would cause the node process to crash, pm2 would auto-restart it.

                tl;dr one difference between the two ways. Chromium doesnt auto-restart on crashes. pm2 would autorestart but might hide the underlying issues if you are not monitoring logs/restarts.

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