Giter Site home page Giter Site logo

ayoubbahmad / canon-ccapi-node Goto Github PK

View Code? Open in Web Editor NEW

This project forked from camerahacks/canon-ccapi-node

0.0 0.0 0.0 214 KB

Canon Camera Control API NodeJS

Home Page: https://dphacks.com

License: MIT License

JavaScript 89.38% HTML 10.62%

canon-ccapi-node's Introduction

canon-ccapi-node

Canon Camera Control API NodeJS

More information @ {DPHacks} website - a website for everything camera hack related

Canon EOS RP - Camera Control API

This is a simplified version of my CCAPI app. This NodeJS is super lightweight and a lot more portable than my other CFML app.

Required packages:

  • Express
  • Request

Instructions

Edit the config.json and edit the camera IP address. Port 8080 is the default port for canon cameras but feel free to change it if needed.

The app is intended to be used as a WiFi intervalometer for Canon cameras that support CCAPI.

I do not recommend using interval times shorter than 3 seconds. This application is meant to be used for long timelapses, not short bursts of photos. Intervals shorter than 3 seconds might skip photos as the camera might be busy writing the photo to the memory card or responding to other commands. The CCAPI interface is not capable of queuing multiple concurrent requests.

I have this app installed on a Raspberry Pi Zero W configured as an Access Point. I can connect my Canon EOS RP and my cellphone to the Raspberry Pi.

The phone does not need to be connected to the Pi once the intervalometer sequence is started. Feel free to turn off WiFi on your phone once the sequence is running.

Operation

Connect the Canon camera to the Raspberry Pi. Connect your phone or any other device with an internet browser

Using the UI

From a browser app on your device (cellphone), navigate to 192.168.1.4:3000 (use your Raspberry Pi IP address).

DPHacks Wireless Intervalometer - Phone UI

Using the API

From a browser app on your device (cellphone). Call your Raspberry Pi IP:port followed by /ccapi.
Example:
192.168.1.4:3000/ccapi This will establish a CCAPI connection between the camera and the Raspberry Pi.

Next, using the same browser on your device (cellphone), call the intervalometer api on the Raspberry Pi using the format /numberOfShots/wait/delay

numeberOfShots is the number of pictures the camera will take
wait is the number of second wait between shots
delay is the number of seconds to wait before starting the sequence of shots

Example:
192.168.1.4:3000/interval/20/60/5

The above translates to: Wait 5 second to start shooting then take 20 pictures waiting 60 seconds between each picture.

Reference

I'm working to include all of Canon's CCAPI calls in ccapi.js.

/connect
Establhishes the connection with the CCAPI. This needs to be called before making any other requests

/interval/:shots/:wait/:delay
Starts interval shooting

/interval/stop
Stops interval shooting

canon-ccapi-node's People

Contributors

camerahacks 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.