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.

    ozone_platform_x11.cc(239)] Missing X server or $DISPLAY

    Scheduled Pinned Locked Moved Bug Hunt
    6 Posts 2 Posters 6.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.
    • N Offline
      noonas
      last edited by

      I have a RasPi3 with a 7" LCD (DSI connector not HMDI) connected and it works.
      I have a wireless keyboard/mouse and I can use the terminal just fine.

      I have installed MM as per instructions, but when I try to start it it says:

      noonas@HomeassistantPi:~/MagicMirror $ npm run start

      magicmirror@2.23.0 start
      DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

      [12.06.2023 08:51.04.961] [LOG] Starting MagicMirror: v2.23.0
      [12.06.2023 08:51.04.974] [LOG] Loading config …
      [12.06.2023 08:51.04.989] [DEBUG] config template file not exists, no envsubst
      [12.06.2023 08:51.05.003] [LOG] Loading module helpers …
      [12.06.2023 08:51.05.006] [LOG] No helper found for module: alert.
      [12.06.2023 08:51.05.050] [LOG] Initializing new module helper …
      [12.06.2023 08:51.05.052] [LOG] Module helper loaded: updatenotification
      [12.06.2023 08:51.05.054] [LOG] No helper found for module: clock.
      [12.06.2023 08:51.05.732] [LOG] Initializing new module helper …
      [12.06.2023 08:51.05.734] [LOG] Module helper loaded: calendar
      [12.06.2023 08:51.05.736] [LOG] No helper found for module: compliments.
      [12.06.2023 08:51.05.739] [LOG] No helper found for module: weather.
      [12.06.2023 08:51.05.813] [LOG] Initializing new module helper …
      [12.06.2023 08:51.05.814] [LOG] Module helper loaded: newsfeed
      [12.06.2023 08:51.05.815] [LOG] All module helpers loaded.
      [12.06.2023 08:51.05.844] [LOG] Starting server on port 8080 …
      [3287:0612/085105.875951:ERROR:ozone_platform_x11.cc(239)] Missing X server or $DISPLAY
      [3287:0612/085105.876180:ERROR:env.cc(255)] The platform failed to initialize. Exiting.

      I have tried to set the $DISPLAY variable to 0:0, same error comes.

      What can I do??

      S 1 Reply Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @noonas
        last edited by

        @noonas you installed on the lite/text mode only version of Raspberry pi OS

        MM needs the full version with desktop… as the browser uses graphics mode always
        see https://docs.magicmirror.builders/getting-started/requirements.html#hardware

        if you had used my install script it would have stopped because of this and told you
        see
        https://github.com/sdetweil/MagicMirror_scripts

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        N 1 Reply Last reply Reply Quote 0
        • N Offline
          noonas @sdetweil
          last edited by

          @sdetweil Thanks, Installed the GUI/Desktop and now it works!!
          Now trying to remove the fat margins of the screen for the modules…

          S 1 Reply Last reply Reply Quote 0
          • S Do not disturb
            sdetweil @noonas
            last edited by

            @noonas see the main.css for the margins

            then change by adding entry to custom.css

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            N 1 Reply Last reply Reply Quote 0
            • N Offline
              noonas @sdetweil
              last edited by

              @sdetweil said in ozone_platform_x11.cc(239)] Missing X server or $DISPLAY:

              main.css

              Got it, thanks works better now! This is aweome…
              May build my own module.

              S 1 Reply Last reply Reply Quote 1
              • S Do not disturb
                sdetweil @noonas
                last edited by

                @noonas see my SampleModule
                https://github.com/sdetweil/SampleModule

                and of course there are a lot to look at

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

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