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

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

Scheduled Pinned Locked Moved Bug Hunt
6 Posts 2 Posters 5.0k 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 Jun 12, 2023, 1:35 PM

    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 Jun 12, 2023, 2:07 PM Reply Quote 0
    • S Offline
      sdetweil @noonas
      last edited by Jun 12, 2023, 2:07 PM

      @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 Jun 12, 2023, 6:27 PM Reply Quote 0
      • N Offline
        noonas @sdetweil
        last edited by Jun 12, 2023, 6:27 PM

        @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 Jun 12, 2023, 6:28 PM Reply Quote 0
        • S Offline
          sdetweil @noonas
          last edited by Jun 12, 2023, 6:28 PM

          @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 Jun 12, 2023, 11:01 PM Reply Quote 0
          • N Offline
            noonas @sdetweil
            last edited by Jun 12, 2023, 11:01 PM

            @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 Jun 13, 2023, 12:05 AM Reply Quote 1
            • S Offline
              sdetweil @noonas
              last edited by Jun 13, 2023, 12:05 AM

              @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
              • 1 / 1
              1 / 1
              • First post
                6/6
                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