This library allows interaction with Sony cameras using node.
- Clone or download this project
- Run
npm installin the root of the project - Turn your Sony camera on
- Start the Smart Remote Embedded application on your camera
- Connect to the camera wifi from your computer. The access point SSID should be displayed on your camera screen and use the 'Connect with password' option.
- Run
node sony-camera-demoin the root of the project
Taking a picture:
var Camera = require('./sony-camera').Camera,
camera = new Camera();
camera.connect() // Connect to the camera
.then(() => camera.picture()) // Take a picture
.then(Camera.display); // Print out the image link - Use the link returned to view the imageTaking a timelapse:
var Camera = require('./sony-camera').Camera,
camera = new Camera();
camera.connect() // Connect to the camera
.then(() => camera.timelapse(4, 2000)) // Take a timelapse of 4 images 2 seconds apart
.then(Camera.display); // Print out the timelapse image linksDisplaying the camera's current available api:
var Camera = require('./sony-camera').Camera,
camera = new Camera();
camera.connect()
.then(() => camera.getAvailableAPI())
.then(Camera.display);