Page 2 of 2

Re: Kindly help requested by using my ip camera as motion sensor

Posted: Saturday 26 March 2016 15:08
by marmachine
Now, here's a helpfull link that explains the lines in the motion.conf file
http://www.lavrsen.dk/foswiki/bin/view/ ... ileOptions

Re: Kindly help requested by using my ip camera as motion sensor

Posted: Saturday 26 March 2016 17:41
by marmachine
I've found out that Foscam, or at least the newer models like my FI9900P, is trouble when it comes to MJPEG... the URL to the video stream isn't available. The snapshot URL works, so i am using that URL for the setup, but didn't get to test it.

Got some progress though, i think there still is an issue with the rights for the "motion" user... below is current /var/log/syslog

Code: Select all

Mar 26 17:11:20 raspberrypi motion: [1] [NTC] [NET] netcam_read_first_header: Content-length present
Mar 26 17:11:20 raspberrypi motion: [1] [NTC] [NET] netcam_read_first_header: Found Conn: close header ('Connection: close')
Mar 26 17:11:20 raspberrypi motion: [1] [NTC] [NET] netcam_read_html_jpeg: disconnecting netcam since keep-alive not set.
Mar 26 17:11:20 raspberrypi motion: [1] [NTC] [NET] netcam_read_html_jpeg: leaving netcam connected.
Mar 26 17:11:20 raspberrypi motion: [1] [ERR] [ALL] create_path: Problem creating directory /var/www:
Mar 26 17:11:20 raspberrypi motion: [1] [ERR] [ALL] put_picture: Can't write picture to file /var/www/cam/coffeepot.jpg - check access rights to target directory#012Thread is going to fi$
Mar 26 17:11:20 raspberrypi motion: [1] [ERR] [EVT] event_image_snapshot: Could not create symbolic link [cam/coffeepot.jpg]:
Mar 26 17:11:20 raspberrypi motion: [1] [NTC] [ALL] motion_loop: Thread exiting
Mar 26 17:11:20 raspberrypi motion: [1] [ALR] [NET] netcam_handler_loop: netcam camera handler: finish set, exiting
Mar 26 17:11:21 raspberrypi motion: [0] [NTC] [ALL] main: Threads finished
Mar 26 17:11:22 raspberrypi motion: [0] [NTC] [ALL] main: Motion terminating

Re: Kindly help requested by using my ip camera as motion sensor

Posted: Friday 15 April 2016 15:56
by marmachine
Guys, i've given up on the Foscam... besides all my trouble getting the motion stuff to work, i ran into a laggy firmware bug as well. Actually, i spoke to Foscam support, they will probably solve the issue, however i wouldn't expect a lousy working time-sync function for a security cam in the first place. My espectations were probably too high :lol:

Anyway, i took the option to return my brandnew cam and will look for some other option. Maybe someone who could bring out some advice on a nice cam. It would be nice if the cam itself could call a cURL in Domotics on motiondetection, that would help a lot.

Cheers

Re: Kindly help requested by using my ip camera as motion sensor

Posted: Monday 14 January 2019 6:31
by householder
Gabe wrote: Saturday 20 February 2016 22:11 Hi everybody,

I have exactly the same problem like BaliBiker. Has anybody a idea?

Thx
What is your camera model?