Skip to content

Added snapshot methods#42

Open
shnhrrsn wants to merge 2 commits intodavglass:masterfrom
shnhrrsn:snapshots
Open

Added snapshot methods#42
shnhrrsn wants to merge 2 commits intodavglass:masterfrom
shnhrrsn:snapshots

Conversation

@shnhrrsn
Copy link

  • Adds support for Doorbot.snapshotTimestamps and Doorbot.snapshot
  • Updates Doorbot.fetch to treat the response body as a Buffer rather than a string, which is necessary for snapshot images to be coded property

Usage:

ring.devices((e, devices) => {
  ring.snapshotTimestamps(devices.doorbots[0], (e, timestamps) => {
    ring.snapshot(devices.doorbots[0], (e, image) => {
      fs.writeFileSync('./snap.jpeg', image)
    })
  })
})

@schmupu
Copy link

schmupu commented Mar 8, 2019

Would be great to add the snapshot function into doorbot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants