mirror of
https://github.com/koush/scrypted.git
synced 2026-03-20 16:40:24 +00:00
snapshot: add support for periodic snapshots via http
This commit is contained in:
4
plugins/snapshot/package-lock.json
generated
4
plugins/snapshot/package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@scrypted/snapshot",
|
||||
"version": "0.2.32",
|
||||
"version": "0.2.33",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@scrypted/snapshot",
|
||||
"version": "0.2.32",
|
||||
"version": "0.2.33",
|
||||
"dependencies": {
|
||||
"@types/node": "^20.10.6",
|
||||
"sharp": "^0.33.1",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@scrypted/snapshot",
|
||||
"version": "0.2.32",
|
||||
"version": "0.2.33",
|
||||
"description": "Snapshot Plugin for Scrypted",
|
||||
"scripts": {
|
||||
"scrypted-setup-project": "scrypted-setup-project",
|
||||
|
||||
@@ -673,6 +673,7 @@ export class SnapshotPlugin extends AutoenableMixinProvider implements MixinProv
|
||||
const mixin = this.mixinDevices.get(id);
|
||||
let buffer: Buffer;
|
||||
const rpo: RequestPictureOptions = {
|
||||
reason: search.get('reason') as 'event' | 'periodic',
|
||||
picture: {
|
||||
width: parseInt(search.get('width')) || undefined,
|
||||
height: parseInt(search.get('height')) || undefined,
|
||||
|
||||
Reference in New Issue
Block a user