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.

    Motion Detection with RaspiCam, Non-Module version

    Scheduled Pinned Locked Moved Tutorials
    47 Posts 13 Posters 46.8k Views 17 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.
    • bheplerB Offline
      bhepler Module Developer @dam4
      last edited by

      @dam4 What the hell… ls is the “list” command. It should only show you the listing for the file, including dates and permissions. But it’s… executing.

      Just to be sure: pm2 shows two separate processes when you type pm2 status, correct?

      D 1 Reply Last reply Reply Quote 0
      • D Offline
        dam4 @bhepler
        last edited by

        @bhepler I copied and pasted exactly what you wrote for the command to make sure I didn’t mistype something.
        Yes there are two processes running when I type pm2 status. One is MagicMirror and the other is motion.

        1 Reply Last reply Reply Quote 0
        • T Offline
          trividar
          last edited by

          Does anyone get it to work on stretch? I tried it but without success.

          F 1 Reply Last reply Reply Quote 0
          • A Offline
            AnduriI
            last edited by

            Hey there,

            I have this running for quite some time and it works in general. But after some hours it gets really slow and unresponsiv. A motion need a few seconds before it is detected. I already have enabled a daily reboot, but still these few hours are enough. I also tried only restarting motion via pm2, but this leads to problems. I checked it with pm2 monit and got this:

            motion > [0] [NTC] [ALL] main: Waiting for threads to finish, pid: 13536 
            motion > [1] [NTC] [ALL] motion_init: Thread 1 started , motion detection Enabled
            motion > [1] [ALR] [VID] mmalcam_start: MMAL Camera thread starting... for camera (vc.ril.camera) of 640 x 480 at 4 fps
            motion > [1] [ALR] [VID] mmalcam_start: MMAL Camera using video capture
            motion > [0] [ERR] [ALL] main: Thread 1 - Watchdog timeout, trying to do a graceful restart
            motion > [0] [ERR] [ALL] main: Thread 1 - Watchdog timeout, did NOT restart graceful,killing it! 
            motion > [0] [NTC] [STR] stream_stop: Closing motion-stream listen socket & active motion-stream sockets 
            motion > [0] [NTC] [STR] stream_stop: Closed motion-stream listen socket & active motion-stream sockets
            motion > [0] [INF] [ALL] motion_cleanup: Calling vid_close() from motion_cleanup 
            motion > [0] [INF] [VID] vid_close: calling video source cleanup 
            motion > [0] [ALR] [VID] MMAL Camera cleanup 
            motion > /home/pi/motion.sh: Zeile 2: 13536 Speicherzugriffsfehler  (Speicherabzug geschrieben) ./motion -c motion.conf
            PM2 > App [motion] with id [0] and pid [13532], exited with code [139] via signal [SIGINT] 
            PM2 > Starting execution sequence in -fork mode- for app name:motion id:0
            PM2 > App name:motion id:0 online
            motion > [0] [NTC] [ALL] conf_load: Processing thread 0 - config file motion.conf
            motion > [0] [NTC] [ALL] motion_startup: Motion mmaltest Started 
            motion > [0] [NTC] [ALL] motion_startup: Logging to syslog 
            motion > [0] [NTC] [ALL] motion_startup: Using log type (ALL) log level (INF)
            motion > [0] [NTC] [ENC] ffmpeg_init: ffmpeg LIBAVCODEC_BUILD 3670272 LIBAVFORMAT_BUILD 3670272
            motion > [0] [NTC] [ALL] main: Thread 1 is from motion.conf
            motion > [0] [NTC] [ALL] main: Thread 1 is device: /dev/video0 input -1
            motion > [0] [NTC] [ALL] main: Stream port 8081
            motion > [0] [NTC] [ALL] main: Waiting for threads to finish, pid: 13583 
            motion > [1] [NTC] [ALL] motion_init: Thread 1 started , motion detection Enabled
            motion > [1] [ALR] [VID] mmalcam_start: MMAL Camera thread starting... for camera (vc.ril.camera) of 640 x 480 at 4 fps
            motion > [1] [ALR] [VID] mmalcam_start: MMAL Camera using video capture
            

            Can anyone suggest how to correctly restart motion?

            1 Reply Last reply Reply Quote 0
            • F Offline
              Freebond @trividar
              last edited by

              @trividar I’m trying to install it right now. You posted 2 months ago. Did you get it running?

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