• 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.

Turning system on and off

Scheduled Pinned Locked Moved Hardware
10 Posts 6 Posters 2.3k Views 6 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.
  • M Offline
    Michelle.H2020
    last edited by Nov 29, 2023, 6:53 PM

    Please give me ideas on how I can turn my system on and off without doing too much do you use motion sensing or what are simpler ways that I can make sure that the system is not continuously running and am able to turn it off each night. Thank you!

    M S B T 4 Replies Last reply Nov 29, 2023, 7:01 PM Reply Quote 0
    • M Offline
      MMRIZE @Michelle.H2020
      last edited by Nov 29, 2023, 7:01 PM

      @Michelle-H2020
      RPI has no rtc so it cannot be turned on alone.
      The easiest solution I think is a smart outlet(socket) with timer. Set the timer to switch on/off the RPI. Before turning off every night, you can shutdown RPI with CRON setup.

      M 1 Reply Last reply Nov 29, 2023, 7:28 PM Reply Quote 0
      • M Offline
        Michelle.H2020 @MMRIZE
        last edited by Nov 29, 2023, 7:28 PM

        @MMRIZE oh that’s smart we have some of those ! Also what is CRON setup can you explain that?

        M 1 Reply Last reply Nov 29, 2023, 7:52 PM Reply Quote 0
        • S Away
          sdetweil @Michelle.H2020
          last edited by Nov 29, 2023, 7:31 PM

          @Michelle-H2020 just a warning. the SD cards don’t do well with power off, so YOU NEED to do a proper shutdown before you power off

          cron is the name of a Linux task, whose job it is to run tasks on a time cycle.

          goigle
          help Linux cron

          all commands on Linux have a manual page (man page)
          see man cron
          or help
          cron --help

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • M Offline
            MMRIZE @Michelle.H2020
            last edited by Nov 29, 2023, 7:52 PM

            @Michelle-H2020
            If you are not familiar with CRON or Linux things, I think you can use this module instead. It implements CRON features as MagicMirror module.
            https://github.com/ralberth/MMM-ScriptScheduler
            I didn’t test personally.

            1 Reply Last reply Reply Quote 0
            • M Offline
              Michelle.H2020
              last edited by Nov 29, 2023, 8:15 PM

              Ok so it’s better to install the scheduler and then just do a complete shut down after with scheduled outlet timer ? Or do I just do the scheduler module and have only the monitor shut down with smart outlet . Thanks for clarifying

              M 1 Reply Last reply Nov 29, 2023, 8:30 PM Reply Quote 0
              • M Offline
                MMRIZE @Michelle.H2020
                last edited by MMRIZE Nov 29, 2023, 8:32 PM Nov 29, 2023, 8:30 PM

                @Michelle-H2020
                You should shutdown RPI before power off of outlet. I think 5 minutes would be enough before cut the power off.
                For example, you can set 00:00 to turn off for outlet, and you have to shutdown on RPI by cron(or that module) at 23:55.

                1 Reply Last reply Reply Quote 0
                • B Offline
                  BKeyport Module Developer @Michelle.H2020
                  last edited by Nov 30, 2023, 11:22 PM

                  @Michelle-H2020 The pi itself don’t take that much power, I’d just leave it running - and instead, control the monitor. simple commands - if you’re using a TV for a monitor like I do for one screen, look into CEC tools.


                  vcgencmd display_power
                  Show current display power state, or set the display power state. vcgencmd display_power 0 will turn off power to the current display. vcgencmd display_power 1 will turn on power to the display. If no parameter is set, this will display the current power state. The final parameter is an optional display ID, as returned by tvservice -l, which allows a specific display to be turned on or off.

                  vcgencmd display_power 0 7 will turn off power to display ID 7, which is HDMI 1 on a Raspberry Pi 4.


                  The "E" in "Javascript" stands for "Easy"

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    TomOMaley
                    last edited by sdetweil Dec 3, 2023, 12:04 PM Dec 3, 2023, 6:17 AM

                    My solution. Cronjob to shut down the raspi and a Shelly Relay to switch the power on and off. As already mentioned here, I only switch the power off 5 minutes later. The Shelly works like a timer and you can switch on and off several times a day. It switches off the power to both the Raspi and the display. With the Shelly app or an additional switch, you can also switch on the MM outside the programmed times. If you are not familiar with 230V wiring, use a Shelly plug.

                    Übersetzt mit DeepL

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      tjat @Michelle.H2020
                      last edited by Dec 3, 2023, 12:05 PM

                      @Michelle-H2020

                      I never could get the motion sensing to work as well as I’d like. My solution at night is as others mentioned: a cron job to shut down and then a smart outlet to cut power 5 min later. The smart outlet turns on at 5:45AM so my MM is up and running when I wake up.

                      I also implemented a screensaver to run after a period of inactivity to prevent screen burn-in.

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      1 / 1
                      • First post
                        5/10
                        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