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.

    Cronjob doesn't work with my MM

    Scheduled Pinned Locked Moved Troubleshooting
    16 Posts 7 Posters 2.7k Views 7 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
      MisterT
      last edited by

      Hi it’s me again
      So i made a fresh installation of raspbian buster and latest version of Magic mirror. I used the auto install from @sdetweil . At the end of autoinstall, a message appears and says: Do you want use pm2 to autostart your mirror?
      So i pressed yes.
      After this i restart my Magic mirror but it didn’t start with raspbian.

      I try my cronjob in crontab-e but nothing happen

      SHELL=/bin/sh
      PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
      01 00 * * *   pi      pm2 restart MagicMirror
      00 08 * * *   pi      pm2 restart MagicMirror
      10 16 * * *   pi      pm2 stop MagicMirror
      
      

      does this command line can resolve my problem from @sdetweil git script?

      bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/fixuppm2.sh)"
      

      Thx for next answers

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @MisterT
        last edited by sdetweil

        @MisterT i have seen this a couple times… not sure why,

        run the fixuppm2.sh script from my repo and see if that fixes the problem

        one line to copy/paste

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          MisterT @sdetweil
          last edited by

          @sdetweil i apply your command line and magic mirror starts with raspbian. I’ll come back if i have problems with my crontab
          Thx

          1 Reply Last reply Reply Quote 0
          • BKeyportB Offline
            BKeyport Module Developer
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • foxF Offline
              fox
              last edited by

              I it working now for you? :)

              Issues With MMM-WatchDog known?

              https://forum.magicmirror.builders/post/29827

              Useful for PIR-Sensor: https://forum.magicmirror.builders/post/21299

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