I am working on a Motion Detection Website powered by DietPiCam. I need the external motion detection enabled in DietPiCam for that.
The following command tells me that motion is very well installed on the system.
root@pi:/DietPi# dpkg -l | grep motion
ii motion 3.2.12-3.4 armhf V4L capture program supporting motion detection
Now there is just a little Problem. I can’t get Motion to start at boot without it running at 100% CPU.
Even if i start it manually by typing motion in the command line it runs at 100%.
The Fact that it doesn’t run at boot is a popular Bug in Motion. It’s not that difficult to get it running at boot but the 100% CPU Usage is giving me Diarrhea!
Well, i tried a lot of things. nothing helped so i did a clean reinstall of DietPi Wheezy and DietPiCam.
Then i enabled the motion daemon in /etc/default/motion file.
didn’t even touch the motion.conf in /etc/motion/
rebooted the pi and checked if motion was running. it was running and running at a very low cpu usage.
solved this problem this way. Clean Install seems to be the ultimate weapon lol
now i am trying to get motion detection to work for real in the web interface. no success until yet. I wrote about my misery in the foundations forum. Let’s see if they can help me with my problem.
lol, yep.
You might want to try dietpi-backup. This way you can create a restore point, play around with settings/configs for testing, then restore when you want to try something else. Saves you having to reinstall everytime.
I’ve seen your request for an alternative motion, i’ll look into it when I can.
I use Win32DiskImager to create an Image directly from the SDCard. Whenever i need a clean install, i erase the card with SD Card Formatter and flash the backup onto the SDCard.
So usually whenever you release a new DietPi Image i do a real manual clean install including dietpi optimized software and then create an image via DiskImager. I use this image whenever i mess stuff up.
That is why i am not so scared of messing things up
DietPi-Backup will have the same result as you saving the image and rewriting it again, but alot quicker (rsync based). Give it a whirl sometime
Some tips for DietPi-Backup usage:
Go through the 1st run setup, once everything is how you want it and the system is ready for use, run dietpi-backup and create one. Then all you need to do is run dietpi-backup and restore every time you want the system to be exactly how it was when you ran the backup.