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.

    Monitor external program...

    Scheduled Pinned Locked Moved Development
    5 Posts 3 Posters 506 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.
    • BKeyportB Offline
      BKeyport Module Developer
      last edited by

      I need a clue on how to do this - I’m wanting to make sure an external program is running on my Pi. and if it’s not display a message on the screen. is there a way to check such things within the magic mirror system?

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

      lavolp3L 1 Reply Last reply Reply Quote 0
      • lavolp3L Offline
        lavolp3 Module Developer @BKeyport
        last edited by

        @BKeyport There is very likely an npm module for that.
        Like this one:
        https://www.npmjs.com/package/find-process

        How to troubleshoot modules
        MMM-soccer v2, MMM-AVStock

        lavolp3L 1 Reply Last reply Reply Quote 1
        • lavolp3L Offline
          lavolp3 Module Developer @lavolp3
          last edited by

          @lavolp3 Good idea for a module by the way!
          You could write one that checks for processes running, shows if they are running or not and starts/restarts them on demand

          How to troubleshoot modules
          MMM-soccer v2, MMM-AVStock

          1 Reply Last reply Reply Quote 0
          • lavolp3L Offline
            lavolp3 Module Developer
            last edited by

            This seems to be a good solution as well.
            https://www.npmjs.com/package/ps-node

            How to troubleshoot modules
            MMM-soccer v2, MMM-AVStock

            1 Reply Last reply Reply Quote 1
            • S Away
              sdetweil
              last edited by

              start the external program with pm2, it will keep it running

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              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