• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Mirror boot time

Scheduled Pinned Locked Moved General Discussion
6 Posts 3 Posters 1.0k Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    pddh
    last edited by Mar 30, 2021, 9:49 PM

    Hi all. I’m new and looking to build a bathroom mirror. I’ve been inspired by everyone else’s fab builds!

    I’m thinking of wiring into the ceiling light circuit so it switches on when the light is turned on. What roughly is the boot time for a pi running magic mirror and would this be a good idea so it’s not constantly on?

    M O 2 Replies Last reply Mar 30, 2021, 10:10 PM Reply Quote 0
    • M Offline
      Mykle1 Project Sponsor Module Developer @pddh
      last edited by Mar 30, 2021, 10:10 PM

      @pddh

      My 2 cents:

      You’ll likely kill your SD card that way. Killing the power rather than “shutting down” the pi does bad things to the SD card.

      Go with a sensor that “wakes up” your display when there is motion and turns it off when there is no motion.

      Just one old dude’s opinion

      Create a working config
      How to add modules

      P 1 Reply Last reply Apr 2, 2021, 7:49 AM Reply Quote 1
      • O Offline
        OberfragGER @pddh
        last edited by Mar 31, 2021, 9:18 PM

        @pddh I have my MM in the bathroom.
        Actual solution - change the wiring (a bit)
        I already use ioBroker for some SmartHome magic.

        So i installed a shelly to catch the switch and set the shelly to detaced. With this- i can activate/deactive the power only with the shelly-app, ioBroker, Alexa e.g. So i have power the whole time behind my Mirror like i want an no one can turn off the power accidently. Oh- i fogot to mention… i have a double switch installed. One for the regular light and one for the power behind the mirror.

        2nd step- I have MQTT-service installed on the RPI (found the script online). WIth the “vcgencmd” you can turn off/ on the monitor signal to save some power, when not needed. Man PIR-Modules do the same.

        3rd step- let ioBroker (is the MQTT broker in this case) set the MQTT Mesasage - “Montitor on” e.g… when the switch is pressed on. And “monitor off” when the switch is off.

        So now you have a fully running MM and when someone is pressing the switch (or using the iphone-Home app, or using Alexa or or or…) the the MQTT state is set to “Monitor on” and the RPI (which has subsrcibed on that channel) is seeing the “Monitor on” command and starts “vcgencmd_1”.

        So the Monitor ist switched off.

        If you dont have any Smart Home Handler… You can have the MQTT-Broker on the RPI instead and when you use Tasmota you can configure Tasmota to communicate directly. So no need for ioBroker.

        I hope you can follow my “instructions”.

        P 1 Reply Last reply Apr 2, 2021, 7:51 AM Reply Quote 0
        • P Offline
          pddh @Mykle1
          last edited by Apr 2, 2021, 7:49 AM

          @mykle1 thank you. Good advice. I did worry about such a harsh shutdown

          1 Reply Last reply Reply Quote 0
          • P Offline
            pddh @OberfragGER
            last edited by Apr 2, 2021, 7:51 AM

            @oberfragger ah this is a really cool idea. I’ve never tried anything like this but I’m relatively tech savvy so with a bit of research I’m sure I can implement this.

            I’m planning on using a low voltage laptop screen so to avoid 240v in the bathroom. Presuming larger monitor screens need more?

            O 1 Reply Last reply Apr 4, 2021, 3:05 PM Reply Quote 0
            • O Offline
              OberfragGER @pddh
              last edited by Apr 4, 2021, 3:05 PM

              @pddh I forgot to mention- i have a double switch installed. One for the bathroom lights and the other for the mirror light. So i can use the mirror light easily for the MM.

              Later on i will break thru the wall and make a socket behind the mirror. So i have constant 220v and the Alexa behind the mirror will have always power.

              I power off the rpi and monitor fully over night for saving some energy and daily fresh reboot.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              1 / 1
              • First post
                1/6
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy