MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    Monitor external program...

    Development
    3
    5
    89
    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.
    • BKeyport
      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"

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

        lavolp3 1 Reply Last reply Reply Quote 1
        • lavolp3
          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
          • lavolp3
            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
              sdetweil last edited by

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

              Sam

              Create a working config
              How to add modules

              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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy