I had to install an IP camera some weeks ago and among available features, it can perform movement detection : when a movement is detected, some photo (snapshot) and a video are created and saved to an FTP folder. Cool ! I though I could configure this feature and that's what I did. Everything worked fine but I had no way to take a look to the images/video that were taken on movement detection. The solution was to simply create this very basic web app.
- basic HTTP Authentication
- view images(jpg) and video(mkv) created by the cam on movement detection
- navigate by date folders
- add support to time zone
- manual delete selected image and video
- manual delete image and video per date
- SMS notification on movement detection - free.Fr only
- automatics purge files (dedicated service)
- validate configuration on startup
- manage more than one single home camera
No DB needed, no framework, Just PHP >= 5.2 and you're good to go !
Here is how the current webapp looks like.
Requirements :
- php >= 5.2
- composer
git clone https://github.com/raoul2000/cam-browser.git
cd cam-browser
composer install
NOTE : the composer package installed is dg/ftp-deployment which is only needed to deploy automatically the project on an FTP folder (see next chapter).
FTP deployment is managed by ftp deployment which is included in the composer dependencies.
To setup a stage deployment process :
- duplicate the environment configuration file :
cp deploy\environment.conf.example deploy\stage.conf
- update your
deploy\stage.conf
file - generate the deployment scripts with
php deploy\create.php stage
- start deployment with
deploy\stage