Changelog
If a motion or ding event occurs, the handling for downloading the video gets handled in a separate thread. This enables the script to handle subsequent events like a ding event after a motion event.
Moved some vars into the local context of the threadded function to isolate the events' information
Switched the default encoding to utf8 for the running python script. This allows for proper utf-8-encoding and -decoding, when trying to send attribute updates to FHEM
Switched to Python3, due to changes in tchellomello/python-ring-doorbell library. E.g. the OAuth2 lib seems to be Python3-only
On startup, ring.py will login and request a new auth token using user/pass for the ring site
Correct the threading call for gathering the videos from the ring site
Needs Python3.7 Added 2FA authentication Added interactive user/passwords Reworked code for compatibility with tchellomello/python-ring-doorbell master(0.6.0+) Fixed getting lastCaptureURL from Ring api
Doorbots which have been granted to "neighbour" users are now gathered from the Ring api
Instead of calling the history repeatedly and determine, if the new video is videoIsReadyForDownload we leave that to the new recording_download function of the library
If the connection to the ring api fails, retry up to 600s before giving up and terminating
added backgound readings update
added backgound readings update