-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for video feeds #52
Comments
Thanks for publishing @NorthernMan54. Do you know how to take snapshots or video feeds from these nodes? |
I haven't played with directly accessing the camera's in node red, but am using this to grab 60 seconds of video and upload to google-photos when motion is detected. My goal was to implement some of the features from the Ring Doorbell ( video clips ) without having to pay a subscription fee. For taking snapshots, I believe you can trigger Homebridge-camera-ffmpeg to take a snapshot and you just need to send the correct message to the node. And I thought I had it also responding with the snapshot image as well. But had abandoned that approach and went with this for my use case. I'm using Wyze Cameras and they are sluggish to start a feed or take a snapshot so I ended up having the camera cache 60 seconds of video on a RAM drive on my RPI. Then I modified Homebridge-camera-ffmpeg to use that as the snapshot source. And have node-red grab 60 seconds of video starting 20 seconds before the motion sensor is triggered. ( A time machine ). |
That is super cool @NorthernMan54 . I've been thinking about getting some Wyze cams and flashing them with the RTSP firmware to do this. Can you prevent them from uploading to the cloud? The flow you've laid out here seems a bit different than what you have on your wiki, but maybe the gist is the same. The use of the RAM drive is very clever. It would be really amazing to upload a snapshot to something like Amazon Rekognition and have it identify people. You could train it to identify your mailman, UPS driver, etc. Just a thought :)
Did you have any luck with this part? This is what I'm trying to do more or less, but I'm just not sure how to (or, if it's possible?) connect to the HB Ring feed. I imagine it may also block multiple simultaneous connections? I don't care about the subscription part, I'm fine with that, I just want to be able to analyze the images and snapshots and maybe make some backup copies as well in an automated way. |
Btw, I also thought it would be fun - one can access the Ring Microphone accessory - to play a sound through there. If you know how to do any of this would be very curious! |
The wiki is just an early view into the final solution. I have been tweaking it over a few months and the screenshot was the latest. With my wyze cams I'm just ignoring the cloud features ( but occasionally take a look for admin things ). For recognition I have been using the google photo's recognition engine, and it has been pretty good, but looking at amazon Rekognition the marketing looks impressive. Not sure though how it compares against google photo's. I had returned my Ring door bell when the free period was expiring, as the comments I got at home on the value was limited. And never looked into the device any further. But I have heard from the Ring Plugin developer that there are rate limits on the Ring API that limit developing more advanced options on the platform. A bit of walled garden. And changed my efforts to low cost cameras that support direct access, and settled on the Wyze. I had briefly played with the dafang hacks replacement firmware for them, but found that the night time video quality was slightly slower. So have been working towards mimicking the behaviour of the ring, and in particular the video capture capability. |
I may give the Wyze cams a shot. It bothers me a little bit that they are just white-labeled Xiaomi cameras with somewhat loose privacy restrictions on what is being uploaded... but I can't tell if the replacement firmware (with RTSP) disables the cloud or not. They were on special at Home Depot for $13 a few months back. How did you set up your RAM drive with ffmpeg access? I'm wondering if the homebridge-ring developer would be open to offering that as a config parameter. The ideas could work really similarly in that case. Thanks for your help! |
@dxdc If you install the latest beta, you should now be able to collect a snapshot from HomeKit Camera To install the beta npm install node-red-contrib-homebridge-automation@beta Then place a hs-status node configured to be "Camera control" node for one of your camera, and send it anything, it will output the snapshot as a base64 encoded string. Not sure how useful that will be, but it is a start |
@NorthernMan54 yes, that sounds perfect! I am not yet able to test the beta though b/c I need the pin# bit to make things work on my end. Too many HB instances w/ different pins. One other thing. For some reason, I see 2 ring cameras per Ring device. This results in 2 "Garage - Camera" type nodes that can't be called independently. I'm wondering if your pending deviceId change would fix this one? They are both under the same aid with the same "110" type, but different iid. I have no idea why it's showing 2 cameras there. Let me know if you want a more complete dump of this part. |
I saw that as well when I was playing with this, as part of the beta will need to refine the camera discovery a bit |
This is the node-red flow
|
wow, this looks awesome! I haven't updated to the latest because of the issue I have with multiple PIN's on different hb instances. has that been resolved? If so, will be glad to test this out! Btw, this could be a cool additional flow - if you have a Sonos - It will announce custom text over your Sonos (text to speech). You could try something like having it say "Vehicle at the back door" out loud between certain hours for ex. Nicer than some of the built in chimes that just play a noise. I've used it for similar things. |
It seems like "Microphone" and "Speaker" types are supported, but not cameras. Would it be possible to enable support? It would be terrific to be able to pull a snapshot or 5 sec video feed, for example, for upload/analysis. Not sure how easy this is.
I'm also sharing some example characteristics data from one of my actual cameras, but it didn't work with some kind of default camera set up either using
node-red-contrib-homekit-bridged
either.The text was updated successfully, but these errors were encountered: