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

Problem server client configuration

Scheduled Pinned Locked Moved Unsolved Troubleshooting
21 Posts 6 Posters 7.1k Views 5 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
    Akkor
    last edited by Akkor Dec 26, 2018, 12:09 PM Dec 26, 2018, 12:07 PM

    @idoodler I have tried to start changing the mm.sh
    This is the command I’ve put in:
    cd ~/MagicMirror
    node clientonly --address 192.168.2.100 --port 8080

    but when I restart raspberry the system show me only the desktop and MM seems don’t start

    I 1 Reply Last reply Dec 26, 2018, 12:19 PM Reply Quote 0
    • I Offline
      idoodler Module Developer @Akkor
      last edited by Dec 26, 2018, 12:19 PM

      @akkor Ok, check the log with the following command: pm2 log mm

      On the top you will see the last 15 lines of the error log.

      1 Reply Last reply Reply Quote 0
      • A Offline
        Akkor
        last edited by Dec 26, 2018, 12:50 PM

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • A Offline
          Akkor
          last edited by Dec 26, 2018, 12:54 PM

          @idoodler
          This is the answer

          pi@raspberrypi:~ $ pm2 log mm
          [TAILING] Tailing last 15 lines for [mm] process (change the value with --lines option)
          /home/pi/.pm2/logs/mm-error.log last 15 lines:
          0|mm       | (electron:2017): Gtk-WARNING **: cannot open display:
          0|mm       | Client:
          0|mm       | (electron:2027): Gtk-WARNING **: cannot open display:
          0|mm       | Client:
          0|mm       | (electron:2037): Gtk-WARNING **: cannot open display:
          0|mm       | Client:
          0|mm       | (electron:2047): Gtk-WARNING **: cannot open display:
          0|mm       | Client:
          0|mm       | (electron:2057): Gtk-WARNING **: cannot open display:
          0|mm       | Client:
          0|mm       | (electron:2067): Gtk-WARNING **: cannot open display:
          0|mm       | Client:
          0|mm       | (electron:2077): Gtk-WARNING **: cannot open display:
          0|mm       | Client:
          0|mm       | (electron:2093): Gtk-WARNING **: cannot open display:
          
          1 Reply Last reply Reply Quote 0
          • A Offline
            Akkor
            last edited by Dec 26, 2018, 7:17 PM

            Pls help I cannot find any solution

            1 Reply Last reply Reply Quote 0
            • S Away
              sdetweil
              last edited by sdetweil Dec 26, 2018, 9:10 PM Dec 26, 2018, 9:09 PM

              if you are trying to start over an ssh session, you need to add this before the node clientonly

              if [ -z “$DISPLAY” ]; then #If not set DISPLAY is SSH remote or tty
              export DISPLAY=:0 # Set by default display
              fi

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 1
              • B Offline
                bhepler Module Developer @Akkor
                last edited by Dec 27, 2018, 1:29 AM

                @akkor - Ugh. Why would you want to use Electron if you didn’t have to? There’s already a web browser on your Pi. Just point it at the MM server and be done with it.

                I’ve learned that you can get Chromium to start in kiosk mode at a particular URL with about an hour of research and testing. Minimal swearing was involved.

                I 1 Reply Last reply Dec 27, 2018, 9:17 AM Reply Quote 0
                • I Offline
                  idoodler Module Developer @bhepler
                  last edited by Dec 27, 2018, 9:17 AM

                  @bhepler Electron is already a premade solution that works great. However using Chromium in Kiosk mode is also a nice and easy solution. And it may solve the issue here.

                  @Akkor How to open Chromium in kioksmode on startup: https://raspberrypi.stackexchange.com/questions/40631/setting-up-a-kiosk-with-chromium

                  1 Reply Last reply Reply Quote 0
                  • A Offline
                    Akkor
                    last edited by Akkor Dec 27, 2018, 10:28 AM Dec 27, 2018, 10:28 AM

                    @idoodler @bhepler
                    I Have setup chromium to autostart and it’s ok
                    But I would like use Electron to use the voice command on client like this one https://github.com/mykle1/Hello-Lucy or https://github.com/joanaz/MMM-MirrorMirrorOnTheWall but I don’t know if it’s doable in server/client mode

                    I 1 Reply Last reply Dec 27, 2018, 10:34 AM Reply Quote 0
                    • I Offline
                      idoodler Module Developer @Akkor
                      last edited by Dec 27, 2018, 10:34 AM

                      @akkor I don’t think you can use Hello-Lucy in client mode.
                      But I bet the developer @Mykle1 knows it.

                      M 1 Reply Last reply Dec 28, 2018, 2:33 AM Reply Quote 1
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      2 / 3
                      • First post
                        7/21
                        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