JonesThePi
Posts: 21
Joined: Tue Oct 23, 2012 1:08 pm

Re: RPi Cam Web Interface

Sat Apr 19, 2014 10:47 am

Think I can answer my own question...

For some reason when I installed RasPi Cam with the latest firmware, /var/www/FIFO was not created as a command pipe!

When I removed RasPi Cam I had to manually delete /var/www/FIFO (./RPi_Cam_Web_Interface_Installer.sh remove failed to delete /var/www/FIFO), use the recommended firmware above and installed RasPi Cam again, everything works as expected.

I am pretty certain I tried to reinstall after manually removing /var/www/FIFO with the latest firmware but this did not work.

I have since updated both of my two camera set-ups with the latest firmware and they both work ok.
So in my situation something happened to /var/www/FIFO during upgrades to firmware and/or RasPi Cam. Hope this helps someone else...

JonesThePi
Posts: 21
Joined: Tue Oct 23, 2012 1:08 pm

Re: RPi Cam Web Interface

Sat Apr 19, 2014 11:48 am

Cancel the "works with the latest firmware". Ok for a while then locked up again after capturing a few images.

Have reverted to the suggested firmware and everything is much more stable...

elronno
Posts: 11
Joined: Sat Nov 09, 2013 10:36 am
Location: Europe
Contact: Website

Re: RPi Cam Web Interface

Sat Apr 19, 2014 12:18 pm

+1 for the suggested firmware. Much more stable.

Wicked
Posts: 2
Joined: Tue Apr 01, 2014 1:47 pm

Re: RPi Cam Web Interface

Sat Apr 19, 2014 2:26 pm

Works like a charm!!!
Thank you very much!
I was losing all hope ;-)

Willy

TristanK
Posts: 4
Joined: Fri Apr 18, 2014 4:37 pm

Re: RPi Cam Web Interface

Sat Apr 19, 2014 5:02 pm

Hi,
this workaround works fine for image recording bug but not for the motion detection one. What I found out so far is that both problems show up as soon as I install wicd-curses and remove networking.

Greetings Tristan

TristanK
Posts: 4
Joined: Fri Apr 18, 2014 4:37 pm

Re: RPi Cam Web Interface

Sat Apr 19, 2014 5:40 pm

Hi,

here are some messages I have found in userlog:

Apr 19 17:36:00 raspberrypi motion: [1] Retrying until successful connection with camera
Apr 19 17:36:00 raspberrypi motion: [1] connect returned error: Operation now in progress
Apr 19 17:36:00 raspberrypi motion: [1] Failed to open camera - check your config and that netcamera is online
Apr 19 17:36:00 raspberrypi motion: [1] Failed to read first camera header - giving up for now

What does that mean ?

Greetings Tristan

TristanK
Posts: 4
Joined: Fri Apr 18, 2014 4:37 pm

Re: RPi Cam Web Interface

Sat Apr 19, 2014 6:32 pm

Hi,

I have solved the problem. It was a simple portnumber which I had to add in motion.conf

Greetings Tristan

idahospud
Posts: 4
Joined: Fri Apr 18, 2014 8:51 pm

Re: RPi Cam Web Interface

Sun Apr 20, 2014 4:01 am

I find the same thing on the RPI Cam Control web page if I have not signed in to the RPI as a user. When I sign in, I can take the photos and video and the buttons do not stay greyed.
robm99 wrote:I just tried a completely fresh setup. New SD card, latest Raspbian, all updates, got the latest package from GitHub for this, and it looks great. Trouble is, while it works perfectly for video, when I try to capture and image it seems to hang!

Buttons grey out and says "recording image", but where that normally flashes up for a split second then reverts to all functions available, it doesn't seem to do anything, it just stays in that state...

Any ideas?

Thanks.

B0SC0
Posts: 22
Joined: Tue Jun 04, 2013 3:46 pm

Re: RPi Cam Web Interface

Sun Apr 20, 2014 5:03 pm

About to try my 3rd attempt to get the pi-pan buttons working with a fresh install of raspbian wheezy 2014-01-07

But before I do, I have a few questions.

Okay, start here:

Follow directions from here: http://www.raspberrypi.org/forums/viewt ... 43&t=63276

Follow directions from here:

http://elinux.org/RPi-Cam-Web-Interface

and here:

http://www.raspberrypi.org/forums/viewt ... 07#p524707

and here:

http://www.openelectrons.com/Pi-Pan%E2%80%8E

1 . What does the file directories of pi-pan, RPi_Cam_Web_Interface, /var/www, /etc/, look like? ; owner,group,size,permissions.

2. What PROGRAM and USER is used to create "pipan_pipe.py" , edit "/etc/rc.local" , "pipan.php" , "pipan.js", "index.html" ? ; sudo nano,nano, IDLE3,gedit,etc.

tommelom
Posts: 3
Joined: Sat Jan 11, 2014 7:12 pm

Re: RPi Cam Web Interface

Sun Apr 20, 2014 10:11 pm

This Cam Web is great. I have tried other solutions for two days and got none to work. This took me 5 min.

But how do I save the images/videos to another computer? I have maped a drawer on my windows machine to /mnt/camshare/. How do I now proceed?

And isn't it possible to change the shutterspeed? On default (0) it looks like it's equivalent to 1/20 or so. I tried to change it to as little as 1, but that only gave me a black picture with a hint of detail.

0lly
Posts: 77
Joined: Sun Mar 02, 2014 5:07 pm

Re: RPi Cam Web Interface

Mon Apr 21, 2014 12:37 am

tommelom wrote: But how do I save the images/videos to another computer? I have maped a drawer on my windows machine to /mnt/camshare/. How do I now proceed?
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
try

Code: Select all

sudo mount --bind /mnt/camshare /var/www/media

tommelom
Posts: 3
Joined: Sat Jan 11, 2014 7:12 pm

Re: RPi Cam Web Interface

Mon Apr 21, 2014 6:16 am

That worked great. And I guess I can write it somewhere so it happens with booting? I'm a total noob at linux. Give me Amiga-shell anyday =D

elohab
Posts: 6
Joined: Sat Apr 12, 2014 1:18 am

Re: RPi Cam Web Interface

Mon Apr 21, 2014 10:12 am

Hi,
I am using web interface with my Pi Noir camera but i could not manage to record videos at the same exposure with the web
preview. Startup exposure setting is night and looking good at the web preview but when i start recording exposure setting
changes and records at that exposure. The video looks very dark in that way. Also exposure mode does not come back to
night after i stop the recording. So interface users, can you please share with me the results whether exposure mode changes
when you strart recording? Thanks.

chiruru
Posts: 17
Joined: Sun Apr 20, 2014 8:56 am

Re: RPi Cam Web Interface

Mon Apr 21, 2014 2:27 pm

Can I use another USB CAM on Pi?
One Pi, Two Cam(or Three Cam), is very usfull for me.
On Web page, there are two image screen.
So two image is record at the same time.

How to improve this project?

Please reply me about this... Thanks a lot.

chiruru
Posts: 17
Joined: Sun Apr 20, 2014 8:56 am

Re: RPi Cam Web Interface

Mon Apr 21, 2014 4:26 pm

It's often freezed,,Not work.
That time, I can not connect SSH too.
I think that All of Pi is be freeze because Raspimjpeg has bugs.
It's serious problem.

Who did experience about this?
What can i do? Please help me...

chiruru
Posts: 17
Joined: Sun Apr 20, 2014 8:56 am

Re: RPi Cam Web Interface

Mon Apr 21, 2014 4:39 pm

And, Temperature of Pi is hot... CPU is be used full.
I didn't overclock.

I installed
http://www.raspberrypi.org/forums/viewtopic.php?t=61771
http://www.raspberrypi.org/forums/viewt ... 43&t=63276

and then,
./RPi_Cam_Web_Interface_Installer.sh install
./RPi_Cam_Web_Interface_Installer.sh start

And then,
I used FireFox or Chrome.

A few minutes passed, Pi is be freezed, All of Pi is be Stoped.
PCB Board is be HOT...So The Board is dead.

Please Command me.

jarrah31
Posts: 125
Joined: Wed Oct 10, 2012 10:16 am

Re: RPi Cam Web Interface

Mon Apr 21, 2014 7:21 pm

B0SC0 wrote: 1 . What does the file directories of pi-pan, RPi_Cam_Web_Interface, /var/www, /etc/, look like? ; owner,group,size,permissions.

2. What PROGRAM and USER is used to create "pipan_pipe.py" , edit "/etc/rc.local" , "pipan.php" , "pipan.js", "index.html" ? ; sudo nano,nano, IDLE3,gedit,etc.
Hello,

Hope I can help with the following.
1)

Code: Select all

[email protected] ~ $ ls -al
total 56
drwxr-xr-x 6 pi   pi   4096 Apr 17 19:34 .
drwxr-xr-x 3 root root 4096 Jun 19  2013 ..
-rw------- 1 pi   pi   5130 Apr 20 15:50 .bash_history
-rw-r--r-- 1 pi   pi    220 Jun 19  2013 .bash_logout
-rw-r--r-- 1 pi   pi   3243 Jun 19  2013 .bashrc
drwxr-xr-x 2 pi   pi   4096 Jun 19  2013 Desktop
-rw-r--r-- 1 pi   pi   5781 Feb  3  2013 ocr_pi.png
drwxr-xr-x 2 pi   pi   4096 Apr 17 19:36 pipan
-rw-r--r-- 1 pi   pi    675 Jun 19  2013 .profile
drwxrwxr-x 2 pi   pi   4096 Mar 10  2013 python_games
drwxr-xr-x 6 pi   pi   4096 Apr 17 19:21 RPi_Cam_Web_Interface
-rw------- 1 pi   pi   1791 Apr 17 19:34 .viminfo
[email protected] ~ $ cd pipan
[email protected] ~/pipan $ ls -al
total 204
drwxr-xr-x 2 pi   pi    4096 Apr 17 19:36 .
drwxr-xr-x 6 pi   pi    4096 Apr 17 19:34 ..
-rw-r--r-- 1 pi   pi    1272 Feb  3 20:38 check-pan.py
-rw-r--r-- 1 pi   pi    1259 Feb  3 20:38 check-pilight.py
-rw-r--r-- 1 pi   pi    1264 Feb  3 20:38 check-tilt.py
-rw-r--r-- 1 pi   pi    1868 Feb  3 20:38 demo-pi-pan.py
-rw-r--r-- 1 pi   pi    2147 Feb  3 20:38 demo-with-pilight.py
-rwxr-xr-x 1 pi   pi    1103 Feb  3 20:38 install-pilight.bash
-rwxr-xr-x 1 pi   pi    1389 Feb  3 20:38 install-pi-pan.bash
-rw-r--r-- 1 pi   pi    1131 Feb  3 20:38 neutral_servo.py
-rw-r--r-- 1 pi   pi    4803 Feb  3 22:02 OpenElectrons_i2c.py
-rw-r--r-- 1 root root  4811 Apr 16 21:15 OpenElectrons_i2c.pyc
-rw-r--r-- 1 pi   pi    3169 Feb  3 20:38 pano_with_light.py
-rwxr-xr-x 1 pi   pi     675 Feb  3 20:38 pan-test.py
-rw-r--r-- 1 pi   pi    2916 Feb  3 20:38 pictures-color.py
-rwxr-xr-x 1 pi   pi    3216 Feb  3 22:01 pilight.py
-rw-r--r-- 1 root root  1972 Apr 16 21:15 pilight.pyc
-rw-r--r-- 1 pi   pi     487 Apr 16 21:08 pipan_pipe.py
-rw-r--r-- 1 pi   pi    2140 Apr 17 19:16 pipan.py
-rw-r--r-- 1 root root  1833 Apr 17 19:36 pipan.pyc
-rw-r--r-- 1 pi   pi    1833 Apr 17 19:23 pipan.pyc.old
-rw-r--r-- 1 pi   pi   33508 Feb  3 22:42 pi-pan.tar.gz
-rw-r--r-- 1 pi   pi    3622 Feb  3 20:38 README
-rw-r--r-- 1 pi   pi    1031 Feb  3 20:38 revision.py
-rwxr-xr-x 1 pi   pi     879 Feb  3 20:38 servoblaster.sh
-rwxr-xr-x 1 pi   pi   48723 Feb  3 20:38 servod
-rw-r--r-- 1 pi   pi    3075 Feb  3 20:38 take_pano.py
-rwxr-xr-x 1 pi   pi    1077 Feb  3 20:38 uninstall-pilight.bash
-rwxr-xr-x 1 pi   pi    1061 Feb  3 20:38 uninstall-pi-pan.bash
-rw-r--r-- 1 pi   pi    2275 Feb  3 20:38 video-with-pilight.py
[email protected] ~/pipan $ cd ../RPi_Cam_Web_Interface/
[email protected] ~/RPi_Cam_Web_Interface $ ls -al
total 36
drwxr-xr-x 6 pi pi 4096 Apr 17 19:21 .
drwxr-xr-x 6 pi pi 4096 Apr 17 19:34 ..
drwxr-xr-x 2 pi pi 4096 Apr 16 21:00 bin
drwxr-xr-x 7 pi pi 4096 Apr 16 21:00 etc
drwxr-xr-x 8 pi pi 4096 Apr 16 21:00 .git
-rw-r--r-- 1 pi pi  319 Apr 16 21:00 README.md
-rwxr-xr-x 1 pi pi 4209 Apr 16 21:00 RPi_Cam_Web_Interface_Installer.sh
drwxr-xr-x 2 pi pi 4096 Apr 16 21:00 www
[email protected] ~/RPi_Cam_Web_Interface $ cd /var/www
[email protected] /var/www $ ls -al
total 88
drwxr-xr-x  3 www-data www-data  4096 Apr 17 19:51 .
drwxr-xr-x 12 root     root      4096 Apr 16 21:02 ..
-rw-r--r--  1 www-data www-data    87 Apr 16 21:05 cam_pic.php
-rw-r--r--  1 www-data www-data    88 Apr 16 21:05 cmd_pipe.php
-rw-r--r--  1 www-data www-data  1284 Apr 16 21:05 Copyright.txt
-rw-r--r--  1 www-data www-data   249 Apr 16 21:05 download.php
prw-rw-rw-  1 root     root         0 Apr 18 20:20 FIFO
prw-rw-rw-  1 root     root         0 Apr 19 10:51 FIFO_pipan
-rw-r--r--  1 root     root       123 Apr 17 14:41 .htaccess
-rw-r--r--  1 www-data www-data  9855 Apr 16 21:14 index.html
drwxr-xr-x  2 www-data www-data  4096 Apr 16 21:05 media
-rw-r--r--  1 www-data www-data  1383 Apr 17 19:13 pipan.js
-rw-r--r--  1 www-data www-data   854 Apr 17 19:51 pipan.php
-rw-r--r--  1 www-data www-data  1569 Apr 16 21:05 preview.php
-rw-r--r--  1 www-data www-data 14709 Apr 16 21:05 script.js
-rw-r--r--  1 www-data www-data   412 Apr 16 21:05 script_min.js
-rw-r--r--  1 www-data www-data   229 Apr 16 21:05 status_mjpeg.php
-rw-r--r--  1 www-data www-data     5 Apr 20 15:50 status_mjpeg.txt
-rw-r--r--  1 www-data www-data     4 Apr 16 21:05 Version.txt
[email protected] /var/www $ cd /etc
[email protected] /etc $ ls -al
total 888
drwxr-xr-x 100 root root    4096 Apr 17 14:43 .
drwxr-xr-x  23 root root    4096 Apr 16 19:53 ..
-rw-r--r--   1 root root    2981 Jun 19  2013 adduser.conf
drwxr-xr-x   2 root root    4096 Apr 16 21:05 alternatives
drwxr-xr-x   7 root root    4096 Apr 17 14:39 apache2
drwxr-xr-x   7 root root    4096 Jun 19  2013 apm
drwxr-xr-x   2 root root    4096 Jun 19  2013 apparmor.d
drwxr-xr-x   6 root root    4096 Jun 19  2013 apt
drwxr-xr-x   3 root root    4096 Jun 19  2013 avahi
-rw-r--r--   1 root root    9085 Mar 22 03:27 avserver.conf
-rw-r--r--   1 root root    1895 Jan 11  2013 bash.bashrc
-rw-r--r--   1 root root      45 Jun 17  2012 bash_completion
drwxr-xr-x   2 root root    4096 Apr 16 21:04 bash_completion.d
-rw-r--r--   1 root root     356 Feb 21  2013 bindresvport.blacklist
drwxr-xr-x   3 root root    4096 Jun 19  2013 ca-certificates
-rw-r--r--   1 root root    7134 Jun 19  2013 ca-certificates.conf
drwxr-xr-x   2 root root    4096 Jun 19  2013 calendar
drwxr-xr-x   5 root root    4096 Jun 19  2013 ConsoleKit
drwxr-xr-x   2 root root    4096 Jun 19  2013 console-setup
drwxr-xr-x   2 root root    4096 Apr 16 21:03 cron.d
drwxr-xr-x   2 root root    4096 Apr 16 21:04 cron.daily
drwxr-xr-x   2 root root    4096 Jun 19  2013 cron.hourly
drwxr-xr-x   2 root root    4096 Jun 19  2013 cron.monthly
-rw-r--r--   1 root root     722 Jul  9  2012 crontab
drwxr-xr-x   2 root root    4096 Jun 19  2013 cron.weekly
drwxr-xr-x   4 root root    4096 Jun 19  2013 dbus-1
-rw-r--r--   1 root root    2969 Dec 26  2012 debconf.conf
-rw-r--r--   1 root root       4 Jan 28 10:50 debian_version
drwxr-xr-x   3 root root    4096 Apr 16 21:04 default
-rw-r--r--   1 root root     604 May 15  2012 deluser.conf
drwxr-xr-x   4 root root    4096 Jun 19  2013 dhcp
drwxr-xr-x   3 root root    4096 Jun 19  2013 dhcp3
drwxr-xr-x   2 root root    4096 Jun 19  2013 dictionaries-common
drwxr-xr-x   2 root root    4096 Jun 19  2013 dillo
-rw-r--r--   1 root root      18 Jun 19  2013 dphys-swapfile
drwxr-xr-x   4 root root    4096 Apr 16 19:49 dpkg
drwxr-xr-x   3 root root    4096 Jun 19  2013 emacs
-rw-r--r--   1 root root       0 Jun 19  2013 environment
-rw-r--r--   1 root root      20 Apr 20 15:50 fake-hwclock.data
-rw-r--r--   1 root root   24501 May 19  2012 fb.modes
drwxr-xr-x   4 root root    4096 Jun 19  2013 fonts
-rw-r--r--   1 root root     321 Jun 19  2013 fstab
-rw-r--r--   1 root root     203 Jun 19  2013 .fstab
drwxr-xr-x   2 root root    4096 Dec 22  2012 fstab.d
-rw-r-----   1 root fuse     216 Jan  2  2013 fuse.conf
-rw-r--r--   1 root root    2940 Feb 22  2013 gai.conf
drwxr-xr-x   5 root root    4096 Jun 19  2013 gconf
drwxr-xr-x   2 root root    4096 Jun 19  2013 gdb
drwxr-xr-x   4 root root    4096 Jun 19  2013 ghostscript
drwxr-xr-x   2 root root    4096 Jun 19  2013 groff
-rw-r--r--   1 root root     688 Apr 17 14:02 group
-rw-------   1 root root     677 Apr 16 21:05 group-
-rw-r-----   1 root shadow   569 Apr 17 14:02 gshadow
-rw-------   1 root root     561 Apr 16 21:05 gshadow-
-rw-r--r--   1 root root     834 Jun 18  2012 gssapi_mech.conf
drwxr-xr-x   2 root root    4096 Jun 19  2013 gtk-2.0
drwxr-xr-x   2 root root    4096 Apr 16 19:47 gtk-3.0
-rw-r--r--   1 root root       9 Aug  7  2006 host.conf
-rw-r--r--   1 root root      12 Jun 19  2013 hostname
-rw-r--r--   1 root root     178 Jun 19  2013 hosts
-rw-r--r--   1 root root     580 Jun 19  2013 hosts.allow
-rw-r--r--   1 root root     880 Jun 19  2013 hosts.deny
-rw-r--r--   1 root root     214 May 11  2013 idmapd.conf
drwxr-xr-x   3 root root    4096 Jun 19  2013 ifplugd
drwxr-xr-x   2 root root    4096 Apr 16 19:31 init
drwxr-xr-x   2 root root    4096 Apr 16 21:04 init.d
drwxr-xr-x   5 root root    4096 Apr 16 19:48 initramfs-tools
-rw-r--r--   1 root root    2113 Apr 16 19:07 inittab
-rw-r--r--   1 root root    1838 Jun 19  2013 inputrc
drwxr-xr-x   3 root root    4096 Dec  4  2012 insserv
-rw-r--r--   1 root root     859 Dec  4  2012 insserv.conf
drwxr-xr-x   2 root root    4096 Jun 19  2013 insserv.conf.d
drwxr-xr-x   2 root root    4096 Jun 19  2013 iproute2
-rw-r--r--   1 root root      28 Mar 20 18:31 issue
-rw-r--r--   1 root root      21 Mar 20 18:31 issue.net
-rw-r--r--   1 root root      18 Mar 20 18:31 issue.net.orig
-rw-r--r--   1 root root      25 Mar 20 18:31 issue.orig
drwxr-xr-x   2 root root    4096 Jun 19  2013 kbd
drwxr-xr-x   4 root root    4096 Sep  4  2011 kernel
drwxr-xr-x   2 root root    4096 Jun 19  2013 ldap
-rw-r--r--   1 root root   43539 Apr 16 21:04 ld.so.cache
-rw-r--r--   1 root root      34 Jun 19  2013 ld.so.conf
drwxr-xr-x   2 root root    4096 Apr 16 19:49 ld.so.conf.d
-rw-r--r--   1 root root      44 Jun 19  2013 ld.so.preload
-rw-r--r--   1 root root     191 May  1  2012 libaudit.conf
drwxr-xr-x   2 root root    4096 Jun 19  2013 libnl-3
drwxr-xr-x   2 root root    4096 May 21  2012 libpaper.d
drwxr-xr-x   2 root root    4096 Jun 19  2013 lightdm
-rw-r--r--   1 root root    2570 Feb 23  2013 locale.alias
-rw-r--r--   1 root root    8569 Apr 16 19:47 locale.gen
-rw-r--r--   1 root root     118 Apr 16 19:41 localtime
drwxr-xr-x   3 root root    4096 Jun 19  2013 logcheck
-rw-r--r--   1 root root   10224 Jun 19  2013 login.defs
-rw-r--r--   1 root root     599 Feb 19  2009 logrotate.conf
drwxr-xr-x   2 root root    4096 Apr 16 21:04 logrotate.d
-rw-r--r--   1 root root     111 Jul 21  2012 magic
-rw-r--r--   1 root root     111 Jul 21  2012 magic.mime
-rw-r--r--   1 root root    4517 Apr 16 19:46 mailcap
-rw-r--r--   1 root root     449 Feb 12  2012 mailcap.order
-rw-r--r--   1 root root    5173 Jun 29  2012 manpath.config
drwxr-xr-x   2 root root    4096 Jun 19  2013 menu
drwxr-xr-x   2 root root    4096 Jun 19  2013 menu-methods
-rw-r--r--   1 root root   24269 Feb 12  2012 mime.types
-rw-r--r--   1 root root     956 Mar 30  2013 mke2fs.conf
drwxr-xr-x   2 root root    4096 Apr 17 14:03 modprobe.d
-rw-r--r--   1 root root     280 Apr 17 14:03 modules
-rw-r--r--   1 root root     286 Jun 15  2013 motd
-rw-r--r--   1 root root      46 Jun 19  2013 motd.tail
drwxr-xr-x   2 root root    4096 Apr 16 21:04 motion
lrwxrwxrwx   1 root root      12 Jun 19  2013 mtab -> /proc/mounts
drwxr-xr-x   3 root root    4096 Apr 16 21:03 mysql
-rw-r--r--   1 root root    8453 Mar 30  2012 nanorc
-rw-r--r--   1 root root     767 May  2  2011 netconfig
drwxr-xr-x   6 root root    4096 Apr 17 14:44 network
-rw-r--r--   1 root root      60 Jun 19  2013 networks
-rw-r--r--   1 root root     475 Aug 28  2006 nsswitch.conf
-rw-r--r--   1 root root    1988 May 18  2012 ntp.conf
drwxr-xr-x   2 root root    4096 Jun 19  2013 opt
-rw-r--r--   1 root root     294 Mar 20 18:31 os-release
-rw-r--r--   1 root root     248 Mar 20 18:31 os-release.orig
-rw-r--r--   1 root root     552 Apr 29  2012 pam.conf
drwxr-xr-x   2 root root    4096 Apr 16 19:48 pam.d
-rw-r--r--   1 root root       3 Jun 19  2013 papersize
-rw-r--r--   1 root root    1142 Apr 16 21:04 passwd
-rw-------   1 root root    1142 Apr 16 21:04 passwd-
drwxr-xr-x   4 root root    4096 Jun 19  2013 perl
drwxr-xr-x   6 root root    4096 Apr 16 21:03 php5
drwxr-xr-x   2 root root    4096 Jun 19  2013 plymouth
drwxr-xr-x   3 root root    4096 Jun 19  2013 pm
drwxr-xr-x   5 root root    4096 Jun 19  2013 polkit-1
-rw-r--r--   1 root root     883 Jun 19  2013 profile
drwxr-xr-x   2 root root    4096 Apr 16 19:07 profile.d
-rw-r--r--   1 root root    2933 May 13  2012 protocols
drwxr-xr-x   2 root root    4096 Jun 19  2013 pulse
-rw-------   1 root root       0 Jun 19  2013 .pwd.lock
drwxr-xr-x   2 root root    4096 Jun 19  2013 python
drwxr-xr-x   2 root root    4096 Apr 16 19:48 python2.7
drwxr-xr-x   2 root root    4096 Jun 19  2013 python3
drwxr-xr-x   2 root root    4096 Jun 19  2013 python3.2
-rw-r--r--   1 root root    1390 Apr 17 14:43 raspimjpeg
drwxr-xr-x   2 root root    4096 Apr 16 21:04 rc0.d
drwxr-xr-x   2 root root    4096 Apr 16 21:04 rc1.d
drwxr-xr-x   2 root root    4096 Apr 16 21:04 rc2.d
drwxr-xr-x   2 root root    4096 Apr 16 21:04 rc3.d
drwxr-xr-x   2 root root    4096 Apr 16 21:04 rc4.d
drwxr-xr-x   2 root root    4096 Apr 16 21:04 rc5.d
drwxr-xr-x   2 root root    4096 Apr 16 21:04 rc6.d
-rwxr-xr-x   1 root root     890 Apr 16 21:10 rc.local
drwxr-xr-x   2 root root    4096 Apr 16 19:40 rcS.d
drwxr-xr-x   2 root root    4096 Jun 19  2013 request-key.d
-rw-r--r--   1 root root      50 Apr 17 14:10 resolv.conf
-rwxr-xr-x   1 root root     268 Jan 13  2013 rmt
-rw-r--r--   1 root root     887 May 13  2012 rpc
-rw-r--r--   1 root root     137 Jun 19  2013 rpi-issue
-rw-r--r--   1 root root    2632 Mar  5  2013 rsyslog.conf
drwxr-xr-x   2 root root    4096 Mar 20  2013 rsyslog.d
drwxr-xr-x   2 root root    4096 Apr 17 14:10 samba
-rw-r--r--   1 root root    3964 Jun  5  2012 securetty
drwxr-xr-x   4 root root    4096 Jun 19  2013 security
drwxr-xr-x   2 root root    4096 Jun 19  2013 selinux
-rw-r--r--   1 root root   19398 May 13  2012 services
drwxr-xr-x   2 root root    4096 Jun 19  2013 sgml
-rw-r-----   1 root shadow   820 Apr 16 21:04 shadow
-rw-------   1 root root     820 Apr 16 21:04 shadow-
-rw-r--r--   1 root root      73 Jun 19  2013 shells
drwxr-xr-x   2 root root    4096 Jun 19  2013 skel
drwxr-xr-x   2 root root    4096 Apr 16 19:47 ssh
drwxr-xr-x   4 root root    4096 Apr 16 19:48 ssl
-rw-r--r--   1 root root     771 Jun  9  2012 staff-group-for-usr-local
-r--r-----   1 root root     696 Jun 19  2013 sudoers
drwxr-xr-x   2 root root    4096 Jun 19  2013 sudoers.d
-rw-r--r--   1 root root    2137 Jun 19  2013 sysctl.conf
drwxr-xr-x   2 root root    4096 Jun 19  2013 sysctl.d
drwxr-xr-x   3 root root    4096 Jun 19  2013 systemd
drwxr-xr-x   2 root root    4096 Jun 19  2013 terminfo
-rw-r--r--   1 root root       8 Apr 16 19:41 timezone
drwxr-xr-x   3 root root    4096 Jun 19  2013 triggerhappy
-rw-r--r--   1 root root     645 Mar 24  2012 ts.conf
-rw-r--r--   1 root root    1260 May 30  2008 ucf.conf
drwxr-xr-x   4 root root    4096 Jun 19  2013 udev
drwxr-xr-x   3 root root    4096 Jun 19  2013 ufw
drwxr-xr-x   2 root root    4096 Jun 19  2013 vim
drwxr-xr-x   2 root root    4096 Jun 19  2013 weston
-rw-r--r--   1 root root    4496 May  2  2012 wgetrc
drwxr-xr-x   2 root root    4096 Jun 19  2013 wpa_supplicant
drwxr-xr-x   9 root root    4096 Jun 19  2013 X11
drwxr-xr-x  10 root root    4096 Jun 19  2013 xdg
drwxr-xr-x   2 root root    4096 Jun 19  2013 xml
drwxr-xr-x   2 root root    4096 Jun 19  2013 xpdf
[email protected] /etc $
2) To create pipan-pipe.py I used program 'vim' without sudo so that it was created as user pi. For all the other files I used 'sudo vim <filename>' to create as root, and then changed ownership to www-data.

My rc.local looks like this:

Code: Select all

[email protected] /var/www $ cat /etc/rc.local
#!/bin/bash -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
  printf "My IP address is %s\n" "$_IP"
fi

shopt -s nullglob

video=-1
for f in /var/www/media/video_*.mp4; do
  video=`echo $f | cut -d '_' -f2 | cut -d '.' -f1`
done
video=`echo $video | sed 's/^0*//'`
video=$((video+1))

image=-1
for f in /var/www/media/image_*.jpg; do
  image=`echo $f | cut -d '_' -f2 | cut -d '.' -f1`
done
image=`echo $image | sed 's/^0*//'`
image=$((image+1))

shopt -u nullglob

mkdir /dev/shm/mjpeg
raspimjpeg -ic $image -vc $video > /dev/null &
python /home/pi/pipan/pipan_pipe.py &
exit 0
If you manually run 'python /home/pi/pipan/pipan_pipe.py &' do you get any errors? I originally did as it was complaining about pilight modules - I hadn't installed the PiLight code because I thought it wasn't needed seeing as I didn't buy it. However, installing them did the trick for me.

elohab
Posts: 6
Joined: Sat Apr 12, 2014 1:18 am

Re: RPi Cam Web Interface

Tue Apr 22, 2014 7:47 am

Hi,
I am using web interface with my Pi Noir camera but i could not manage to record videos at the same exposure with the web
preview. Startup exposure setting is night and looking good at the web preview but when i start recording exposure setting
changes and records at that exposure. The video looks very dark in that way. Also exposure mode does not come back to
night after i stop the recording. So interface users, can you please share with me the results whether exposure mode changes
when you strart recording? Thanks.

jarrah31
Posts: 125
Joined: Wed Oct 10, 2012 10:16 am

Re: RPi Cam Web Interface

Tue Apr 22, 2014 11:08 am

elohab wrote:Hi,
I am using web interface with my Pi Noir camera but i could not manage to record videos at the same exposure with the web
preview. Startup exposure setting is night and looking good at the web preview but when i start recording exposure setting
changes and records at that exposure. The video looks very dark in that way. Also exposure mode does not come back to
night after i stop the recording. So interface users, can you please share with me the results whether exposure mode changes
when you strart recording? Thanks.
I'll try this tonight and let you know.

shayanalibhatti
Posts: 2
Joined: Tue Dec 31, 2013 11:02 am

Re: RPi Cam Web Interface

Tue Apr 22, 2014 2:12 pm

You are a genius. It was just what i was looking for. No lag no delay. God bless you.

B0SC0
Posts: 22
Joined: Tue Jun 04, 2013 3:46 pm

Re: RPi Cam Web Interface

Tue Apr 22, 2014 4:38 pm

jarrah31, thank you for posting the directories.

This allowed me to compare yours to mine.

I don't see anything different except some of the files mentioned are couple of bytes off.

The pipan buttons are there and I can click on them, but nothing happens.

I am at a total lost. :( :( :(

jarrah31
Posts: 125
Joined: Wed Oct 10, 2012 10:16 am

Re: RPi Cam Web Interface

Wed Apr 23, 2014 1:12 pm

B0SC0 wrote:jarrah31, thank you for posting the directories.

This allowed me to compare yours to mine.

I don't see anything different except some of the files mentioned are couple of bytes off.

The pipan buttons are there and I can click on them, but nothing happens.

I am at a total lost. :( :( :(
Sorry to repeat, but just to double check, did you install pi-light:?

Code: Select all

sudo ./install-pilight.bash
and does the following run without errors?

Code: Select all

python /home/pi/pipan/pipan_pipe.py &

B0SC0
Posts: 22
Joined: Tue Jun 04, 2013 3:46 pm

Re: RPi Cam Web Interface

Wed Apr 23, 2014 9:15 pm

jarrah31,

Yes, I installed and it ran with no errors.


:?

B0SC0
Posts: 22
Joined: Tue Jun 04, 2013 3:46 pm

Re: RPi Cam Web Interface

Thu Apr 24, 2014 1:59 pm

jarrah31,

Code: Select all

python /home/pi/pipan/pipan_pipe.py &
No errors after running this.

Just to clarify, I still have no control of the pipan from the webpage.

jepicken
Posts: 3
Joined: Fri Mar 21, 2014 10:41 pm

Re: RPi Cam Web Interface

Thu Apr 24, 2014 10:55 pm

jbeale wrote:As a followup to my previous post, the problem may not be the gradual change in intensity. I changed the motion.conf file to save the first still image triggering motion detection, and it is invariably a partial or incomplete image (see attached). There was a similar problem of grey blocks at the lower-right corner triggering motion, very early on with this program, but it had been fixed (I thought) by feeding the MJPEG to motion via the webserver ( http://localhost/ ) instead of direct through the filesystem. Also, this time the grey area (missing JPEG data) is nearly the entire image.

UPDATE: motion detection is working correctly this morning since the sun came up. All the problems happened in low-light before sunrise, so this may be somehow linked to shutter speed.
I have this problem too - lots of false motion detections in the early morning due to missing JPEG data, usually with about half the frame missing. Has anyone managed to find a solution/workaround?

Return to “Camera board”