LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Blogs > peonuser
User Name
Password

Notices


Rate this Entry

Motioneyeos

Posted 07-15-2017 at 07:03 PM by peonuser

Motioneyeos can turn a Raspberry Pi into an ip camera.

Normally I am not fond of canned software, but this one might be an exception. Motioneyeos is a raspberry pi implementation for the program Motion. Motion is software to control video capture devices. All control is done via the web. For purposes of this project we used an original raspberry pi. (https://github.com/ccrisan/motioneyeos/releases). There are several releases depending on the unit you have.

First I tried a logitech usb camera clone. The system recognized it immediately. Not like a certain other operating system where you have to load the drivers for almost everything.

Then we added an ipcamera (network ready). After adding the network camera file, it worked just like you would expect. The documentation for the camera the did not have the description of the file. Fortunately the Motion software site did have that information. (http://www.lavrsen.dk/foswiki/bin/vi...WorkingDevices) Again no additional drivers were required.

Actual picture is much clearer. For a novice user it is pretty simple. Only exception is shutting the unit down, I did not see a visible icon. Also security could be greater, but for the price of free you can not beat it.

installing motion from scratch:

Let's get your system up to date (might take a while if you have not updated very recently).

$ sudo apt-get update ; sudo apt-get upgrade
$ sudo apt-get dist-upgrade

Now let's install Motion

$ sudo apt-get install motion.

Does the RPi see your camera? (aka list usb devices attached.)

$ lsusb

...
Bus 001 Device 004: ID 046d:08a9 Logitech, Inc. Notebook Deluxe
...

if not, you may need to get a more mainstream camera. usually Logitech sets the standard. I just used a cheap refurbished knickoff. Your output will vary..

Do a liittle configuration:

$ sudo nano /etc/motion/motion.conf

In here there are a few basic changes that you need to perform:

Daemon = OFF to ON
webcam_localhost = ON to OFF

You can change other settings but it’s recommend you don’t take more than 2 frames, and you been the default frame pixel size, for stability.

To ensure that the motion service will actually start as a daemon we need to change another configuration setting, so enter the following:

sudo nano /etc/default/motion

Then change the value “start_motion_daemon=no” to “yes”


Let's get started:

Finally you can start the motion service to stream the web cam images

sudo service motion start
Then after about 30 seconds browse to the new web interface, which should be at the below URL (where 192.168.0.100 is your Raspberry PI’s IP address yours may vary)

http://192.168.0.100:8081

Hint: if you do not have direct access to your RPi, you can use https://www.instructables.com/id/Red...ork-discovery/ to find iit on the network Frequently I will hook up the RPi to the network without a keyboard, mouse, or monitor and then remote into the unit,

Also:

Note if you want to use an ipcamera it is easy but you have to know about the camera. I ended up going to the zoneminder wiki and found the answer for my camera. Setup is the same, but you have to add two lines to motion.conf.

netcam_url http://19.168.10.85/videostreadlocationsomekindof.cgi
netcam_userpass userassword

For us it was:

netcam_url http://192.168.10.85/video.cgi
netcam_userpass userassword

I have ZM installed on my Media Server that runs multiple programs including Apache, email server, and Mysql with no issues. I dont know if the earlier stages of Zm was picky like that but its more friendly now neat! do this to my room!
Cool. I also thought of maybe using this for a pod casting setup also.
Awesome. I was easily able to set up a video surveillance system at home and at work.
There are also instructions for installing form source:
https://github.com/ccrisan/motioneye...ng-From-Source
Posted in Uncategorized
Views 129 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 06:01 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration