KoenZomers / RingRecordingDownload

Console Application for Windows, Raspberry Pi, Linux and macOS which allows for downloading of Ring recorded events
Apache License 2.0
20 stars 9 forks source link

Bugfix for tokens that become unauthorized before expiration time #28

Closed danespinosa closed 2 months ago

danespinosa commented 2 months ago

This PR addresses the issue of auth tokens and refresh tokens expiring or becoming invalid before their expiration time. The current fix is to call the latest Session API that generates the right token that doesn't expire before it's supposed to.

This PR also addresses the fact that a hardware_id is not being sent to the ring REST API. This PR also enables users to specify a time between downloads via the --timeBetweenCalls parameter which by default is 0 Also added some verbose logging to be able to debug issues on an easier way.