Read the statement by Michael Teeuw here.
Map visible in browser but not on mirror
-
I want to show a map from mapbox on my magic mirror but it is only visible when i browse to the magic mirror (localhost:192.168.1.10:8080) and not on the mirror self.
Has someone any idea how to fix this problem?
-
@Lorenz If it shows on other browsers then it’s probably so that the built in electron browser isn’t capable of rendering the map.
Try running a different browser on the Pi itself and see if that sorts it.
-
you can also run electron on the pi, open a terminal window
~/MagicMirror/node_modules/electron/dist/electron url
-
Yeah it’s because the electron browser doesn’t support webgl2. Do you know a solution for this problem?
-
@Lorenz - You can configure your mirror to use the built-in Chromium browser instead of electron. You’ll need to do the following:
- modify your startup script to go
node serveronlyinstead of the usualnpm start. - Set the home page of the chromium browser to
http://localhost:8080. - Put the browser into kiosk mode.
- Set the browser to start on boot.
- modify your startup script to go
-
@bhepler never thought of doing it that way!
-
@bhepler thank you !!
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