Skip to content

Commit

Permalink
Incremented schema version to 16
Browse files Browse the repository at this point in the history
Added new property `picture` to Device
Removed property `pictureUrl`from Device
Added new command `downloadImage` to Station
Added new Station event `image downloaded`
Fixed some minor issues
Updated dependency eufy-security-client to 2.5.1
Updated dependency commander to 10.0.1
Updated dev dependencies
Updated docs
  • Loading branch information
bropat committed May 7, 2023
1 parent 0f6ffe1 commit cbac5b9
Show file tree
Hide file tree
Showing 15 changed files with 384 additions and 243 deletions.
2 changes: 1 addition & 1 deletion docs/_coverpage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![logo](_media/eufy-security-ws.png)

# eufy-security-ws <small>1.3.5</small>
# eufy-security-ws <small>1.4.0</small>

> A small server wrapper around [eufy-security-client](https://github.com/bropat/eufy-security-client) library to access it via a WebSocket
Expand Down
13 changes: 13 additions & 0 deletions docs/api_cmds.md
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,19 @@ interface {
}
```

### Download image

[compatible with schema version: 17+]

```ts
interface {
messageId: string;
command: "station.download_image";
serialNumber: string;
file: string;
}
```

## Device level commands

### Get properties metadata
Expand Down
19 changes: 19 additions & 0 deletions docs/api_events.md
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,25 @@ interface {
}
```

### `image downloaded`

[compatible with schema version: 17+]

This event is sent whenever an image was successfully downloaded.

```ts
interface {
type: "event";
event: {
source: "station";
event: "image downloaded";
serialNumber: string;
file: string;
image: Picture;
}
}
```

## Device level events

### `device added`
Expand Down
7 changes: 7 additions & 0 deletions docs/api_schema_versions.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

This document describes the changes that are introduced with each schema version.

## Schema 17

* Added new property `picture` to Device
* Removed property `pictureUrl`from Device
* Added new command `downloadImage` to Station
* Added new Station event `image downloaded`

## Schema 16

* Added new property `cellularRSSI`, `cellularSignalLevel`, `cellularSignal`, `cellularBand`, `cellularIMEI` and `cellularICCID` to Device
Expand Down
Loading

0 comments on commit cbac5b9

Please sign in to comment.