I need to use enviromental variables process.env in the config.js. However I am unable to do so in the server only mode.
The config.js is used in the “Webinterface”, this obviously don’t have access to the enviromental variables of Node.js.
I am using balena-MagicMirror (made by me) to have multiple remotely managed MagicMirrors which all contain basically the same config, but differ in a few things that should be defined as enviromental variables.
Anyone know how I can “inject” enviromental variables in the browser with some MagicMirror Module?
Edit: I just created a module that will do this
I have great news. I finaly had time to work on this again. It is currently working with some caviets. I will push my changes as soon as I resolved them. This is a huge improvement for me, as it enables easy remote management of many MagicMirror installations:)
I was just reading about PiNet. I know it’s meant mostly for teachers in a classroom, but I’m guessing you could use something like that and have each pi log into the main server. It would be easy to customize for each person in the household and/or each location. It would be an interesting project. I have several pi’s and an old laptop, I might just try this. One for the bathroom mirror and one in the living room, I like the idea.
The Magic Mirror Dashboard Generator, Wall Mirror, HomeMirror, Speculum Smart Mirror, Smart AI Mirror, Mirror by Max Braun, My Smart Mirror, Mirror Mirror – Smart Mirror Interface… all can be get from Play Store or apknite if you run your Magic Mirror on an Android device instead of Raspberry Pi or any other OS.
@strawberry-3-141 I tried putting this into cutstom.css and changing the left and right px . But nothing happened . I want to shift my clock to the right a little for alignment . Is there anything I’m doing wrong ? Thank you .
I’ve already built four or five magic mirrors now. I always proceed the same way:
Buying the Raspberry Pi, as @nischi has already posted
Buy a monitor the size you want to install later.
Please make sure that you get a monitor that switches to sleep mode without a signal on HDMI and does not switch to a completely green or blue screen for minutes before
Installation of Raspian
Installing Magic Mirror
(just follow the hint from @nischi here)
Installation of additional components such as motion detectors or a button to reboot the Raspberry
then run the whole thing without wooden frame and mirror for a few days/weeks to detect bugs, try modules, detect incompatibilities, etc.
Construction of a frame from e.g. wood
Then take measurements for the mirror glass.
Purchase of a spy mirror
Assembly of components
Here you can find a building instruction for my big mirror in the bathroom. I mounted an aluminium plate behind the spy mirror, which gives the whole thing stability, holds the monitor elegantly and ensures that no light falls through the spy mirror from behind.
Frameless monitors are okay. I personally remove the plastic bezel from the monitors so they’re essentially frameless anyway. If you’re uncomfortable with this, you can solve it by slinging money at the problem and buying a frameless monitor. The facing frame that you build in a typical mirror is going to put a border around the edges anyway. There is padding around the edge built into the Magic Mirror default stylesheet, so this becomes kind of a moot point.
I have not built a touchscreen mirror, mainly for the reasons you mention. I try to keep my mirror looking like a mirror, and avoid finger smudges. A lot of people want a touch interface for some reason. I don’t personally understand it. The interface is mostly push, not push-and-drag so that’s more or less a non-issue.
I relocate mine to the bottom of the box, hidden behind the frame. For the most part, they’re unused. But I like to leave them accessible just in case.
My first mirror had a camera behind the acrylic that would detect movement. The latest mirror also uses a camera behind the glass. The next one will probably feature a hole drilled in the facing frame for the sensor. With a little patience and sharp tools, it can be very discreet.
you can try this maybe this works for you but debends on your system/ environment
set internet explorer default page to “http://localhost:8080”
use windows key + r (run command)
type “shell:startup” (open a windows explorer)
create here a file with filetype *.bat (e.g. StartMagicMirror.bat)
START /max iexplore.exe
save an close and doubble click on the file, Internet Explorer should open and magic mirror should start.
Now you can restart an test
@broberg said in animations for Social Booths Mirror photo booths:
Magical Animations - Magic Mirror Animation Studio
Here’s some of our pre-made animation packs:
@sdetweil I am very jealous!! I have being working on this module for weeks now. I have finally got to this stage…
I get Chimes when MM first start up.
Its just now I can’t get to prove that my mic is working or get Assistant to output any sound or answer/recognise any voice commands. Clearly you got to this stage. What would you advise my next actions be please?
Sounds like youre doing a great job anyway. Would love to see it.