Giter VIP home page Giter VIP logo

gp2srv's Introduction

GPhoto2 Server

Versions 1.0+

This is a Jetty-powered WebApp that serves as a web-interface for GPhoto2 program. It can be put on any machine that has libgphoto2 and Java 1.5 or above. The calls to GPhoto2 are done using JNA, via https://github.com/mvmn/jlibgphoto2

Command-line arguments:

  • port - TCP port to listen on. Optional. Default port is 8080.
  • logLevel - logging level (one of TRACE, DEBUG, INFO, WARN, ERROR, SEVERE, FATAL). Optional. Default is INFO.
  • auth - username:password Optional. Enables basic HTTP authentication with provided credentials.

Dependencies:

Known issues: On Canon (and possibly other) cameras browsing files requires viewfinder to be closed. Thus one has to close viewfinder (which gets opened by LiveView) before going to browse page. I will try to address this issue in the future.

Versions before 1.0

This is a Jetty-powered WebApp that serves as a web-interface for GPhoto2 program. It can be put on any machine that has GPhoto2 (usually in PATH) and Java 1.5 or above. The calls to GPhoto2 are done using simple exec.

The program is distributed as an executable JAR file + lib folder with dependencies (few more JAR files). Once started, it listens on port 8080 by default (use port command line parameter to set different value).

Command-line arguments:

  • gphoto2path - specify path to gphoto2 executable. Optional. Location of gphoto2 will be searched in PATH by default.
  • port - TCP port to listen on. Optional. Default port is 8080.
  • logLevel - logging level (one of TRACE, DEBUG, INFO, WARN, ERROR, SEVERE, FATAL). Optional. Default is INFO.
  • usemocks - do not execute gphoto2 but use in-built mock gphoto2 responses (which cover around 10% of available action). Optional. Used for development purpopses only.

Dependencies:

Video demonstration using Raspberry Pi: https://www.youtube.com/watch?v=_aXn34VpjB8

Notes:

gp2srv's People

Contributors

mvmn avatar

Watchers

James Cloos avatar Reza Primasatya avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.