1.11.0 • Published 10 months ago

alpha_sync v1.11.0

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

Alpha Sync

The purpose of this package is to extract photos wirelessly from Sony Alpha Cameras! It was created because I went on holiday to the lake district, filled my camera up with pictures and had no way of getting them off the camera onto my Apple M1 Laptop. It utilises UPNP protocols to get the images that we discovered via packet sniffing. These are the commands used by the Imaging Edge app.

Installation

Install my-project with npm

  npm install alpha_sync

Usage/Examples

The following code snippet tries to discover the content directory service on the camera. It then constructs a tree using depth first search of all the images in the cameras file system. It then downloads all those images into the file ./images.

Connect your computer to your camera via wifi. Go to MENU -> Network -> Send to Smartphone Func. -> Send to Smartphone -> Select on Smartphone. Then connect using the SSID and password that your camera provides. Then run the following code.

Please note that this will only transfer images and not videos!

const {AlphaSync} = require('alpha_sync')
const as = new AlphaSync()

as.discover_avaliable_services()
  .then(async () => {await as.generate_tree()})
  .then(async ()=>{await as.get_all_images_dict('./images')})
  .catch((error) => console.log(error))

And to download images between two dates (inclusive)

const {AlphaSync} = require('alpha_sync')
const as = new AlphaSync()

as.discover_avaliable_services()
  .then(async () => {await as.generate_tree()})
  .then(async ()=>{await as.get_all_between_two_dates('./images',['2022','06','06'],['2023','05','30'])})
  .catch((error) => console.log(error))

Acknowledgements

Lessons Learned

I started this project in 2021 writing it in Swift. Deeply regret that. Sometimes the cast of High School Musical is right "It is better by far to keep things as they are, Don't mess with the flow, no, no, Stick to the status quo"

Documentation

Documentation

Features

  • Download all the images off your camera
  • Provide a data structure representing all the images in your camera organised by the date that they were taken

Roadmap

  • Redo download when program is cancelled before image is done

  • Better error handling

Tech Stack

Node, Typescript, UPnP

1.11.0

10 months ago

1.10.0

10 months ago

1.9.7

10 months ago

1.9.6

11 months ago

1.9.5

11 months ago

1.9.4

11 months ago

1.9.3

11 months ago

1.9.2

11 months ago

1.9.1

11 months ago

1.9.0

11 months ago

1.8.2

11 months ago

1.8.0

11 months ago

1.7.0

11 months ago

1.6.0

11 months ago

1.5.0

11 months ago

1.4.0

11 months ago

1.3.0

11 months ago

1.2.0

11 months ago

1.1.0

11 months ago

1.0.0

11 months ago