Time: About 30 minutes.
Difficulty: Medium
You will need:
- A way to access your Pi's terminal. SSH, works great because all you need is the command line.
- A webcam.
- An internet connection.
Steps:
- Log in to your Pi and open the terminal.
- type sudo apt-get install motion
- sudo nano /etc/motion/motion.conf
- This will open a long configuration file.
- There are a couple of things you will need to change, but since the .conf file is so long, it can be helpful to use CTRL+W to find things.
- You will need to change daemon off to daemon on.
- You will also need to change webcam_localhost on to webcam_localhost off. This will make it so any computer on the network can access the stream, not just the Pi.
- You will also need to disable control_localhost by changing it from control_localhost on to control_localhost off.
- That should be it, just exit the nano editor and restart.
- You will need the IP address of your Pi. You can get it by typing hostname -I.
- In a browser, type the address and at the end, type :8081. You should see a live stream from your webcam. I have had problems with Google Chrome but Firefox works fine.
No comments:
Post a Comment