Closed bradhs closed 2 years ago
Sorry @bradhs, the SDM API does not have any way to get a current snapshot. The Nest logo is used as a placeholder. If you sit and watch the app for a while snapshots will appear/disappear as camera events fire, but there is no way to retrieve one on demand.
I've noticed that other cameras use the technique of displaying the last frame received from the camera in Homekit, with a aging time (i.e. 45 mins) displayed in the corner showing how old the frame is, and then switching to displaying LIVE if the stream is really live and not an old still. Is there a reasonable way to implement this sort of thing in homebridge (i.e. cache the last frame when the stream is going offline) instead of it going back from the live stream to a generic Nest logo any time the stream isn't active due to a motion event?
@davet9713: Yes something like that could be done. In fact the plugin DOES cache snapshots! Except it only keeps them for a few seconds or when they are requested.
Just personal preference I guess, I felt that if the snapshot is more than a few seconds old it's not very useful...
I does have its uses to see the last thing the camera looked at… like whether there are parcels sitting on the porch, instead of just seeing a generic nest logo…
From: Ted Potma @.> Sent: Monday, November 29, 2021 10:59 PM To: potmat/homebridge-google-nest-sdm @.> Cc: David Toth @.>; Mention @.> Subject: Re: [potmat/homebridge-google-nest-sdm] Camera snapshots (Issue #5)
@davet9713 https://github.com/davet9713 : Yes something like that could be done. In fact the plugin DOES cache snapshots! Except it only keeps them for a few seconds or when they are requested.
Just personal preference I guess, I felt that if the snapshot is more than a few seconds old it's not very useful...
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/potmat/homebridge-google-nest-sdm/issues/5#issuecomment-982260974 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AWRNYLFFAKJ3HWXN45ONQG3UORDYLANCNFSM5ITZW2IQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub . https://github.com/notifications/beacon/AWRNYLHUPKDZKVDKNS7KRIDUORDYLA5CNFSM5ITZW2I2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHKGBZ3Q.gif
@davet9713: It's a fair point. So you propose to keep the last event image or the last frame of the last time the stream was viewed?
Since there’s no way (I assume) to scroll back through history like you can with the Google/Nest app then it would seem to make sense to maybe store what tripped the event. If there was a way to play the last captured sequence (I.e. the last stream before it went idle again) and replay that stream that would be fantastic. Not as fully functional as the native app that lets you pick any of the past activation events to view them, but good enough. If you can’t get the last stream to replay on demand then I guess a still frame with a timestamp in the corner showing what caused the activation event then that would be a reasonable alternative so at least from looking at it you know it activated and why/when
Sent from my iPhone
On Nov 29, 2021, at 11:07 PM, Ted Potma @.***> wrote:
@davet9713https://github.com/davet9713: It's a fair point. So you propose to keep the last event image or the last frame of the last time the stream was viewed?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/potmat/homebridge-google-nest-sdm/issues/5#issuecomment-982265057, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AWRNYLGQEL5SBZQ2FH55VCLUOREYHANCNFSM5ITZW2IQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
@davet9713 : There is no way to do any of these things really, except show a last known "good" snapshot.
@davet9713 : I experimented with this a bit and I've changed the image retention time to ten seconds. If you have the Apple home app open this is about how often it will ask for an image. The problem is that if you keep supplying the same image you will see a counter in the app that continuously counts down from 10 over and over with the same image. Closing this case for now.
Is it supposed to post snapshots from the camera? I'm not getting those. Just the Nest icon shows up.