Skip to content

camerahacks/canon-ccapi-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Canon Camera Control API NodeJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published