Hi Ben, I haven't posted any instructions yet as you're the first person to ask.bengray97 wrote:
Quavoce,
Thank you for the good walk-through on how to set up a self-signed cert! Did you ever post a detailed account of setting an official authority cert for your domain as well as setting up the PHP Userform Login? If not I'd be very interested in one or if there is a good tutorial out there, let me know. I'd appreciate any direction. Thanks.
My green RPi light usually flashes too and is quite normal - it just indicates SD card activity.shinji2009 wrote:hi help please is there any way to know why one of my rpi3b+ with RPi Cam Web Interface is always flashing green led like once a sec even if motion detection is stopped?
thanks. well thats strange, i think. this is not how it always was, as i said i have two of them on the wall side by side and not so long ago both of them was not flashing in the dark so often. but now one of them do. and the software is the same. and cameras look in the same directionquavoce wrote:My green RPi light usually flashes too and is quite normal - it just indicates SD card activity.shinji2009 wrote:hi help please is there any way to know why one of my rpi3b+ with RPi Cam Web Interface is always flashing green led like once a sec even if motion detection is stopped?
The watchdog is looking for the preview stream jpg file to be regularly updated. If that stops for more than the watchdog interval then that triggers the watchdog process. The intention here is to use the preview stream to check that the camera interfacing is functioning normally. Stopping of the stream can happen outside of raspimjpeg control with no accompanying errors. Those are normally to do with powering or cabling. Other stops (more common) will log camera interface errors in scheduler log just prior to the watchdog kicking in.quavoce wrote:Hi Robert,
Now that some of my cameras are continuously recording, I've noticed that they occasionally have watchdog reset errors that stops video recording. I can start the video again automatically by entering "ca 1" in the "Period Start" field within "Edit Schedule Settings" which works well, but the watchdog reset leaves behind an unconverted .h264 video file. Is there a way to look for these unconverted files after a reset and convert them please?
Following on from this, is there any way to debug the watchdog resets? Do they generally occur outside of the raspimjpeg processes control?
Thanks.
Code: Select all
set -e;MP4Box -fps %i -add %s %s > /dev/null 2>&1;rm "%s";) &The SD card activity can be either something associated with the camera software or due to other processes running on the Pi.shinji2009 wrote:thanks. well thats strange, i think. this is not how it always was, as i said i have two of them on the wall side by side and not so long ago both of them was not flashing in the dark so often. but now one of them do. and the software is the same. and cameras look in the same directionquavoce wrote:My green RPi light usually flashes too and is quite normal - it just indicates SD card activity.shinji2009 wrote:hi help please is there any way to know why one of my rpi3b+ with RPi Cam Web Interface is always flashing green led like once a sec even if motion detection is stopped?
Thanks Robert, I would be very happy to use a macro to fix the unconverted .h264 files after a watchdog restart, using the mp4box command example as a base.btidey wrote: The watchdog is looking for the preview stream jpg file to be regularly updated. If that stops for more than the watchdog interval then that triggers the watchdog process. The intention here is to use the preview stream to check that the camera interfacing is functioning normally. Stopping of the stream can happen outside of raspimjpeg control with no accompanying errors. Those are normally to do with powering or cabling. Other stops (more common) will log camera interface errors in scheduler log just prior to the watchdog kicking in.
.h264 files are converted using MP4Box process using a cmd line (set in the raspimjpeg config file) likeThe set -e is for detecting errors, the & is to run in the background.Code: Select all
set -e;MP4Box -fps %i -add %s %s > /dev/null 2>&1;rm "%s";) &
The first %i parameter sets the framerate (e.g. 25), the second %s parameter is filled in with the input filename (the .h264 file), the second %s is filled in with the output filename (.mp4), the third %s is the input filename again which is used to remove the .h264 if the MP4Box works OK.
One could do an offline script to look for unaccompanied .h264 files and convert them using the same method.
I will have a look at running something like this at raspimjpeg start up but might be a few days before I can get round to that. To make it more general I might add the capability to just run a 'macro' at start up rather than hard wire this particular task in. This could then do the .h264 conversion as well as allow for other processes to be done if required.
Fantastic, thank you very much Robert! I've updated and will monitor how it performs tomorrow.btidey wrote:Latest version has added startstop.sh macro. THis is called during start with command line parameter 'start' and during close down with command line parameter 'stop'.
An example startstop.sh macro is included in the macros folder which does a check at start up for any left over .h264 files and converts them to .mp4 It needs to be given execute permissions before it will be active.
This version also has a new config item in /etc/raspimjpeg called stop_pause. This defines a delay (in microseconds) that will be used after a video stop is performed. This may be helpful in split operations.
Hi quavoce,quavoce wrote:Hi Ben, I haven't posted any instructions yet as you're the first person to ask.bengray97 wrote:
Quavoce,
Thank you for the good walk-through on how to set up a self-signed cert! Did you ever post a detailed account of setting an official authority cert for your domain as well as setting up the PHP Userform Login? If not I'd be very interested in one or if there is a good tutorial out there, let me know. I'd appreciate any direction. Thanks.I do have them fully written up on my local laptop to help me rebuild my setup, so it shouldn't take me long to make them publicly usable. I set up a blog to post such instructions but haven't really put much on there yet, so I'll have a go at adding these this week.
Here is a little sneak peak of what the end result will be:
• Secure reverse proxy running on a Raspberry Pi at home (using the latest NGINX webserver), so that you don't have to open multiple ports on your router for each camera
• Dynamic DNS URL for various web applications on other servers at home, e.g RPi Web Cam Interface
• Official HTTPS certification from letsencrypt.org for free
○ So that you don't have to login with your password being sent in the clear!
○ Required because self-signed certs don't work when trying to view recorded RPi Cam video on an iPhone/iPad
• Push notifications sent to your phone when events occur such as motion detection
• One Raspberry Pi for the proxy and separate Pis for multiple RPi Web Cam Interface cameras
Success!! I have finally managed to install certbot on my raspberry pi. I am more than happy to share the installation steps if someone is interested.harlock74 wrote:Hi quavoce,quavoce wrote:Hi Ben, I haven't posted any instructions yet as you're the first person to ask.bengray97 wrote:
Quavoce,
Thank you for the good walk-through on how to set up a self-signed cert! Did you ever post a detailed account of setting an official authority cert for your domain as well as setting up the PHP Userform Login? If not I'd be very interested in one or if there is a good tutorial out there, let me know. I'd appreciate any direction. Thanks.I do have them fully written up on my local laptop to help me rebuild my setup, so it shouldn't take me long to make them publicly usable. I set up a blog to post such instructions but haven't really put much on there yet, so I'll have a go at adding these this week.
Here is a little sneak peak of what the end result will be:
• Secure reverse proxy running on a Raspberry Pi at home (using the latest NGINX webserver), so that you don't have to open multiple ports on your router for each camera
• Dynamic DNS URL for various web applications on other servers at home, e.g RPi Web Cam Interface
• Official HTTPS certification from letsencrypt.org for free
○ So that you don't have to login with your password being sent in the clear!
○ Required because self-signed certs don't work when trying to view recorded RPi Cam video on an iPhone/iPad
• Push notifications sent to your phone when events occur such as motion detection
• One Raspberry Pi for the proxy and separate Pis for multiple RPi Web Cam Interface cameras
Many thanks for sharing your findings.
I would be very grateful if you could share any instructions to install letsencrypt in particular. I have always failed in the past to install certbot on my raspberry pi as I was getting an 'Illegal instruction' error message all the time.
Thanks a lot!
Hi Robert,btidey wrote:I have added a simple multi camera view into the install set. Details are in wiki under Additions.
The view is just a simple web page showing the preview of multiple cameras. There is no functionality.
You need to set up a multiview.json config file which just holds the urls for the cameras and refresh rates. An example is included.
The view is accessed via host/multiview.html
The files are set up for 4 cameras but this can be easily changed as detailed in the wiki.
Sorry for the delay, I was hoping to find time to include details on how to secure raspi-runner and include updated IFTTT Go button instructions.harlock74 wrote:
Success!! I have finally managed to install certbot on my raspberry pi. I am more than happy to share the installation steps if someone is interested.
I've tried updating from 6.3.6 and the ./update.sh still didn't update. I had to remove the folder and re-git clone again to get to 6.3.8btidey wrote:The error you are getting is in an install script command where it is getting the boardrev number in order to check whether it is a module that can handle 2 camera interfaces.Gary Littlemore wrote: I've just tried ./update.sh to get to 6.3.5 and it never updated again. I noticed when the update was running an error, see screen capture below.
To do this it gets the system cmdline and extracts the boardrev from that.
For some reason your cmdline doesn't appear to have a boardrev parameter and so the extraction returns an empty string and the comparison fails.
You can check your cmdline byI have improved the install script so that it doesn't throw this error even if boardrev is not presentCode: Select all
cat /proc/cmdline
Hi Robert,Gary Littlemore wrote: I've tried updating from 6.3.6 and the ./update.sh still didn't update. I had to remove the folder and re-git clone again to get to 6.3.8
Code: Select all
pi@raspicam:~/RPi_Cam_Web_Interface $ git rev-parse HEAD
cd937032eb8730ec8f00662c06366583ba8fc262
pi@raspicam:~/RPi_Cam_Web_Interface $
pi@raspicam:~/RPi_Cam_Web_Interface $ git ls-remote -h origin master |awk '{print $1}'
31e7d235c9f6b8a6427346bf7fd7a567d4c4a009
pi@raspicam:~/RPi_Cam_Web_Interface $
pi@raspicam:~/RPi_Cam_Web_Interface $ git fetch origin master
remote: Counting objects: 27, done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 27 (delta 11), reused 27 (delta 11), pack-reused 0
Unpacking objects: 100% (27/27), done.
From https://github.com/silvanmelchior/RPi_Cam_Web_Interface
* branch master -> FETCH_HEAD
cd93703..31e7d23 master -> origin/master
pi@raspicam:~/RPi_Cam_Web_Interface $
pi@raspicam:~/RPi_Cam_Web_Interface $
pi@raspicam:~/RPi_Cam_Web_Interface $ git rev-parse HEAD
cd937032eb8730ec8f00662c06366583ba8fc262
pi@raspicam:~/RPi_Cam_Web_Interface $Code: Select all
pi@raspicam:~/RPi_Cam_Web_Interface $ git pull
Updating cd93703..31e7d23
Fast-forward
README.md | 2 +-
bin/raspimjpeg | Bin 74132 -> 74212 bytes
etc/raspimjpeg/raspimjpeg.1 | 3 +++
www/config.php | 2 +-
www/macros/startstop.sh | 12 ++++++++++++
www/multiview.html | 30 ++++++++++++++++++++++++++++++
www/multiview.jsonD | 1 +
www/multiview.php | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
8 files changed, 102 insertions(+), 2 deletions(-)
create mode 100644 www/macros/startstop.sh
create mode 100644 www/multiview.html
create mode 100644 www/multiview.jsonD
create mode 100644 www/multiview.php
pi@raspicam:~/RPi_Cam_Web_Interface $
pi@raspicam:~/RPi_Cam_Web_Interface $ git rev-parse HEAD
31e7d235c9f6b8a6427346bf7fd7a567d4c4a009
pi@raspicam:~/RPi_Cam_Web_Interface $Just to put context around this link, in answer to my summary above, the following link provides the instructions promised. Hope it helps others build similar setups!quavoce wrote:Hi Ben, I haven't posted any instructions yet as you're the first person to ask.bengray97 wrote:
Quavoce,
Thank you for the good walk-through on how to set up a self-signed cert! Did you ever post a detailed account of setting an official authority cert for your domain as well as setting up the PHP Userform Login? If not I'd be very interested in one or if there is a good tutorial out there, let me know. I'd appreciate any direction. Thanks.I do have them fully written up on my local laptop to help me rebuild my setup, so it shouldn't take me long to make them publicly usable. I set up a blog to post such instructions but haven't really put much on there yet, so I'll have a go at adding these this week.
Here is a little sneak peak of what the end result will be:
• Secure reverse proxy running on a Raspberry Pi at home (using the latest NGINX webserver), so that you don't have to open multiple ports on your router for each camera
• Dynamic DNS URL for various web applications on other servers at home, e.g RPi Web Cam Interface
• Official HTTPS certification from letsencrypt.org for free
○ So that you don't have to login with your password being sent in the clear!
○ Required because self-signed certs don't work when trying to view recorded RPi Cam video on an iPhone/iPad
• Push notifications sent to your phone when events occur such as motion detection
• One Raspberry Pi for the proxy and separate Pis for multiple RPi Web Cam Interface cameras
Hi quavoce,quavoce wrote:Sorry for the delay, I was hoping to find time to include details on how to secure raspi-runner and include updated IFTTT Go button instructions.harlock74 wrote:
Success!! I have finally managed to install certbot on my raspberry pi. I am more than happy to share the installation steps if someone is interested.
I'm glad you've got it working though!
Here are my instructions in case they help others:
https://quavoce.wordpress.com/2017/01/1 ... o-buttons/
No I haven't used the certificate on two Pis (I don't think that would work?), I just have the proxypi as the gateway into my network, which in turn redirects external access to multiple different Pis depending on the URL.harlock74 wrote: Hi quavoce,
Many thanks for sharing these very detailed instructions. They are very helpful indeed!
Can you please let me know if you ever tried to install the same letsencrypt certificate on two different raspberry pi's within the same home network, basically same DNS server but different port?
Thanks a lot!
Hi,quavoce wrote:No I haven't used the certificate on two Pis (I don't think that would work?), I just have the proxypi as the gateway into my network, which in turn redirects external access to multiple different Pis depending on the URL.harlock74 wrote: Hi quavoce,
Many thanks for sharing these very detailed instructions. They are very helpful indeed!
Can you please let me know if you ever tried to install the same letsencrypt certificate on two different raspberry pi's within the same home network, basically same DNS server but different port?
Thanks a lot!
e.g.
https://myurl/mycam1 -> goes to CamPi1
https://myurl/mycam2 -> goes to CamPi2
https://myurl/mycam3 -> goes to CamPi3