Skip to content

Commit

Permalink
fix: match ring app polling delay for dings
Browse files Browse the repository at this point in the history
  • Loading branch information
dgreif committed Jul 11, 2019
1 parent 38f1fb4 commit b567be7
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const ringApi = new RingApi({
// The following are all optional. See below for details
locationIds: ['488e4800-fcde-4493-969b-d1a06f683102', '4bbed7a7-06df-4f18-b3af-291c89854d60'],
cameraStatusPollingSeconds: 20,
cameraDingsPollingSeconds: 1
cameraDingsPollingSeconds: 2
});
```

Expand Down
2 changes: 1 addition & 1 deletion api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class RingApi {

fetchActiveDings() {
return this.restClient.request<ActiveDing[]>({
url: clientApi('dings/active?burst=false')
url: clientApi('dings/active')
})
}

Expand Down
2 changes: 1 addition & 1 deletion examples/example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ async function example() {
// Refresh token is used when 2fa is on
refreshToken: env.RING_REFRESH_TOKEN!,
// Listen for dings and motion events
cameraDingsPollingSeconds: 1
cameraDingsPollingSeconds: 2
}),
locations = await ringApi.getLocations(),
cameras = await ringApi.getCameras()
Expand Down
4 changes: 2 additions & 2 deletions homebridge/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ and third party devices that connect to the Ring Alarm System.
"hideCameraMotionSensor": true,
"hideAlarmSirenSwitch": true,
"cameraStatusPollingSeconds": 20,
"cameraDingsPollingSeconds": 1
"cameraDingsPollingSeconds": 2
}
]
}
Expand Down Expand Up @@ -87,7 +87,7 @@ to hide the siren switch.
light/siren status do not update in real time and need to be requested periodically. Defaults to `20`

`cameraDingsPollingSeconds`: How frequently to poll for new events from your cameras. These include motion and
doorbell presses. Defaults to every `1` second.
doorbell presses. Defaults to every `2` second.

### 2-Factor Authentication (2fa)

Expand Down
2 changes: 1 addition & 1 deletion homebridge/ring-alarm-platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class RingAlarmPlatform {
}

config.cameraStatusPollingSeconds = config.cameraStatusPollingSeconds || 20
config.cameraDingsPollingSeconds = config.cameraDingsPollingSeconds || 1
config.cameraDingsPollingSeconds = config.cameraDingsPollingSeconds || 2

this.api.on('didFinishLaunching', () => {
this.log.debug('didFinishLaunching')
Expand Down

0 comments on commit b567be7

Please sign in to comment.