18 votes
Accepted

Motion-daemon: /var/log/motion/motion.log permission denied

Gotcha! For testing I started motion with sudo motion -b. Therefore, /var/log/motion/motion.log was written with root:root. After removing /var/log/motion and reboot, the motion-daemon was up and ...
participant's user avatar
11 votes

RasPi Camera Board and Motion

to load the model after each reboot, use this setting sudo nano /etc/modules enter bcm2835-v4l2 exist and save the fle sudo reboot
jefwu's user avatar
  • 111
8 votes

Motion-daemon: /var/log/motion/motion.log permission denied

There are three ways to fix the problem. All are really the same, just from different angles. That is to make sure that the user starting motion has the access permission to write into the /var/log/...
Charemer's user avatar
  • 645
7 votes

Where does 'Motion' web cam interface store image files?

The default directory is /var/lib/motion which is set in the /etc/motion/motion.conf file using the target_dir variable
user73647's user avatar
6 votes
Accepted

"Failed to open video device /dev/video0 no such file or directory" with normal working usb camera in motion

Problem Solved!! What I did was: 1) Removed Motion from Raspberry Pi using sudo apt-get --purge remove motion 2) Disabled Raspberry Pi Camera in raspi-config and rebooted the Pi 3) Installed ...
Alok Naushad's user avatar
6 votes

Protect my motion webcam stream with a password (motion.conf)

To setup a username and password with motion, you need to edit motion configuration file. Steps Open terminal Type sudo nano /etc/motion/motion/conf Add in a new line stream_auth_method 1 Add in a ...
Chaf's user avatar
  • 61
6 votes

Unable to open video device

Try this: sudo modprobe bcm2835-v4l2 if works then put above line in /etc/rc.local to run this at boot time.
Abhishek Rai's user avatar
5 votes

Motion filming can't get on real speed

Check out this thread: https://www.raspberrypi.org/forums/viewtopic.php?t=75240 With the updated binary you can get 15FPS on the live stream. If you set output_pictures ON, you can collect up to 15 ...
Dan's user avatar
  • 51
4 votes

Can't access motion server

Using motion V4.0 this helpful parameters are: # change the following options in your motion.conf from on to off stream_localhost off stream_port 8081 webcontrol_localhost off webcontrol_port 8080
Joe's user avatar
  • 41
4 votes
Accepted

Unable to open video device

A short Google search for Device doesn't support VIDIOC_G_STD gave these two links: Raspberry Pi • View topic - Motion errors for RPi camera Unable to open video device · Issue #147 · ccrisan/...
linusg's user avatar
  • 442
4 votes

4-5 (multiple) USB Cameras on one raspberry

If they are USB cameras... you can preview the stream on demand using any software you like.. as long as you say which USB device you are using. You could even use a desktop application to take ...
Piotr Kula's user avatar
  • 17.3k
4 votes

Motion-daemon: /var/log/motion/motion.log permission denied

I have tested all answers but no solution. After I reboot the raspberry pi, problem still there. Follow the procedure below to fix the problem. Create another directory: sudo mkdir /home/log/...
M. Rostami's user avatar
  • 4,323
4 votes

how to delete motion images raspberry pi 3

Welcome to stack exchange! Use the sudo and chmod commands. to give the everyone(the default user) access to the folder, simply change into the directory(folder) the folder is in using the command ...
Benjamin Ashbaugh's user avatar
4 votes
Accepted

Is there a way to reload motion.conf without restarting the motion service?

In addition to the answer from @p4ulmac you get the pid with ps -e | grep motion. If you like to control your services with systemd then there is no need to handle with the pid. You can simply: rpi ~$...
Ingo's user avatar
  • 42.1k
4 votes
Accepted

How to Detect Which Side of an Object is Facing Up

You need to use 3 axes accelerometer to sense which side of your cube is facing up. Accelerometers sense the gravity g and the acceleration due to motion. Eg. when you roll dice, one of the axis will ...
Ravi Mali's user avatar
  • 144
4 votes

Motion security

It's simple. There is some TLS feature for the web interface and also for the stream port. Generate your certificate files: apt-get install openssl openssl genrsa -out /etc/motion/motion.key 4096 ...
M. Rostami's user avatar
  • 4,323
3 votes

How to start Motion in daemon mode on RPi running Raspbian Jessie

Confirmed for stretch (v9) as well. you can also use $ ps -ef | grep motion to see if motion is running
Bigdadda06's user avatar
3 votes

Motion filming can't get on real speed

You have to go into the .conf file and change stream_maxrate to the desired framerate.
poop butt's user avatar
3 votes

Motion configuration: on_event_start not working

If you try to use on_event_start in motion to do something with GPIO, you will discover that user motion has no access to /dev/mem. So a Python script that wants to activate a relay through a GPIO pin ...
asylumcs's user avatar
3 votes

unable to open video device and grey screen

I tried the answer mentioned and it didn't quite work for me. I did find that appending # load camera driver bcm2835-v4l2 to /etc/modules worked like a charm. Obviously the commented out part is ...
NetApex's user avatar
  • 31
3 votes
Accepted

Raspberry PI 3 as NVR

The Pi3 has more CPU power than the A20 and bit more than the BananaPi. But in order to monitor 8 different cameras, it may not be enough, even if it is only for simple motion detection. ...
tlhIngan's user avatar
  • 3,372
3 votes

Motion 4.0 Server working but not streaming

Fixed it. I had the streaming port and the HTTP control on the same port. I changed the control port to 8082 and then I could see the live stream on 8081
Bigdadda06's user avatar
3 votes

Is there a way to reload motion.conf without restarting the motion service?

Based on the following page, Motion Guide - Getting It Running: Signals (sent with e.g. kill command) It would appear that you can send the following command; kill -s SIGHUP pid where pid is the ...
p4ulmac's user avatar
  • 31
3 votes
Accepted

Does HC-SR501 detect motion of objects (non-living things)

You have not given a link to the sensor so this is an assumption. Assuming the HC-SR501 is an infra-red sensor it detects a change in infra-red, i.e. change in temperature. If the objects you want ...
joan's user avatar
  • 71.1k
3 votes

motion not encrypted even with https

The motion doesn't encrypt video streams. I mean, it hasn't an online video/FFmpeg/RTSP encryption feature As I read a long time ago, it's not related to https. Motion sends video streams over a ...
M. Rostami's user avatar
  • 4,323
2 votes

Running script in motion

This configuration works for me: on_motion_detected /usr/bin/python /home/myuser/Scripts/MyScript.py Of course, the script must have the correct permissions to be executed by the motion process. ...
Frith's user avatar
  • 21
2 votes

Compile MJPG Streamer Error

Here are the steps: git clone https://github.com/jacksonliam/mjpg-streamer.git sudo apt-get install cmake libjpeg8-dev cd mjpg-streamer-experimental make sudo make install Here is how to run it (...
jglee1's user avatar
  • 21
2 votes

Recording video using Motion regardless of motion detection

In the motion.conf, output_all was changed to emulate_motion in motion version 3.4. Using this records video along with live streaming. Sources: user: Kanchu | site: motion-project.github.io
SrgSprinkles's user avatar
2 votes

Motion webcam resolution limit

why don't you just use the RPi cam and stream the data across the network for evaluation on another machine? A resolution of 1920 x 1440 at 3 frames per second is no problem for this construction. I ...
sparkie's user avatar
  • 435
2 votes
Accepted

Interfacing PIR motion sensor with Raspberry Pi

Pin 3 & 5 are intended for I²C and have 1.8kΩ pullups to +3.3V.
Milliways's user avatar
  • 60k

Only top scored, non community-wiki answers of a minimum length are eligible