DarrenHill
Posts: 265
Joined: Fri Oct 03, 2014 3:03 pm

MagPi 90-93 - Magic Mirrors

Sun May 31, 2020 9:22 am

Been following PJ Evan's great series of articles on setting up a Magic Mirror with interest.

Having done it, there are a couple of small errata which may help others who are also going to use them to set one up:

Issue 90 - "Installing MagicMirror2" (step 4).

At the start of the year the maintainers decided to move the installer script out of the repo, so the link quoted in the article no longer exists or works. The new updated one is https://github.com/sdetweil/MagicMirror_scripts .

Issue 91 - "Vampire mode (no reflection)" (step 7).

The quoted address: "", is wrong and won't enable any IP address to access the mirror. The correct code is address: "0.0.0.0", to enable access across your network.

Aside from those, a great series of articles, well done PJ!

User avatar
lucyhattersley
Posts: 29
Joined: Tue Aug 04, 2015 5:05 pm

Re: MagPi 90-93 - Magic Mirrors

Wed Jun 03, 2020 9:16 am

Thanks for the heads-up!

I've let PJ know and will add this to the Errata for that issue page.

MrPJEvans
Posts: 11
Joined: Thu Jul 05, 2012 2:50 pm

Re: MagPi 90-93 - Magic Mirrors

Wed Jun 03, 2020 12:26 pm

Hi Darren,

Firstly it's great to hear you've been building a Magic Mirror and thanks for the kind comments.

You're right that they've now moved the install scripts, this happened after the piece was written. Thanks for bringing this to our attention though.

On the second point, I wonder if there is a newer version as the empty string "" works for me. "0.0.0.0" does make more sense as that's pretty much a de facto standard of doing it. I'll double-check in case I'm mistaken. Either way it should go into the errata.

Thanks again,

PJ

trejan
Posts: 2930
Joined: Tue Jul 02, 2019 2:28 pm

Re: MagPi 90-93 - Magic Mirrors

Wed Jun 03, 2020 1:16 pm

MrPJEvans wrote:
Wed Jun 03, 2020 12:26 pm
On the second point, I wonder if there is a newer version as the empty string "" works for me. "0.0.0.0" does make more sense as that's pretty much a de facto standard of doing it. I'll double-check in case I'm mistaken. Either way it should go into the errata.
"" meaning no restriction was deprecated a few months ago. Sample configuration now says to use "0.0.0.0" or "::"

DarrenHill
Posts: 265
Joined: Fri Oct 03, 2014 3:03 pm

Re: MagPi 90-93 - Magic Mirrors

Sat Sep 05, 2020 3:32 pm

@MrPJEvans - you're more than welcome :)

It's actually a Pi-Top Ceed repurposed as a desktop information display in my study, but it's using the Magic Mirror software to do it. Just without a mirror...

For the server mode, the config.js needs the 0.0.0.0 in the address line plus a suitable ipWhitelist entry and then it works fine. Took me a while to work that out though (and as @trejan notes above the comments in the file are very helpful there).

In case anyone else falls over this one, working settings are:

Code: Select all

address: "0.0.0.0",
port: 8080,
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1", "192.168.0.0/24", "::ffff:192.168.0.0/24"],
My home network is 192.168.0.x - may need modification of course for other usage elsewhere.

Return to “The MagPi”