alexguzun / rascam_client

Client part of RasCam project, responsible for capturing the motion images from webcam and uploading them to the main server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RasCam-client

Client part of RasCam project.

Does all work of detecting the motion and uploading the image to the main server.

##Whats inside?

##How does it work? Nothing special actually. When Motion detects the movement, it saves a picture and executes a python script witch is going to schedule a Celery task for upload. On a slow device it might take a while for image to be uploaded, as the Motion process takes all the resources.

Also Celery periodically (30 sec) checks the state of the camera, that can be changed on the server. If the camera is deactivated on the server, then the motion detection will be paused. Activate the camera, and motion detection will resume.

##Installation Once you have your Raspberry Pi up and running with latest Raspbian release, ssh into your device and execute:

mkdir /var/www/
cd /var/www/
git clone https://github.com/SillentTroll/rascam_client.git
mv rascam_client app
cd app
./install.sh

It might take some time to install. When finished, open the browser and go to your Raspberry Pi IP address. You should see a screen like this:

It means the installation went well and now your are required to configure your device. This step must be done only after configuring the server side. The configuration parameters are:

  • The server URL is the url of your server, where all the images are going to be uploaded
  • Username and password of the admin user, created on the main server
  • Camera name is going to be the unique identification of this device

If successful, the device is going to be registered and server will generate a key, that is going to be used for communication with the server.

And that is pretty much it for the client side.

##Testing You can test the installation process on your dev machine by running the installation in a Vagrant box:

vagrant up

About

Client part of RasCam project, responsible for capturing the motion images from webcam and uploading them to the main server

License:Apache License 2.0


Languages

Language:Python 68.8%Language:HTML 22.2%Language:Shell 5.8%Language:JavaScript 3.2%