drew.sanderson
Posts: 5
Joined: Fri Nov 13, 2015 10:54 pm
Location: US - Northeast

Re: RPi Cam Web Interface

Wed Nov 18, 2015 2:54 pm

You need to set up the FIFO pipe separately. You can then send any of the commands described in the wiki to fully control the camera including recording videos, images, time lapse etc.
How do I setup the FIFO pipe? Is there documentation for this?

Thank you for the reply!

Drew

btidey
Posts: 1636
Joined: Sun Feb 17, 2013 6:51 pm

Re: RPi Cam Web Interface

Wed Nov 18, 2015 3:34 pm

drew.sanderson wrote:
You need to set up the FIFO pipe separately. You can then send any of the commands described in the wiki to fully control the camera including recording videos, images, time lapse etc.
How do I setup the FIFO pipe? Is there documentation for this?

Thank you for the reply!

Drew
There's no specific documentation for this as it is handled but the RPi_Cam installer.

raspimjpeg reads the path to the pipe from the /etc/raspimjeg file
control_file /var/www/FIFO

The installer does a matching Pipe creation

if [ ! -e /var/www/FIFO ]; then
sudo mknod /var/www/FIFO p
fi
sudo chmod 666 /var/www/FIFO

drew.sanderson
Posts: 5
Joined: Fri Nov 13, 2015 10:54 pm
Location: US - Northeast

Re: RPi Cam Web Interface

Wed Nov 18, 2015 4:20 pm

I tried a simple command into the pipe and the command line just hung.

Code: Select all

echo 'an test' > /var/www/html/picam/FIFO1
I feel like I must be missing a simple concept here.

Drew

User avatar
DougieLawson
Posts: 39531
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: RPi Cam Web Interface

Wed Nov 18, 2015 4:53 pm

drew.sanderson wrote:How do I setup the FIFO pipe? Is there documentation for this?
mkfifo
Online docs are man mkfifo
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All fake doctors are on my foes list.

Machine Head
Posts: 21
Joined: Mon Oct 13, 2014 7:12 am

Re: RPi Cam Web Interface

Thu Nov 19, 2015 10:24 am

Hi,

I have a Synology Nas and I want to use the synology surveillance station with my raspberry pi cameras.
Rpi Cam Web Interface is installed on each raspberry pi cam. Is there a compatibility with the synology Surveillance Station?
Thank you for your help

btidey
Posts: 1636
Joined: Sun Feb 17, 2013 6:51 pm

Re: RPi Cam Web Interface

Thu Nov 19, 2015 5:47 pm

drew.sanderson wrote:I tried a simple command into the pipe and the command line just hung.

Code: Select all

echo 'an test' > /var/www/html/picam/FIFO1
I feel like I must be missing a simple concept here.

Drew
The RPi_Cam_Web_Interface uses 2 FIFOs (FIFO and FIFO1). FIFO connects to raspimjeg and is used to send all the commands to control captures, settings etc. FIFO1 is used by the scheduler to accept motion detect start / stop triggers either from internal or external motion detection. It then decides what to do with the trigger and sends the configured commands into FIFO. Scheduler FIFO1 only understands 3 things (1= Motion Start, 0=Motion Stop, 9=Reload scheduler settings).

If you have sent an into FIFO 1 it will do nothing. You need to send it into FIFO

drew.sanderson
Posts: 5
Joined: Fri Nov 13, 2015 10:54 pm
Location: US - Northeast

Re: RPi Cam Web Interface

Thu Nov 19, 2015 8:08 pm

I am still seeing the command line hang up. It doesn't even respond to a control z. I have to completely close out my connection and start a new one.

Code: Select all

pi@raspberrypi /var/www/html/picam $ echo 'br 100' > FIFO
I thought well maybe there is an issue with the FIFO permissions, so I just went an dropped 777 on the FIFO

Code: Select all

pi@raspberrypi /var/www/html/picam $ ls -l
total 1096
lrwxrwxrwx 1 root     root         22 Nov 11 17:08 cam.jpg -> /run/shm/mjpeg/cam.jpg
-rw-r--r-- 1 www-data www-data   1200 Nov 11 17:08 cam_pic_new.php
-rw-r--r-- 1 www-data www-data    238 Nov 11 17:08 cam_pic.php
-rw-r--r-- 1 www-data www-data    446 Nov 11 17:08 cmd_func.php
-rw-r--r-- 1 www-data www-data    177 Nov 11 17:08 cmd_pipe.php
-rwxr-xr-x 1 www-data www-data   7581 Nov 11 17:08 config.php
-rw-r--r-- 1 www-data www-data     59 Nov 11 17:08 convertCmd.txt
-rw-r--r-- 1 www-data www-data   1284 Nov 11 17:08 Copyright.txt
drwxr-xr-x 2 www-data www-data   4096 Nov 11 17:08 css
-rw-r--r-- 1 www-data www-data   2397 Nov 11 17:08 delete.png
prwxrwxrwx 1 root     root          0 Nov 13 21:44 FIFO
prwxrwxrwx 1 root     root          0 Nov 11 17:08 FIFO1
drwxr-xr-x 2 www-data www-data   4096 Nov 11 17:08 fonts
-rw-r--r-- 1 www-data www-data   1078 Nov 11 17:08 image.png
-rw-r--r-- 1 www-data www-data  28538 Nov 11 17:08 index.php
drwxr-xr-x 2 www-data www-data   4096 Nov 11 17:08 js
-rw-r--r-- 1 www-data www-data  25066 Nov 11 17:08 loading.jpg
drwxr-xr-x 2 www-data www-data   4096 Nov 11 17:08 macros
drwxr-xr-x 2 www-data www-data   4096 Nov 11 17:08 media
-rw-r--r-- 1 www-data www-data   5966 Nov 11 17:08 motion.php
-rw-r--r-- 1 www-data www-data      1 Nov 11 17:08 pilight_off
-rw-r--r-- 1 www-data www-data      1 Nov 11 17:08 pipan_off
-rw-r--r-- 1 www-data www-data   2407 Nov 11 17:08 pipan.php
-rw-r--r-- 1 www-data www-data  16747 Nov 11 17:08 preview.php
lrwxrwxrwx 1 root     root         15 Nov 11 17:08 raspimjpeg -> /etc/raspimjpeg
-rwxr-xr-x 1 www-data www-data    289 Nov 11 17:08 raspizip.sh
-rwxrwxrwx 1 www-data www-data 840093 Nov 19 19:37 scheduleLog.txt
-rw-r--r-- 1 www-data www-data  34889 Nov 11 17:08 schedule.php
-rw-r--r-- 1 www-data www-data      0 Nov 11 17:08 servo_off
-rw-r--r-- 1 www-data www-data    258 Nov 11 17:08 status_mjpeg.php
-rw-r--r-- 1 www-data www-data      5 Nov 19 19:50 status_mjpeg.txt
-rw-r--r-- 1 www-data www-data   1417 Nov 11 17:08 timelapse.png
-rw-r--r-- 1 www-data www-data  27933 Nov 11 17:08 unavailable.jpg
-rw-r--r-- 1 www-data www-data  26210 Nov 11 17:08 updating.jpg
-rw-r--r-- 1 www-data www-data   1311 Nov 11 17:08 video.png
What should the behavior be?

btidey
Posts: 1636
Joined: Sun Feb 17, 2013 6:51 pm

Re: RPi Cam Web Interface

Fri Nov 20, 2015 9:03 am

drew.sanderson wrote:I am still seeing the command line hang up. It doesn't even respond to a control z. I have to completely close out my connection and start a new one.

What should the behavior be?
A command line sending something to a pipe will hang up if there is nothing listening at the other end. In this case it is the raspimjpeg process which is the listener and should start listening as soon as it is started on the pipe as configured in its /etc/config file. It should also log its start up activity to the log file as defined in the config ( default webfolder/scheduleLog.txt)

You should see something like

Code: Select all

{2015/11/18 22:20:38} RaspiMJPEG Version 5.2.11
{2015/11/18 22:20:39} recommended video buffers 1
{2015/11/18 22:20:39} h264 buffers set to recommended 1
{2015/11/18 22:20:39} Set up internal detect width=82 height=61
{2015/11/18 22:20:39} MJPEG streaming, ready to receive commands
{2015/11/18 22:20:39} send smd 9
raspimjpeg does actually normally try to send the '9' reset command to FIFO1 which the scheduler process listens on, so it is possible that if FIFO1 is not set up and being listened to then that might cause raspimjpeg a problem. If the motion_pipe config is set empty then it should disable any attempt by raspimjpeg to send anything to FIFO1

Also in terms of ownership and permissions normally in web usage raspimjpeg is run under www-data so the ownership of the FIFOs and write permissions reflect that. If you are starting up raspimjpeg under a different user then any files it writes to like media, logs, etc should have appropriate permissions.

flexiablefrog
Posts: 1
Joined: Fri Nov 20, 2015 10:11 am

Re: RPi Cam Web Interface

Fri Nov 20, 2015 10:24 am

Hi All,

Please could some one help me get the scheduler process to run after booting. I've tried a million things but no luck to date.

Thanks

Edit

Sorry guys, I forgot to mention that I'm on jessie... I have everything else working well but the scheduler.

ludespeedny
Posts: 103
Joined: Mon Oct 01, 2012 6:55 pm

Re: RPi Cam Web Interface

Fri Nov 20, 2015 4:02 pm

I am having some odd issues recently. I used to have my pi hooked up so I can use it as a baby monitor, all was working well till I moved 2 weeks ago. Now it is like the device is going to sleep and have to ping it a lot of times before it comes online and I can use the camera.
I have done a fresh install of wheezy and the RPi cam web interface, but the issue still persists. Any ideas?

btidey
Posts: 1636
Joined: Sun Feb 17, 2013 6:51 pm

Re: RPi Cam Web Interface

Sat Nov 21, 2015 12:03 pm

flexiablefrog wrote:Hi All,

Please could some one help me get the scheduler process to run after booting. I've tried a million things but no luck to date.

Thanks

Edit

Sorry guys, I forgot to mention that I'm on jessie... I have everything else working well but the scheduler.
First, always make sure you have the latest version. For example, there was an issue on Jessie where the scheduler would appear to be not running when it actually was (always showed the start button).

Second check the processes (ps -ef) There should be an item like php /var/www/rpi/schedule.php (folder might be different.

Third check /etc/rc.local There should be something like su -c 'php /var/www/rpi/schedule.php > /dev/null 2>&1 &' www-data

This is what starts up the scheduler on boot. You could also try issuing that command manually if scheduler not running and see if it objects to anything.

btidey
Posts: 1636
Joined: Sun Feb 17, 2013 6:51 pm

Re: RPi Cam Web Interface

Sat Nov 21, 2015 12:08 pm

ludespeedny wrote:I am having some odd issues recently. I used to have my pi hooked up so I can use it as a baby monitor, all was working well till I moved 2 weeks ago. Now it is like the device is going to sleep and have to ping it a lot of times before it comes online and I can use the camera.
I have done a fresh install of wheezy and the RPi cam web interface, but the issue still persists. Any ideas?
Is it connected by a wifi dongle? If you have moved and anything has changed in router set up then there can be issues with the wifi dongle going to sleep and taking a while to start up. There are some config changes one can do to the driver to prevent that. http://www.raspberrypi-spy.co.uk/2015/0 ... pberry-pi/

ludespeedny
Posts: 103
Joined: Mon Oct 01, 2012 6:55 pm

Re: RPi Cam Web Interface

Sat Nov 21, 2015 7:58 pm

I made the change on that link. And also reverted my router back to ddwrt from stock, and one of those changes did it. Not sure as I think prob the driver one though.
Now if I could only get the hostname to resolve, but at least I can always hit it by ip now.

bshure
Posts: 10
Joined: Fri Oct 30, 2015 3:40 am

Re: RPi Cam Web Interface

Wed Nov 25, 2015 5:39 am

Friends:

I'm really liking this software. One issue I had was checking up on pictures being taken on my rasPi from another computer.

I think I have a very cool solution: Single File PHP Gallery. I installed it in my media directory and it is great for looking at images as they are being taken. It is at http://sye.dk/sfpg/.

Instead of http://IP-number:port to access the RPi Cam Control software, I go to another tab and put in: http://IP-number:port/media/index.php .

Having thumbnails helps the previewing process. I turned them off a few days ago but turned them back up today.

Cheers,

Bert

Very cool.

btidey
Posts: 1636
Joined: Sun Feb 17, 2013 6:51 pm

Re: RPi Cam Web Interface

Wed Nov 25, 2015 10:15 am

Small change to installlation scripts and config. The control_path in /etc/raspimjpeg for the status_mjpeg.txt file is now moved to temp folder /dev/shm/mjpeg and a link is made to access it from the www folder. This avoids writing flash each time this file is updated.

Cubytus
Posts: 135
Joined: Thu Dec 05, 2013 6:13 pm

Re: RPi Cam Web Interface

Wed Nov 25, 2015 8:27 pm

A new issue here. I installed RPi Cam Web Interface a few days ago, finally happy to re-discover a good-looking interface for Motion.

But for some reasons, custom camera settings aren't saved (I want to reduce the space-hungry full HD, reduce framerate, and remove old files as SD card fills up)
Video doesn't record (button doesn't turn to "record video stop" when pressed)

And passing

Code: Select all

ps -Af
shows no motion process running. When attempting to access the Motion settings, the web interface shows:

Motion not running. Put in detection state.

Any way to know the reason why it doesn't seem to be fully running?

bshure
Posts: 10
Joined: Fri Oct 30, 2015 3:40 am

Re: RPi Cam Web Interface

Wed Nov 25, 2015 9:00 pm

Stop and then start in debug mode.

Cubytus
Posts: 135
Joined: Thu Dec 05, 2013 6:13 pm

Re: RPi Cam Web Interface

Wed Nov 25, 2015 9:14 pm

And where do I find the logs?

bshure
Posts: 10
Joined: Fri Oct 30, 2015 3:40 am

Re: RPi Cam Web Interface

Wed Nov 25, 2015 9:30 pm

I start the interface from /home/pi with:

RPi_Cam_Web_Interface/RPi_Cam_Web_Interface_Installer.sh

When I stop and then go to "configure" and then "debug" the debug messages show up in the terminal window that I was typing in.

I'm not sure where the logs are!

btidey
Posts: 1636
Joined: Sun Feb 17, 2013 6:51 pm

Re: RPi Cam Web Interface

Thu Nov 26, 2015 4:09 pm

Cubytus wrote:And where do I find the logs?
Logs are kept in a file called scheduleLog.txt in the web install folder. They are viewable from the Scheduler settings page.

btidey
Posts: 1636
Joined: Sun Feb 17, 2013 6:51 pm

Re: RPi Cam Web Interface

Thu Nov 26, 2015 4:10 pm

bshure wrote:I start the interface from /home/pi with:

RPi_Cam_Web_Interface/RPi_Cam_Web_Interface_Installer.sh

When I stop and then go to "configure" and then "debug" the debug messages show up in the terminal window that I was typing in.

I'm not sure where the logs are!
It is also worth trying th new install method as detailed on the wiki. This can be more 'Jessie' friendly.

deedesie
Posts: 5
Joined: Fri Nov 27, 2015 5:59 am

Re: RPi Cam Web Interface

Fri Nov 27, 2015 6:16 am

hi, i am new here and new to raspberry pi and RPi Cam Web Interface. I have installed and got working the RPi Cam Web Interface v6.0.16 and can record video, record images and time lapse images. If I select "motion detection start", although it appears it is working, after I set it to stop, there are no videos or images. What am I doing wrong?
Any help much appreciated. Apologies if this question has been already posted.

holmchris
Posts: 3
Joined: Fri Nov 27, 2015 7:38 pm

Re: RPi Cam Web Interface

Fri Nov 27, 2015 8:01 pm

Screen Shot 2015-11-27 at 12.00.25 PM.png
Screen Shot 2015-11-27 at 12.00.25 PM.png (34.26 KiB) Viewed 3280 times
New User, and I am having some difficulty with an initial setup.

I have tried using a headless (SSH) connection, and also directly on the RPi. Same problem, which is that when I use a web browser to access the RPi (192.168.1.33), the web page does not have an image from the camera (shows a broken image/link box), and the 4 blue buttons and the red button below where the image should be have no text and they just small squares.

I did confirm that the camera works and did the usual update and upgrade before I loaded RPI Cam Web. Also tried two different browsers (Safari and Chrome) same result.

I think I followed the installation instructions exactly.

I have a new Pi 2 B, and I installed Wheezy, not Jessie.

I could use some thoughts, because I am not certain where to start trouble-shooting.

Chris

bic
Posts: 11
Joined: Fri Nov 27, 2015 9:47 pm

Re: RPi Cam Web Interface

Fri Nov 27, 2015 9:49 pm

So with 6.0.17 does Raspian Jessie installer correctly work with Apache or Nginx?

bic
Posts: 11
Joined: Fri Nov 27, 2015 9:47 pm

Re: RPi Cam Web Interface

Sat Nov 28, 2015 3:58 am

holmchris wrote:
Screen Shot 2015-11-27 at 12.00.25 PM.png
New User, and I am having some difficulty with an initial setup.

I have tried using a headless (SSH) connection, and also directly on the RPi. Same problem, which is that when I use a web browser to access the RPi (192.168.1.33), the web page does not have an image from the camera (shows a broken image/link box), and the 4 blue buttons and the red button below where the image should be have no text and they just small squares.

I did confirm that the camera works and did the usual update and upgrade before I loaded RPI Cam Web. Also tried two different browsers (Safari and Chrome) same result.

I think I followed the installation instructions exactly.

I have a new Pi 2 B, and I installed Wheezy, not Jessie.

I could use some thoughts, because I am not certain where to start trouble-shooting.

Chris
Do you see anything if you goto http://192.168.1.33/cam_pic.php ?

Return to “Camera board”