Skip to content

Take pictures from a rPi integrated camera and send them to kafka. Picsolve's Hackathon 2015

Notifications You must be signed in to change notification settings

juanantoniofm/kafka-campc

Repository files navigation

The Kafka Conspiracy

Setup

Modify the settings.py file with your environmental settings.

make sure the $DISPLAY variable is correctly setup to your display number

NOTE: it's designed to run with Python >2.7 To make it work in python 3,

  • enable conditional imports in the tests

  • fix the print statements to print functions

Usage

run the grabber as daemon

python camgrab.py | tee -a camgrab.$(date +%F).log &

run the uploader as a one-shot

python camup.py

Know errors

Gtk-WARNING **: cannot open display:

Make sure the $DISPLAY var is setup with

export DISPLAY=:0

that will work in most cases.

TO DOs and next features

  • choose an error management path. Right now exceptions are re raised but never addressed. We need a retry mechanism.

TOFIX

  • there is an issue with the auxiliary threads. We need to kill manually

About

Take pictures from a rPi integrated camera and send them to kafka. Picsolve's Hackathon 2015

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published