Read the statement by Michael Teeuw here.
Adding buttons and switches.
-
Hello everyone,
I’ve been following the whole Magic Mirror community for quite some time now and last year I decided to give it a go aswell. So far I’ve been planning the project for a good year now and I’ve collected most of the materials, but I’m very inexperienced when it comes to coding and building computer related things.
I’ve an old Raspberry running the first version of the MagicMirror software (my Pi is too old for the 2.0 version of the MagicMirror software) and last year I managed to install the software and get it running properly on the Pi.
Now I could leave it at that and build a base for the monitor, hook up the Pi to the monitor, add the glass and add a front frame and be done, but I want to take it a small step further.
I’ve seen people using webcams and sensors to automatically switch the Pi and monitor on/off, but I’d like to use a switch and 2 buttons for this. one button would switch the Pi on/off, the other button would switch the monitor on/off and the switch would cut the power to both the Pi and the monitor.
but sadly as mentioned I’m very inexperienced with this and I don’t really have a clue on how to go about this. I know the switch can just be connected to the power cable leading to the Pi and monitor, so there’s probably no need to code something for that, but the buttons is probably a different case.
my question is if there’s someone who’s done something similar with their Magic Mirror or can explain to me on how I can do this, or perhaps link me to a guide or tutorial that explains what I’m trying to do.
-