Open shnhrrsn opened 5 years ago
Doorbot.snapshotTimestamps
Doorbot.snapshot
Doorbot.fetch
Usage:
ring.devices((e, devices) => { ring.snapshotTimestamps(devices.doorbots[0], (e, timestamps) => { ring.snapshot(devices.doorbots[0], (e, image) => { fs.writeFileSync('./snap.jpeg', image) }) }) })
Would be great to add the snapshot function into doorbot
Doorbot.snapshotTimestamps
andDoorbot.snapshot
Doorbot.fetch
to treat the response body as a Buffer rather than a string, which is necessary for snapshot images to be coded propertyUsage: