LinuxMCE Forums

General => Installation issues => Topic started by: orionsune on March 11, 2008, 10:57:09 pm

Title: IP Cameras and Motion
Post by: orionsune on March 11, 2008, 10:57:09 pm
I've just spend the better part of last week trying to get my AXIS 2100 IP Camera working under Motion.

I read the wiki tutorial here:
http://wiki.linuxmce.org/index.php/IP_Cameras

and obviously that was outdated as nothing mentioned there even closely resembled the version i'm running (7.10B3), so I found a post confirmed this wiki article was ancient and all you have to do now is add the camera under the Motion_Wrapper device.

There is no such device, unless i'm just plain ignorant.  I could not find anything relating to any of that.  I checked the source code, I see the source for Motion_Wrapper, and I can compile the binary, but where is it in the 7.10B3 release?  It doesn't even appear to be listed in the device lists.  The closest thing I found, was under Manufacture there is one listed "Motion", I select it and there are no device templates under that manufacture.

I got motion working with my camera by configuring it manually, and the article on the wiki is extremely outdated.  Also you have to complete remove any reference to "/dev/video0" devices in the motion.conf file and instead, your first IP Camera needs to be listed in the main motion.conf or motion will not start at all, it will always look for a default /dev/vide0 device, even if you remove the directive that defines it in the config file, instead I had to have the netcam_url directive existing in the main motion.conf file, and then motion would start.  So for my second and third camera I made a thread0.conf and a thread1.conf and everything works great.

I can also still view my cameras from LMCE, but they are listed as IP Camera devices, not sub-devices under a Motion_Wrapper which I cannot find anywhere.

But having it setup this way, from what I understand, is now i'm loosing my alertting features.  Which is number 1 reason I wanted motion working with lmce.

Can anymore please provide some insight to the source of my confusion?
Title: Re: IP Cameras and Motion
Post by: burgiman on March 11, 2008, 11:28:50 pm
You don't need to setup motion manually. That's confusing ;)

1. Goto webadmin, left frame bottom "Show devices tree".
2. click on [ + ] CORE
3. click on "The core/hybrid"
4a. choose in the right frame "Create Child Device" -> new page: click on "Pick Device Template"
4b. choose in dropdown-box "Device Template": "Motion Wrapper" then button next to that box again "Pick Device Template"
...done...
5. Quick restart router and lmce will download the needed motionpackages and configure the stuff behind...

again steps 1-2

6. now click on  [ + ] "The core/hybrid"
7. click on "Motion Wrapper" then step 4a again
9. choose now "Generic analog camera" like you did in step 4b

10. when the cam is added, paste the following in the "Configuration"-textbox at the bottom:
netcam_url yourURLstring_to_access_the_cam_pic    (for example) http://192.168.80.250/cgi-bin/snapshot.jpg)
netcam_userpass username:password


save .. and you are done.
Quick restart router and don't forget to change the security sensors in webadmin.

burgi
Title: Re: IP Cameras and Motion
Post by: orionsune on March 11, 2008, 11:50:16 pm
Freaking awesome thank you.


The confusion is from here..
Quote
4a. choose in the right frame "Create Child Device" -> new page: click on "Pick Device Template"
4b. choose in dropdown-box "Device Template": "Motion Wrapper" then button next to that box again "Pick Device Template"
...done...
The post I read talking about how the wiki article is obsolete, and breifly instructed on how to do this procedure only said something along the lines of:

"Add Motion Wrapper then add your IP Cameras as a child device of that."

My problem, was I couldn't find Motion Wrapper as a device template, but that was because I assumed "Motion" was the manufacture and was filtering device templates based on that.

Someone should really blow that old article away and put your simple steps... or i'll just copy paste your post if you don't care.
Title: Re: IP Cameras and Motion
Post by: bulek on March 12, 2008, 01:16:35 am
Maybe you could try to expand instructions on setting up IP Camera here :

http://wiki.linuxmce.org/index.php/Motion (http://wiki.linuxmce.org/index.php/Motion)

Regards,

Bulek.