python-ring-doorbell icon indicating copy to clipboard operation
python-ring-doorbell copied to clipboard

Number of events accessible

Open ifuchs opened this issue 6 years ago • 4 comments

I can list info for 100 past events using doorbell.history. Is this a limit set by Ring? I had thought that they keep 30 days of events but my last 100 events only cover 4 days.

ifuchs avatar Nov 30 '19 20:11 ifuchs

I'd be interested in this answer also. Do to an issue I didn't notice my utility the uses this library hasn't ran since 11/1

thanneman79 avatar Dec 18 '19 02:12 thanneman79

@ifuchs @thanneman79 I just ran this for the first time and was seeing the 100 event limit too. After looking closer at the documentation here there is an "older_than" parameter that you can pass to history that will get you the next set of data older than the event id specified. So, you call history the first time without specifying "older_than" which gives you an initial set. From there, continue calling history (with "older_than" specified now) until no further records are returned. Specify the id of the oldest (last) event in the current set when making subsequent calls to history.

mbelie avatar Dec 31 '19 08:12 mbelie

I am the CTO @ Ring and we'd love to help you get this working to remove the unnecessary polling. Please reach out to me at [email protected]

jr-ring avatar Jan 07 '20 19:01 jr-ring

I encountered this limit, but found there is also a $start-event (for past event count) call. So I solved this be using the oldest known event ID in order to build a local index of older events up to the 3month Ring storage limit... Hope that pseudo code helps.

4Dolio avatar Jun 26 '20 05:06 4Dolio

There hasn't been any activity on this issue recently. This issue has been automatically marked as stale because of that. It will be closed if no further activity occurs. Please make sure to update to the latest ring_doorbell version and check if that solves the issue. Thank you for your contributions.

github-actions[bot] avatar Apr 18 '24 18:04 github-actions[bot]