MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. p4lsec
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    P
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 6
    • Groups 0

    p4lsec

    @p4lsec

    0
    Reputation
    249
    Profile views
    6
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    p4lsec Unfollow Follow

    Latest posts made by p4lsec

    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      Just wanted to cross-post this in case people are looking in this thread for a way to monitor and restart streams that have stopped:

      https://forum.magicmirror.builders/topic/11828/short-script-to-monitor-and-restart-your-mmm-rtspstreams

      posted in Utilities
      P
      p4lsec
    • Short script to monitor and restart your MMM-RTSPStreams

      Here is a super short Python script that checks the status of your streams using pm2, then if it detects a stream is down, it restarts the streams. Not elegant, but it works.

      import os
      if "stopped" in os.popen("pm2 status | grep \"stopped\"").read():
          os.popen("pm2 start 1 2 3 4")
      

      I saved it as streamMonitor.py in my home directory. I run it once per minute using crontab. This is the entry I put in:

      * * * * * python3 ~/streamMonitor.py
      

      Here is the script in action:

      0_1576967342114_Screen Shot 2019-12-21 at 5.27.57 PM.png

      And here is the crontab job:

      0_1576967509955_Screen Shot 2019-12-21 at 5.31.45 PM.png s

      posted in General Discussion
      P
      p4lsec
    • RE: MMM-HomeKit | Control your MagicMirror with Apple HomeKit

      Okay, looks like something with my npm was broken. It was working before, so I think installing this module or Homebridge did it. Attempting to fix.

      posted in System
      P
      p4lsec
    • RE: MMM-HomeKit | Control your MagicMirror with Apple HomeKit

      Excellent module!

      Got everything working fairly easily. I am attempting to add my own switches, but the issues I am having is that the “on_cmd” and “off_cmd” do not use npm correctly. Any ideas? This is the error it’s throwing. Didn’t have luck Googling.

      [3/10/2019, 1:42:17 PM] [Raspberry Pi] npm ERR! path /home/pi/package.json
      npm ERR! code ENOENT
      npm ERR! errno -2
      npm ERR! syscall open
      npm ERR! enoent ENOENT: no such file or directory, open '/home/pi/package.json'
      npm ERR! enoent This is related to npm not being able to find a file.
      npm ERR! enoent 
      
      posted in System
      P
      p4lsec
    • RE: Push Notifications and incompatibility with RTSP window.

      did you ever find a solution?

      posted in Troubleshooting
      P
      p4lsec
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      Does anyone know if it’s possible to use moduleOffset from within a single stream (stream3)? I couldn’t get it to work.

      I have three streams going. The first two are side-by-side, but the third is centered under them. I would like the third to be left-justified. Any ideas?

      posted in Utilities
      P
      p4lsec