Skip to content

A simple webcam image capture to store images in your personal dropbox

License

Notifications You must be signed in to change notification settings

Milchreis/NetPetcam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alt-text

The NetPetcam is a simple solution to capture continuously pictures of your pets and save it to your personal dropbox. In that way you are able to check your pets from everywhere without router port forwarding.

Man-Page

usage: java -jar NPetcam.jar
 -c,--configfile <arg>   Sets the path to a configfile
 -h,--help               Prints this help
 -i,--interval <arg>     Sets the capture interval in seconds
 -m,--max-images <arg>   Sets the maximum of saved images in the dropbox
 -r,--rpi-mode           Sets the raspberry pi mode for capture with rpicam
 -s,--stream             Instead of Dropbox image, stream to localhost:8080
 -t,--token <arg>        Sets the dropbox access token

Download and run

The simplest way to run NetPetcam is to download the jar-file and execute it. Feel free to download it.

With the command java -jar NPetcam.jar -c /path/to/your/npetcam.properties you start the program.

Your properties file can look like this:

# Set up the dropbox access token
dbxtoken=

# Set up the shooting and uploading interval in seconds 
interval=5

# Set the maximum number of image which are stored in the dropbox
maximages=10

Remote configuration

If you want to change the interval or maximages settings from remote, than you can create a directory "admin" in your dropbox app directory and place a config.properties file like this:

# Set up the shooting and uploading interval in seconds 
interval=5

# Set the maximum number of image which are stored in the dropbox
maximages=10

NetPetcam will find this file and changes the settings locally.

Build

If you want to build the program for your self, you can use maven like this: Goals: clean compile assembly:single

Dependencies

To run this program correctly you need the following things:

  • Java Runtime Environment 8 (JRE-8) or higher
  • Dropbox-account and an access-token (don't worry is free and easy, look here)
  • Webcam or Rapsberry Pi + Pi-Cam
  • Pets :-)

About

A simple webcam image capture to store images in your personal dropbox

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages