v0.3.1: Snapshots code - take 2 (#5)
* + gen 2 and file name changes
* + support for non-alarm modes (Ring Modes)
+ changes to auto-create hub/bridge devices
+ optimization around uncreated devices
* + carriage returns...
* + fixed a null pointer exception in some situations where groups don't have members
* + carriage returns...
* + made 2FA true and read-only
+ support for non-alarm modes (Ring Modes)
+ support to auto-create hub/bridge devices
+ changes to make dual app, multi-location available (but not implemented yet)
+ IFTTT page enhancements
+ create device enhancements
* + fixed a null pointer if no alarms exist
* + in the event that somebody did disable my javascript i set their 2FA to true anyway
* + by the way, the two factor toggle is left in on purpose so that people see the change Ring made and it's a cue to hunt up the token
* + fix for first time login when no location is selected
* + and just to put the nail in the coffin for two step being forced for now
* + these should probably be defaulted to off...
* + cleanup some old API device code
+ migrate old API device
+ fix an alarm capable flag calculation
* + simplified setMode
+ fixed refresh and setMode to only interact with non-alarm modes if no base station is on the account (because it was throwing an error on the Ring side otherwise)
+ formalized the mode attribute...
* + cleanup of non-alarm modes calls
* + fixed typo copied from app
* + fixed typo
* + fixed base station brightness
* + changed message to make sense for users with 2 factor setup over email
* + snapshot configuration pages
+ changed the links on some of the dead-end pages so they would go back to main instead of logging
+ methodized the OAuth enable check for easier reuse
+ stabilized ding polling e.g. added setup to initialize so that it would persist better after reboots
+ introduced snapshot polling
+ created new mapping endpoint for thumbnail images
+ changed the API calls to replace existing headers so individual calls can override the standard headers
+ updated the user agent (this will cause a new logged in user potentially under the app's control center. one of the calls with an older windows app user agent was failing
+ added a keep alive function so the session shouldn't expire. it checks the expire time of the current token and schedules authentication 10 seconds shy of the expiration
+ added a synchronous call for getting snapshots to the API. this will not get pushed to master. chuck is making a change to the async calls which should be ready next path. the users can wait until then. i already experienced near total lockup when one of the Ring snapshot retrievals ran long. the timeout functionality in the async calls and being asynchronous themselves will greatly help this
+ added a asynchronous call to update all snapshots (ring pulls new thumbnails into Ring cloud so they are retrievable by this integration next request)
+ added a snooze get call
+ it was a long day. did i get everything? i shouldn't have combined features with bug fixes and improved existing functionality in the same commit. oh, well.
* + updated change long
* + snapshot preference
* + snapshot preference
* + snapshot preference
* + updated change log
* + snapshot preference
* + adding the missing driver message to log in addition to where it was on screen
* + limited the number of last activity events to one per hour
* + fixed link from dashboard help back to snapshots
+ finished instructions on how to add thumbnail images to a dashboard
+ adjusted pulling snapshots to happen 15 seconds after the snapshots are prepped based on rough testing of the window for how long it took the Ring cloud to pull a snapshot
+ changed the method of prepping a snapshot from waking all cameras to targeting only the enabled cameras (hopefully it's doing what i think it is)
+ added a missing image default
* + added getmode command... because... fine.
* + revert "+ added getmode command... because... fine." this reverts commit 122eb6e638a5178d13df3188e0cd3d00a89ac18c. it was a moment of weakness. i didn't like it.
* + fixed a bug that causes first time through snapshots to fail
+ included authorized doorbots in discovery (for shared accounts)
* + added a helpful message for when no cameras are configured for snapshots
* + readability changes for snapshot documentation
+ readability changes for ifttt documentation
+ changed offset for authorization expiration to 20 seconds from 10 seconds
* + more readability changes for ifttt
* Bump package manifest
Co-authored-by: codahq <codahq@users.noreply.github.com>
Co-authored-by: Ben Rimmasch <ben@regoconsulting.com>