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.

    MM to run only between certain times

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    3 Posts 2 Posters 964 Views 4 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.
    • A Offline
      AJSG
      last edited by

      I am building a MM for my child based on a Pico projector and RPI. I would like the screen to come on at a certain time and then switch off at X time. For example start at 06:30 and close at 08:30 to avoid burning the projector.

      Basically I’m building this into an R2 D2 shell, which will wake up with a Leia video (dubbed), then display weather/time for an hour or so and then shut off the projector/screen.

      In theory I’d like this sequence in crontab:

      06:30 switch on projector via USB relay
      06:32 play leia.mp4 via omxplayer
      06:34 load Magic Mirror
      08:30 unload Magic Mirror
      08:31 switch off projector via USB relay

      How can I control Magic Mirror from crontab??

      Should I play the video alarm before MM or within MM??

      Any suggestion would be most welcome.

      Thanks,

      Andrew.

      justjim1220J 1 Reply Last reply Reply Quote 1
      • justjim1220J Offline
        justjim1220 Module Developer @AJSG
        last edited by justjim1220

        @ajsg

        https://github.com/ianperrin/MMM-ModuleScheduler

        https://github.com/fewieden/MMM-AlarmClock

        "Life's Too Short To Dance With Ugly People"
        Jim Hallock - 1995

        1 Reply Last reply Reply Quote 1
        • A Offline
          AJSG
          last edited by

          Thank you Jim, I will try those. Ideally I would like to go from Desktop to MM via crontab and back, without having to brute force it via pkill or similar.

          Do you have any suggestions?

          I need to be able run the relay scripts, or if connected to a monitor the vcgencmd command before and after MM.

          Thanks,

          Andrew.

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