Popularity
1.3
Stable
Activity
4.6
Declining
2
1
0

Programming language: Crystal
Tags: Misc    

gphoto2-web.cr alternatives and similar shards

Based on the "Misc" category

Do you think we are missing an alternative of gphoto2-web.cr or a related project?

Add another 'Misc' Shard

README

gphoto2-web.cr Build Status License

REST web API for the libgphoto2 library. You can use it to take pictures, previews (handy for implementing poor man's liveview feature), control/obtain various camera settings, and access connected camera's filesystem - all via JSON-based requests.

Installation

  • After cloning the repo you need to call shards install in order to obtain needed dependencies
  • Next, execute shards build (possibly with --production flag) to build the binary
  • You're ready to go! It's as easy as running ./bin/server and checking the http://localhost:3000/cameras for list of detected cameras
  • Passing SENTRY_DSN env var while builing/running will provide you with error reporting

Usage

Available endpoints

  • GET /cameras
  • POST /cameras/reload
  • GET /cameras/:id
  • POST /cameras/:id/exit
  • GET /cameras/:id/config
  • PATCH /cameras/:id/config
  • GET /cameras/:id/config/:widget
  • PATCH /cameras/:id/config/:widget
  • GET /cameras/:id/fs
  • GET /cameras/:id/fs.zip
  • GET /cameras/:id/fs/*path
  • DELETE /cameras/:id/fs/*path
  • GET /cameras/:id/blob/*filepath
  • DELETE /cameras/:id/blob/*filepath
  • GET /cameras/:id/capture
  • GET /cameras/:id/preview

Development

  • Pass DEBUG=1 in shards build step to compile-in the debug support. Afterwards you can use it by passing DEBUG=1 env variable when running the server (DEBUG=1 ./bin/server)

Contributing

  1. Fork it (https://github.com/Sija/gphoto2-web.cr/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • Sija Sijawusz Pur Rahnama - creator, maintainer


*Note that all licence references and agreements mentioned in the gphoto2-web.cr README section above are relevant to that project's source code only.