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

Monitor external program...

Scheduled Pinned Locked Moved Development
5 Posts 3 Posters 464 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.
  • B Offline
    BKeyport Module Developer
    last edited by Apr 24, 2020, 5:36 AM

    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"

    L 1 Reply Last reply Apr 24, 2020, 7:17 AM Reply Quote 0
    • L Offline
      lavolp3 Module Developer @BKeyport
      last edited by Apr 24, 2020, 7:17 AM

      @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

      L 1 Reply Last reply Apr 24, 2020, 7:18 AM Reply Quote 1
      • L Offline
        lavolp3 Module Developer @lavolp3
        last edited by Apr 24, 2020, 7:18 AM

        @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
        • L Offline
          lavolp3 Module Developer
          last edited by Apr 24, 2020, 7:24 AM

          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 Offline
            sdetweil
            last edited by Apr 24, 2020, 11:08 AM

            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
            1 / 1
            • First post
              1/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