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 850 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.
    • S Offline
      sdetweil @artieikon
      last edited by sdetweil

      @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

        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

          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 Reply Quote 0
          • S Offline
            sdetweil @potts-mike
            last edited by sdetweil

            @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

              @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

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