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

    Posts

    Recent Best Controversial
    • RE: How to update.

      @izanbard
      Thank you. I did the chmod to make it executable but using the ./update.sh worked. Thank you again for your help.

      posted in Tutorials
      D
      dam4
    • RE: How to update.

      @Snille
      I am new to Linex and I have copied your script exactly and I get the following error.
      -bash: update.sh: command not found

      I called the script update.sh and I was going to use it in a cron job after I tested it to make sure it worked. Can you tell me what I might have done wrong. Thank you in advance for your help.

      posted in Tutorials
      D
      dam4
    • RE: Motion Detection with RaspiCam, Non-Module version

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

      posted in Tutorials
      D
      dam4
    • RE: Motion Detection with RaspiCam, Non-Module version

      @bhepler The motion works only when MagicMirror isn’t running. I have it starting with pm2. When MagicMirror is running the motion doesn’t work. Any suggestions?

      posted in Tutorials
      D
      dam4
    • RE: Motion Detection with RaspiCam, Non-Module version

      @bhepler
      This is what I get when I type that in.
      pi@raspberrypi:~ $ ls -ah /home/pi/motion
      . CONTRIBUTING.md mask1.png netcam_ftp.h rotate.o
      … COPYING md5.c netcam_ftp.o stream.c
      aclocal.m4 copyright md5.h netcam.h stream.h
      alg.c CREDITS md5.o netcam_http.c stream.o
      alg.h .depend mmalcam.c netcam_http.h test_builds.sh
      alg.o draw.c mmalcam.h netcam_http.o track.c
      autom4te.cache draw.o mmalcam.o netcam_jpeg.c track.h
      camera1-dist.conf event.c mmx.h netcam_jpeg.o track.o
      camera1-dist.conf.in event.h motion netcam.o .travis.yml
      camera2-dist.conf event.o motion.1 netcam_rtsp.c version.sh
      camera2-dist.conf.in FAQ motion.c netcam_rtsp.h video_bktr.c
      camera3-dist.conf ffmpeg.c motion-dist.conf netcam_rtsp.o video_bktr.h
      camera3-dist.conf.in ffmpeg.h motion-dist.conf.in netcam_wget.c video_bktr.o
      camera4-dist.conf ffmpeg.o motion_guide.html netcam_wget.h video_common.c
      camera4-dist.conf.in .git motion.h netcam_wget.o video_common.h
      CHANGELOG .gitignore motion.init-Debian normal.jpg video_common.o
      CODE_STANDARD INSTALL motion.init-Debian.in outputmotion1.jpg video_loopback.c
      conf.c ISSUE_TEMPLATE.md motion.init-FreeBSD.sh outputnormal1.jpg video_loopback.h
      conf.h jpegutils.c motion.init-FreeBSD.sh.in picture.c video_loopback.o
      config.h jpegutils.h motion.o picture.h video_v4l2.c
      config.h.in jpegutils.o motion.service picture.o video_v4l2.h
      config.log logger.c motion.service.in pwc-ioctl.h video_v4l2.o
      config.status logger.h motion.spec raspicam webhttpd.c
      configure logger.o motion.spec.in README.md webhttpd.h
      configure.ac Makefile netcam.c rotate.c webhttpd.o
      conf.o Makefile.in netcam_ftp.c rotate.h
      pi@raspberrypi:~ $

      posted in Tutorials
      D
      dam4
    • RE: Motion Detection with RaspiCam, Non-Module version

      @jasonarends
      I feel I am so close I followed the instructions exactly and I have motion started in pm2. it still doesn’t work. As I checked the motion-error-2.log I am seeing the following;

      Error: Cannot find module '/home/pi/motion'
          at Function.Module._resolveFilename (module.js:469:15)
          at Function.Module._load (module.js:417:25)
          at Object. (/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js:73:21)
          at Module._compile (module.js:570:32)
          at Object.Module._extensions..js (module.js:579:10)
          at Module.load (module.js:487:32)
          at tryModuleLoad (module.js:446:12)
          at Function.Module._load (module.js:438:3)
          at Module.runMain (module.js:604:10)
          at run (bootstrap_node.js:383:7)
      

      This is displayed over and over. I have checked for the directory /home/pi/motion and it is there. What am I missing?

      posted in Tutorials
      D
      dam4
    • RE: Motion Detection with RaspiCam, Non-Module version

      @jasonarends
      How would I set it up in pm2? I’d like to try it.

      posted in Tutorials
      D
      dam4
    • RE: Motion Detection with RaspiCam, Non-Module version

      @jasonarends
      I did get a picture when I typed that in so I know my camera is working.

      Here is the link to my config stuff.

      config stuff

      it sits there and my screen never blanked out, but I did notice that when I moved the block in front of the camera it did do something and when I put it back it did shut off the monitor.

      posted in Tutorials
      D
      dam4
    • RE: Motion Detection with RaspiCam, Non-Module version

      @jasonarends
      My motion.conf is located in my home directory. I looked for /etc/motion and I don’t have a directory called motion in /etc. So I made one and put motion.conf in there. My screen still doesn’t shut off. I did look over my motion.conf file and all my settings were exactly like yours. I did follow all the steps at the beginning of this post. I can also type in vcgencmd display_power 0 and it turns off the monitor and vcgencmd display_power 1 turns it back on. This is really getting frustrating. Thank you for your help.

      I also copied your updated_motion.conf.sh and double checked it and they match with the exception yours has a .sh at the end where mine does not. Is it supposed to have the .sh on the end of the file name or did it get added due to it being uploaded?

      posted in Tutorials
      D
      dam4
    • RE: Motion Detection with RaspiCam, Non-Module version

      @jasonarends
      How long does it take for the screen to blank out? So far the screen has stayed on and hasn’t even flickered. I have something in front of the Pi camera so it doesn’t pick up any movement and it has been over an hour now. Please help.

      posted in Tutorials
      D
      dam4
    • RE: Motion Detection with RaspiCam, Non-Module version

      @jasonarends
      Thank you for your help. I have tried this and it seemed to install. The only thing I had an issue with was when I entered make install it would not create a directory and it failed. I then ran it as sudo make install and it seemed to install. I am running my MagicMirror now to see if it works. How long does it take to turn the monitor off? Again thank you for your help.

      posted in Tutorials
      D
      dam4
    • RE: Motion Detection with RaspiCam, Non-Module version

      @jasonarends
      I just tried git clone https://github.com/Motion-Project/motion.git and it tells me this;

      fatal: destination path ‘motion’ already exists and is not an empty directory.

      I did a ls -al and it doesn’t show up as a directory. Should I remove the ‘motion’ that is in green from the home directory and try again?

      I have to go to work so I will have to work on this tomorrow. Thank you for your help.

      posted in Tutorials
      D
      dam4
    • RE: Motion Detection with RaspiCam, Non-Module version

      @yawns
      It looks like I am running stretch. This is what I get;

      pi@raspberrypi:~ $ cat /etc/os-release
      PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
      NAME="Raspbian GNU/Linux"
      VERSION_ID="9"
      VERSION="9 (stretch)"
      ID=raspbian
      ID_LIKE=debian
      HOME_URL="http://www.raspbian.org/"
      SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
      BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
      pi@raspberrypi:~ $
      
      posted in Tutorials
      D
      dam4
    • RE: Motion Detection with RaspiCam, Non-Module version

      @yawns I am pretty sure I am running Jessie. How do I know for sure?

      posted in Tutorials
      D
      dam4
    • RE: Motion Detection with RaspiCam, Non-Module version

      @bhepler
      Hello, I am a true n00b and I am having issues with your process for getting the Pi camera to work. I copied and pasted your first line exactly and I get the following.

      pi@raspberrypi:~ $ sudo apt-get install -y libjpeg-dev libavformat56 libavformat-dev libavcodec56 libavcodec-dev libavutil54 libavutil-dev libc6-dev zlib1g-dev libmysqlclient18 libmysqlclient-dev libpq5 libpq-dev
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Package libmysqlclient-dev is not available, but is referred to by another package.
      This may mean that the package is missing, has been obsoleted, or
      is only available from another source
      
      Package libmysqlclient18 is not available, but is referred to by another package.
      This may mean that the package is missing, has been obsoleted, or
      is only available from another source
      
      E: Unable to locate package libavformat56
      E: Unable to locate package libavcodec56
      E: Unable to locate package libavutil54
      E: Package 'libmysqlclient18' has no installation candidate
      E: Package 'libmysqlclient-dev' has no installation candidate
      pi@raspberrypi:~ $
      

      What did I do wrong? Please help and thank you in advance.

      posted in Tutorials
      D
      dam4
    • 1 / 1