Read the statement by Michael Teeuw here.
ozone_platform_x11.cc(239)] Missing X server or $DISPLAY
-
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??
-
@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#hardwareif you had used my install script it would have stopped because of this and told you
see
https://github.com/sdetweil/MagicMirror_scripts -
@sdetweil Thanks, Installed the GUI/Desktop and now it works!!
Now trying to remove the fat margins of the screen for the modules… -
@noonas see the main.css for the margins
then change by adding entry to custom.css
-
@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. -
@noonas see my SampleModule
https://github.com/sdetweil/SampleModuleand of course there are a lot to look at
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