Skip to content
No description or website provided.
Python Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Atmosphere Station

Branch Travis
master Build Status

The app runs on RPi and detects faces using Haar cascade classifier from video stream. Once the face detected it sends the image via HTTP to the configurable endpoint.

Running application

Make sure that all required packages installed from apt-requirments.txt and requirments.txt files. OpenCV is not available on Raspbian Jessie and needs to be compiled on RaspberryPi. Once all requirments meat simply execute:

python . -e -t SECRET_TOKEN

On Raspberry Pi you will have to compile OpenCV from source.

Running as daemon service

Add environment variable to configure endpoint to /etc/environment:


Then execute sudo visudo and add:

Defaults    env_keep +="ATMOSPHERE_ENDPOINT"
Defaults    env_keep +="ATMOSPHERE_TOKEN"

Assuming that the project cloned into /home/pi/atmosphere-station (this can me changed in, copy init script to /etc/init.d:

sudo cp /etc/init.d

Make sure that both and are executable:

sudo chmod 755 /etc/init.d/
chmod 755

At this stage you can start and stop service:

sudo /etc/init.d/ start
sudo /etc/init.d/ status
sudo /etc/init.d/ stop

Note that when service started it will perform git pull to update the app. See details in file

See log file at /tmp/atmosphere-station.log for info or errors.

Now, add it to the boot sequence:

sudo update-rc.d defaults
You can’t perform that action at this time.