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

Schedule reboot of Pi or MagicMirror

Scheduled Pinned Locked Moved Unsolved Troubleshooting
5 Posts 4 Posters 569 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.
  • B Offline
    Bobba86
    last edited by Apr 18, 2024, 6:10 PM

    Hey!

    Been looking around for an option to get my Pi to restart once a day or at least get my MM restarting once a day. There seems to be an issue where some modules wont update unless i reboot MM. For example Google Calendar.

    There is a lot of guides out there, but i simply cant get it to work. Most of them are really old, so i guess they are outdated or maybe I´m doing it wrong :)
    Anyhow,

    What would be the easiest way to get my PI or MM to have a schedules restart once a day?
    Running a Raspberry Pi 3b+ with

    Thanks for the support!

    S 1 Reply Last reply Apr 18, 2024, 6:22 PM Reply Quote 0
    • S Offline
      sdetweil @Bobba86
      last edited by Apr 18, 2024, 6:22 PM

      @Bobba86 crontab is the typical way to do this
      it takes a control file with a line for each event

      I would make sure to call the

      reboot
      command as root
      or the
      pm2 restart MagicMirror
      command as the user

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      B 1 Reply Last reply Apr 18, 2024, 6:45 PM Reply Quote 0
      • B Offline
        BKeyport Module Developer @sdetweil
        last edited by Apr 18, 2024, 6:45 PM

        @Bobba86

        https://linuxhandbook.com/crontab/

        https://crontab.guru/

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

        1 Reply Last reply Reply Quote 0
        • E Offline
          Exndfan
          last edited by Exndfan Apr 19, 2024, 10:47 AM Apr 19, 2024, 10:43 AM

          I have mine set up with a Python script to do a reboot and invoke it with crontab. As far as the television monitor is concerned, I use a Sonoff S31 and programmed it to shut down and turn on at certain times.

          #! /usr/bin/env python3
          #Shutdown.py
          #Do the actual reboot
          os.system(‘sudo shutdown now’)

          B 1 Reply Last reply Apr 19, 2024, 5:10 PM Reply Quote 0
          • B Offline
            BKeyport Module Developer @Exndfan
            last edited by Apr 19, 2024, 5:10 PM

            @Exndfan I have something like the same - except mine was remote control so I could control it through my smart home. Still gotta get that set up again.

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

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