pedrodk
Posts: 1
Joined: Tue Apr 26, 2016 7:02 am

Re: PHP/Bootstrap Web Interface for the Pi Camera

Tue Apr 26, 2016 7:09 am

Hi - having trouble getting RTSP to work with v16. beta - setup the camera for RTSP:
The IP Camera is currently running in RTSP server mode and can be accessed by an external RTSP player (VLC, mplayer, Synology Surveillance station, etc ...) via below mrl.
rtsp://192.168.3.152:8554

reboot pi

Login with SSH:
[email protected]:~ $ sudo netstat -tulpn | grep :8080
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 112/uv4l
[email protected]:~ $ sudo netstat -tulpn | grep :8554

Still listning on port 8080 ?? - btw what is the default username / password for MJPEG setup ??

Orvis
Posts: 6
Joined: Tue Apr 19, 2016 8:32 am

Re: PHP/Bootstrap Web Interface for the Pi Camera

Tue Apr 26, 2016 10:14 am

ronnyvdbr wrote:the design was only made read-only to allow for a longer endurance of the SD card. It's a know problem that SD cards used in Raspberry Pi's wear out after a certain amount of time if you don't do this.
I'm OK with that, but let's say that people should use installation.sh at the last moment, after everything is properly configured on their PI.
Well, if I recall correctly, the default partition size on the foundations Raspbian Lite image wasn't large enough to hold al the software I needed for the design, above commands just resizes your partitions to a larger size.
You can instead use raspi-config to expand your SD card to max. size, that will work too.
I used NOOBS, so all the SD card is used at start by default. This explains the error message on the second command.
# now remap some folders to temp space
sudo rm -rf /var/lib/dhcp/ /var/spool /var/lock
sudo rm /etc/resolv.conf
sudo ln -s /tmp /var/lib/dhcp
sudo ln -s /tmp /var/spool
sudo ln -s /tmp /var/lock
sudo ln -s /tmp/resolv.conf /etc/resolv.conf
sudo rm -rf /var/lib/php5/sessions
sudo ln -s /tmp/phpsessions /var/lib/php5/sessions
I skip this hardening block.
Some commands are very weird...
Well, this is done to make the system read only, it's just remapping some folders with writeable content to a memory resident location.
What surprised me is that you delete files and directories without making first a copy in /tmp. So when you then make the links, I guess they are empty directories. This broke my DHCP configuration for the wireless interface, that's why I skipped.
# Datei /etc/fstab
proc /proc proc defaults 0 0
/dev/mmcblk0p1 /boot vfat ro,defaults 0 2
/dev/mmcblk0p2 / ext4 ro,defaults,noatime 0 1
tmpfs /var/log tmpfs nodev,nosuid 0 0
tmpfs /var/tmp tmpfs nodev,nosuid 0 0
tmpfs /tmp tmpfs nodev,nosuid 0 0
I guess this block is a mistake ?
Not really, on boot the fstab file will tell the system what to mount where and how.
Since we remapped some folders, we need to make sure these are remounted and accessible somehow, this time not on the sd card but in temp (memory) space.
I mean the first executable command here is 'proc', then '/dev/mmcblkOp1' etc.. which are not commands. This generates some errors if I use your script as is.
If I go further through the installation.sh (126 -> 132) and I skip the cleaning block (135->143), and then I reboot, then I can not reach the webadmin anymore (connexion fails, as if there is no website available). I must :
sudo nginx
and the website is available again, but with the same issue (no camera view and no stream)
If you start nginx that way, it will only be running under your user session I believe.
In Raspbian Jessie, systemd is used as the service manager, and is responsible for stopping and starting stuff at boot or shutdown time.
If your nginx doesn't start during boot, it might not be enabled.
You can verify that by executing:
sudo systemctl status nginx.service
you should see a line:
Loaded: loaded (/lib/systemd/system/nginx.service; enabled)
The enabled at the end means it will try to start at boot.
Indeed, the system tries to load it at boot, but it fails. Here is the result :
sudo systemctl status -l nginx.service
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled)
Active: failed (Result: exit-code) since ven. 2016-04-22 06:17:04 CEST; 4 days ago
Process: 508 ExecStartPre=/bin/mkdir /var/log/nginx (code=exited, status=1/FAILURE)

avril 22 06:17:04 raspberrypi mkdir[508]: /bin/mkdir: impossible de créer le répertoire « /var/log/nginx »: Le fichier existe
avril 22 06:17:04 raspberrypi systemd[1]: nginx.service: control process exited, code=exited status=1
avril 22 06:17:04 raspberrypi systemd[1]: Failed to start A high performance web server and a reverse proxy server.
avril 22 06:17:04 raspberrypi systemd[1]: Unit nginx.service entered failed state.

Orvis
Posts: 6
Joined: Tue Apr 19, 2016 8:32 am

Re: PHP/Bootstrap Web Interface for the Pi Camera

Tue Apr 26, 2016 10:20 am

ronnyvdbr wrote:Hello Orvis, lets continue our discussion via the board instead of PM where it could be of some use to other members of the forum as well.

Can u send me the output of the config files:

cat /etc/uv4l/uv4l-raspicam.conf
cat /etc/uv4l/uv4l-server.conf
cat /home/pi/RaspberryIPCamera/www/RaspberryIPCameraSettings.ini

ps -elf | grep uv4l

netstat -tulpn

This info would greatly help me diagnose your situation.
cat /etc/uv4l/uv4l-raspicam.conf
width=640
height=480
encoding=mjpeg
brightness=50
contrast=0
saturation=0
red-gain=400
blue-gain=400
sharpness=0
rotation=0
shutter-speed=0
iso=0
quality=85
framerate=43
hflip=false
vflip=false
text-overlay=false
object-detection=false
stills-denoise=false
video-denoise=false
vstab=false
awb=auto
exposure=auto
metering=average
drc=off
driver=raspicam
video_nr=0
auto-video_nr=1
verbosity=6
syslog-host=localhost
syslog-port=514
frame-timeout=5000
frame-buffers=4
drop-bad-frames=1
relaxed-ownership=1
raw=
profile=high
bitrate=17000000
intra-refresh-mode=dummy
nopreview=1
ev=0

cat /etc/uv4l/uv4l-server.conf

chuncked-transfer-encoding=no
enable-control-panel=no


cat /home/pi/RaspberryIPCamera/www/RaspberryIPCameraSettings.ini
SoftwareVersion = "v1.6 Beta"
IPAssignment = "DHCP"
ntpclient = "enabled"
IPAddress = ""
NetworkMask = ""
Gateway = ""
Dns1 = ""
Dns2 = ""
WifiClient = "disabled"
WifiSsid = ""
WifiSecurityMode = "None"


ps -elf | grep uv4l
1 S root 210 1 0 -40 - - 26326 futex_ 11:58 ? 00:00:00 /usr/bin/uv4l -k --sched-fifo --mem-lock --config-file=/etc/uv4l/uv4l-raspicam.conf --driver raspicam --driver-config-file=/etc/uv4l/uv4l-raspicam.conf --server-option=--server-config-file=/etc/uv4l/uv4l-server.conf
0 S root 1943 1337 0 80 0 - 1574 pipe_w 12:17 pts/0 00:00:00 grep uv4l



netstat -tulpn
Connexions Internet actives (seulement serveurs)
Proto Recv-Q Send-Q Adresse locale Adresse distante Etat PID/Program name
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1695/nginx: master
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 210/uv4l
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 517/sshd
tcp6 0 0 :::80 :::* LISTEN 1695/nginx: master
tcp6 0 0 :::22 :::* LISTEN 517/sshd
udp 0 0 0.0.0.0:68 0.0.0.0:* 431/dhcpcd
udp 0 0 192.168.2.35:123 0.0.0.0:* 561/ntpd
udp 0 0 127.0.0.1:123 0.0.0.0:* 561/ntpd
udp 0 0 0.0.0.0:123 0.0.0.0:* 561/ntpd
udp 0 0 0.0.0.0:53429 0.0.0.0:* 415/avahi-daemon: r
udp 0 0 0.0.0.0:5353 0.0.0.0:* 415/avahi-daemon: r
udp6 0 0 :::546 :::* 431/dhcpcd
udp6 0 0 2a01:cb00:8b5:8400::123 :::* 561/ntpd
udp6 0 0 fe80::ba27:ebff:fe2:123 :::* 561/ntpd
udp6 0 0 fdce:e78f:84bf::d00:123 :::* 561/ntpd
udp6 0 0 fdce:e78f:84bf:0:c8:123 :::* 561/ntpd
udp6 0 0 ::1:123 :::* 561/ntpd
udp6 0 0 :::123 :::* 561/ntpd
udp6 0 0 :::47782 :::* 415/avahi-daemon: r
udp6 0 0 :::5353 :::* 415/avahi-daemon: r



My PIcam as no ethernet link. I'm using the built-in wifi, which I configured in the system before using your installation.sh.
Then, if I try to configure the Wifi configuration in the systems settings of the web gui ... well it breaks everything and the PI is not accessible anymore (I have to connect through ethernet to access the PI and desactivate Wifi configuration in the web gui)

Orvis
Posts: 6
Joined: Tue Apr 19, 2016 8:32 am

Re: PHP/Bootstrap Web Interface for the Pi Camera

Tue Apr 26, 2016 12:43 pm

I've just seen you've posted a big update to your install script.
I'm doing a fresh installation.

rearden
Posts: 3
Joined: Tue Feb 24, 2015 8:04 pm

Re: PHP/Bootstrap Web Interface for the Pi Camera

Fri Apr 29, 2016 2:58 pm

I am also trying to get this to work on a noobs install. I need my Pi to do more than one thing, so I want to use a general jessie install. I want a stable 24/7 h264 stream. Thank you for creating this.

I picked my way through the installation.sh script.

I ran checked the nginx state:

Code: Select all

[email protected]:~ $ sudo systemctl status nginx.service
● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled)
   Active: failed (Result: exit-code) since Fri 2016-04-29 10:06:56 EDT; 6min ago
  Process: 557 ExecStartPre=/bin/mkdir /var/log/nginx (code=exited, status=1/FAILURE)

Apr 29 10:06:56 raspberrypi4 mkdir[557]: /bin/mkdir: cannot create directory ‘/var/log/nginx’: File exists
Apr 29 10:06:56 raspberrypi4 systemd[1]: nginx.service: control process exited, code=exited status=1
Apr 29 10:06:56 raspberrypi4 systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Apr 29 10:06:56 raspberrypi4 systemd[1]: Unit nginx.service entered failed state.
So I commented out the ExecStartPre=/bin/mkdir /var/log/nginx line in the config file to undo the script change. and it now shows:

Code: Select all

[email protected]:~ $ sudo systemctl status nginx.service
● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled)
   Active: active (running) since Fri 2016-04-29 10:27:59 EDT; 7min ago
  Process: 703 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=                                                       exited, status=0/SUCCESS)
  Process: 564 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process o                                                       n; (code=exited, status=0/SUCCESS)
 Main PID: 705 (nginx)
   CGroup: /system.slice/nginx.service
           ├─705 nginx: master process /usr/sbin/nginx -g daemon on; master_p...
           ├─706 nginx: worker process
           ├─707 nginx: worker process
           ├─708 nginx: worker process
           └─709 nginx: worker process

I checked the uv4l service and it seems good:

Code: Select all

[email protected]:~ $ sudo systemctl status uv4l_raspicam.service
● uv4l_raspicam.service - LSB: Userspace Camera Driver
   Loaded: loaded (/etc/init.d/uv4l_raspicam)
   Active: active (running) since Fri 2016-04-29 10:27:53 EDT; 7min ago
  Process: 121 ExecStart=/etc/init.d/uv4l_raspicam start (code=exited, status=0/                                                       SUCCESS)
   CGroup: /system.slice/uv4l_raspicam.service
           └─242 /usr/bin/uv4l -k --sched-fifo --mem-lock --config-file=/etc/...

Apr 29 10:27:52 raspberrypi4 uv4l_raspicam[121]: <notice> [core] Trying driv....
Apr 29 10:27:53 raspberrypi4 uv4l_raspicam[121]: <notice> [driver] Dual Rasp...6
Apr 29 10:27:53 raspberrypi4 uv4l_raspicam[121]: <warning> [driver] Old firm...7
Apr 29 10:27:53 raspberrypi4 uv4l_raspicam[121]: <notice> [driver] Selected ...e
Apr 29 10:27:53 raspberrypi4 uv4l_raspicam[121]: <notice> [driver] Framerate...s
Apr 29 10:27:53 raspberrypi4 uv4l_raspicam[121]: <notice> [driver] ROI: 0, 0...1
Apr 29 10:27:53 raspberrypi4 uv4l_raspicam[121]: <info> [driver] RAW data wi...s
Apr 29 10:27:53 raspberrypi4 uv4l_raspicam[121]: <notice> [core] Device dete...!
Apr 29 10:27:53 raspberrypi4 uv4l_raspicam[121]: <notice> [core] Registering...0
Apr 29 10:27:53 raspberrypi4 systemd[1]: Started LSB: Userspace Camera Driver.
Hint: Some lines were ellipsized, use -l to show in full.

I attempted to goto the webpage and was unable to get admin/raspberry to work as the login nor my current pi logon, so I changed md5_password=no in the uv4l-server.conf until I can sort that one out. A webpage then came up.

I tried to use vlc to open the stream and received:
VLC is unable to open the MRL 'rtsp://192.168.1.179:8554/'. Check the log for details.

I also tried to connect it to blue iris and was unsuccessful.

netstat shows:

Code: Select all

[email protected]:~ $ sudo netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      705/nginx -g daemon
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      242/uv4l
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      559/sshd
tcp        0      0 127.0.0.1:3350          0.0.0.0:*               LISTEN      692/xrdp-sesman
tcp        0      0 0.0.0.0:3389            0.0.0.0:*               LISTEN      690/xrdp
tcp6       0      0 :::80                   :::*                    LISTEN      705/nginx -g daemon
tcp6       0      0 :::22                   :::*                    LISTEN      559/sshd
.......
Any recommendations on next steps?

rearden

Malstrom
Posts: 3
Joined: Tue May 03, 2016 10:07 am

Re: PHP/Bootstrap Web Interface for the Pi Camera

Tue May 03, 2016 10:19 am

Thank you for camera solution, Ronny! It works pretty smooth on a RPi v.2 with Surveillance Station 7.2 in h.264 streaming mode. In MJPEG mode the authorisation is rejected by Surveillance Station, but since I prefer the h.264 stream for lower network traffic, I truly enjoy your out of the box solution! :D

Greetz,
Malstrom

ERICXIE
Posts: 1
Joined: Tue May 10, 2016 6:29 pm

Re: PHP/Bootstrap Web Interface for the Pi Camera

Tue May 10, 2016 6:42 pm

Hi

Thanks for this wonderful project. I need a simple DIY IP camerra, so I bought a Pi3 and the new pi camera. I have some problems to get the system running though.

I tried two different approaches.
1. By loading your v1.6 image directly onto my 8GB Pi SD card, everything worked just fine, but the camera was not working, even raspistill won't work. No image on the web interface .
2. I downloaded the official Raspbian Jessie lite image and loaded on to the sd card. Then I SSH into the pi with another PC, and download your installation.sh file. After executed it with SSH, it reboot after the firmware updating step. Then I deleted the all the sections before "reboot", and executed the other half of the installation.sh file. After the reboot, it seems like nginx can not start and give an error. A popup window will come ask for user and password (none of the ones provided worked) when I try to access the web interface. The camera is working all the time with the raspistill command.

I am fairly new to this, can you help me to figure out what went wrong, thanks and appreciate your help.

Eric

Orvis
Posts: 6
Joined: Tue Apr 19, 2016 8:32 am

Re: PHP/Bootstrap Web Interface for the Pi Camera

Wed May 11, 2016 8:41 am

Just to say that I'm still stucked at the same stage.
ronnyvdbr, are you still here ?

clubeddie
Posts: 6
Joined: Fri Apr 03, 2015 6:29 pm

Re: PHP/Bootstrap Web Interface for the Pi Camera

Mon May 30, 2016 8:34 am

First of all great work! It is up and running within minutes, also get it easy to work with synology surveillance station.
I am facing only one problem, i cannot get it to work on wifi.

I am filling in al the desired settings within the admin portal but my wifi adapter is not getting active. I think it is not detected in the installation. My linux knowledge is not that good so i don't know where to check.
The wifi adapter has working succesfull with this raspberry with kodi but maybe i must install a driver.

Can you guide me to how to check and set this up correctly?

Edit: i did some basic checking in the installation. Wifi adapter is recognized and the wifi settings in the wpa_supplicant.conf file are correct. I tried a wpa_cli scan to check if the network is detected. But i get an error permission denied. I also get this when i want to check the wpa_supplicant file, also with sudo?

Any ideas. I must this getting to work with wifi because i had no wired connection at the place of were i wanted the camera.

leeshr
Posts: 9
Joined: Sun Jun 05, 2016 6:24 am

Re: PHP/Bootstrap Web Interface for the Pi Camera

Sun Jun 05, 2016 7:57 am

Hi
I appear to be having a similar problem connecting using either of my two wifi dongles (Buffalo and DLInk). I used the ready-made image file and got the ethernet connection working in ~ 2 minutes or less. Cannot fathom the wifi problem though.

I have googled extensively and tried most of the posted 'solutions', but to no avail. The dongle appears to be detected and working properly (lsusb, iwlist wlan0 scan, etc all return positive looking results). One site recommended connecting manually using the wpa_supplicant tool, as in:

Code: Select all

wpa_supplicant -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf & dhcpd wlan0
and this returned:
Failed to open config file '/etc/wpa_supplicant/wpa_supplicant.conf', error: Permission denied
I'm not sure where to go from here... Any help would be appreciated

leeshr
Posts: 9
Joined: Sun Jun 05, 2016 6:24 am

Re: PHP/Bootstrap Web Interface for the Pi Camera

Wed Jun 08, 2016 1:30 pm

-SOLVED-
In my noobness I neglected to check the 'other' settings in my wpa_supplicant.conf file. The group/pairwise cipher settings were tripping me up. My router was expecting TKIP but these were set to CCMD. I removed all extraneous settings from the file and now behold, I can connect.

clubeddie
Posts: 6
Joined: Fri Apr 03, 2015 6:29 pm

Re: PHP/Bootstrap Web Interface for the Pi Camera

Fri Jun 10, 2016 6:33 am

leeshr wrote:-SOLVED-
In my noobness I neglected to check the 'other' settings in my wpa_supplicant.conf file. The group/pairwise cipher settings were tripping me up. My router was expecting TKIP but these were set to CCMD. I removed all extraneous settings from the file and now behold, I can connect.
Nice te hear, how did you edit the file, because i also get Permission denied, i think i have maybe the same issue!
Hope to hear from yoy

leeshr
Posts: 9
Joined: Sun Jun 05, 2016 6:24 am

Re: PHP/Bootstrap Web Interface for the Pi Camera

Fri Jun 10, 2016 2:57 pm

clubeddie wrote:
leeshr wrote:-SOLVED-
In my noobness I neglected to check the 'other' settings in my wpa_supplicant.conf file. The group/pairwise cipher settings were tripping me up. My router was expecting TKIP but these were set to CCMD. I removed all extraneous settings from the file and now behold, I can connect.
Nice te hear, how did you edit the file, because i also get Permission denied, i think i have maybe the same issue!
Hope to hear from yoy
I think the "permission denied" error is a red herring... Anyway in my wpa_supplicant.conf file I took out almost everything and figured the wifi would auto configure itself.

This is what mine looks like now

Code: Select all

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
    ssid="yourNetworkSSID"
    psk="yourNetworkPassword"
}

leeshr
Posts: 9
Joined: Sun Jun 05, 2016 6:24 am

Re: PHP/Bootstrap Web Interface for the Pi Camera

Fri Jun 10, 2016 3:17 pm

Anyhow, I have 'fixed' my wifi woes, but now I am having problems of a much wierder kind...

Everything works perfectly on my Pi2. But when I use the same SD card (or same IMG) in my Pi3 it does not stream at all.
The camera on the Pi3 works with a normal installation of Jessie (Raspistill / Raspivid both work as expected). Even using the same camera module doesn't 'fix' the problem...

One clue is that when I run netstat -tulpn on both, only the Pi2 returns these lines (other lines are identical)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:8554 0.0.0.0:* LISTEN 447/h264_v4l2_rtsps

udp 4992 0 0.0.0.0:6970 0.0.0.0:* 447/h264_v4l2_rtsps
udp 0 0 0.0.0.0:6971 0.0.0.0:* 447/h264_v4l2_rtsps
So it has something to do with rtsp server, but I'm not sure what.
AFAIK, it's not a power issue - I'm running the Pi3 on 2.1amps - which should be adequate?

Is there something else I might be missing here? Any help would be appreciated...

clubeddie
Posts: 6
Joined: Fri Apr 03, 2015 6:29 pm

Re: PHP/Bootstrap Web Interface for the Pi Camera

Fri Jun 10, 2016 6:46 pm

leeshr wrote:
clubeddie wrote:
leeshr wrote:-SOLVED-
In my noobness I neglected to check the 'other' settings in my wpa_supplicant.conf file. The group/pairwise cipher settings were tripping me up. My router was expecting TKIP but these were set to CCMD. I removed all extraneous settings from the file and now behold, I can connect.
Nice te hear, how did you edit the file, because i also get Permission denied, i think i have maybe the same issue!
Hope to hear from yoy
I think the "permission denied" error is a red herring... Anyway in my wpa_supplicant.conf file I took out almost everything and figured the wifi would auto configure itself.

This is what mine looks like now

Code: Select all

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
    ssid="yourNetworkSSID"
    psk="yourNetworkPassword"
}
I cannot edit the file in anyway, while opening as root with sudo i get
Read 11 lines (Warning: No write permission)

I cannot copy, create or do anything within the directory. Tried to chmod the file, won;t work.
Any idea how to solve this. I really want to use it.

To bad the developer is not react anyway

leeshr
Posts: 9
Joined: Sun Jun 05, 2016 6:24 am

Re: PHP/Bootstrap Web Interface for the Pi Camera

Sat Jun 11, 2016 5:19 am

Ah yes, forgot to mention that part... sorry

The filesystem has been made read-only to prevent the SD card from wearing out. To edit the files you'll first need to enable writing using

Code: Select all

sudo mount -o remount,rw /
This will temporarily allow writing until the next boot.

Hope this helps

clubeddie
Posts: 6
Joined: Fri Apr 03, 2015 6:29 pm

Re: PHP/Bootstrap Web Interface for the Pi Camera

Mon Jun 13, 2016 8:37 am

leeshr wrote:Ah yes, forgot to mention that part... sorry

The filesystem has been made read-only to prevent the SD card from wearing out. To edit the files you'll first need to enable writing using

Code: Select all

sudo mount -o remount,rw /
This will temporarily allow writing until the next boot.

Hope this helps
Yes, this has helped. After editing the wpa file wifi is working.
I have it worked for a couple of hours. After that i want it to attach it to synology surveillance station so i changed the camera settings. After that the software is becoming unstable. While browsing it is hanging a lot and need a reboot after it is not reachable. Camera image is not shown anymore (also after changing the camera settings back to default). This problem is occuring wired and wireless.

lavajgh
Posts: 3
Joined: Tue Jun 14, 2016 3:28 am

Re: PHP/Bootstrap Web Interface for the Pi Camera

Tue Jun 14, 2016 3:35 am

I am having the same issue on the Pi3 as leeshr. I had the PI 2 integrated with SYN survelliance station no issues. Now when going to the PI 3, it won't accept the stream from the camera. I had the card running in a Pi2 b+ but when i go to put it into my pi 3 it doesn't work.

I can get whatever is needed for debugging purposes.

clubeddie
Posts: 6
Joined: Fri Apr 03, 2015 6:29 pm

Re: PHP/Bootstrap Web Interface for the Pi Camera

Tue Jun 14, 2016 6:31 am

lavajgh wrote:I am having the same issue on the Pi3 as leeshr. I had the PI 2 integrated with SYN survelliance station no issues. Now when going to the PI 3, it won't accept the stream from the camera. I had the card running in a Pi2 b+ but when i go to put it into my pi 3 it doesn't work.
I can get whatever is needed for debugging purposes.
Funy, i had the Pi2 with the issues, Pi3 not available over here.

leeshr
Posts: 9
Joined: Sun Jun 05, 2016 6:24 am

Re: PHP/Bootstrap Web Interface for the Pi Camera

Thu Jun 16, 2016 12:06 am

lavajgh wrote:I am having the same issue on the Pi3 as leeshr. I had the PI 2 integrated with SYN survelliance station no issues. Now when going to the PI 3, it won't accept the stream from the camera. I had the card running in a Pi2 b+ but when i go to put it into my pi 3 it doesn't work.

I can get whatever is needed for debugging purposes.
Yes, that was my exact and frustrating problem. The only solution I found was to go through the "installation.sh" line by line on a fresh image of Jessie lite. The first thing I did was enable the camera module - and I checked that it was still enabled regularly throughout the 'build'.
Try this to see if your camera is actually enabled...

Code: Select all

vcgencmd get_camera

leeshr
Posts: 9
Joined: Sun Jun 05, 2016 6:24 am

Re: PHP/Bootstrap Web Interface for the Pi Camera

Thu Jun 16, 2016 12:12 am

clubeddie wrote:
leeshr wrote:Ah yes, forgot to mention that part... sorry

The filesystem has been made read-only to prevent the SD card from wearing out. To edit the files you'll first need to enable writing using

Code: Select all

sudo mount -o remount,rw /
This will temporarily allow writing until the next boot.

Hope this helps
Yes, this has helped. After editing the wpa file wifi is working.
I have it worked for a couple of hours. After that i want it to attach it to synology surveillance station so i changed the camera settings. After that the software is becoming unstable. While browsing it is hanging a lot and need a reboot after it is not reachable. Camera image is not shown anymore (also after changing the camera settings back to default). This problem is occuring wired and wireless.
I actually found that my router was causing some of the issues so I changed the settings in my router to match the wpa_supplicant.conf file (the web interface on the pi may have 'reverted' to your old settings - that is it has probably rewritten your wpa_suplicant.conf file to what it was originally - this happened to me...).

You should probably set your route to use WPA2 and CCMP/AES, as these seem to be the 'default' settings required by the pi...

lavajgh
Posts: 3
Joined: Tue Jun 14, 2016 3:28 am

Re: PHP/Bootstrap Web Interface for the Pi Camera

Wed Jun 29, 2016 1:40 am

I am trying to now follow the installation.sh instructions and am getting an error I think is related to the GIT clone for the RTSP server.

After line 108 I get:


CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
ALSA_LIBRARY (ADVANCED)
linked by target "v4l2rtspserver" in directory /home/pi/live/v4l2rtspserver

Dman737
Posts: 1
Joined: Fri Aug 26, 2016 8:35 am

Re: PHP/Bootstrap Web Interface for the Pi Camera

Fri Aug 26, 2016 8:42 am

Does anyone know how to add audio the pi and get it as part of the h.264 stream?
Hope this is the right place to ask this, thanks.

Jochemh
Posts: 1
Joined: Wed Sep 07, 2016 10:50 am

Re: PHP/Bootstrap Web Interface for the Pi Camera

Wed Sep 07, 2016 11:06 am

I've installed the pre-built V1.6beta software on my Pi 3 plus camera module V2.
The module boots fine: I can login, change/save all the settings but unfortunately I do not see an image from the camera on the status page. (Tested with Safari and Chrome browser).

Also, when I try to open the MJPEG stream page, the module asks for a username/password but the default admin/raspberry that I use to login on the module is not accepted.

Will this software configuration work with a PI3 and V2 camera module?
Any suggestions how I can troubleshoot this problem?

Jochem

lavajgh
Posts: 3
Joined: Tue Jun 14, 2016 3:28 am

Re: PHP/Bootstrap Web Interface for the Pi Camera

Wed Sep 14, 2016 2:45 am

There is something in the build that keeps it from displaying the camera on the PI 3. The only way I have gotten it to work on the 3 so far is to build it from scratch and modify things according to the installation script that was provided. I have a feeling 1.6 on the pi 3 doesn't enable the camera, but raspi-config and a bunch of other stuff are stripped out and the image is read only, so not much can be edited.

Return to “Camera board”