Code Monkey home page Code Monkey logo

Comments (11)

tsightler avatar tsightler commented on August 15, 2024 2

Just FYI for folks here, not trying to take users away from this project, but I've implemented streaming support in ring-mqtt using a concept similar to the one posted in this thread (rtsp-simple-server, but using ring-mqtt to trigger stream start/stops). It supports mulitple cameras, external viewers on-demand, ability to manually start a stream/record session, etc. There's a few more features to come, like playback of past recorded videos, but so far it seems pretty usable.

from ring-hassio.

caraar12345 avatar caraar12345 commented on August 15, 2024

Hey - this is really cool!

How does it work with more than one Ring camera? 👀

from ring-hassio.

gilliginsisland avatar gilliginsisland commented on August 15, 2024

The sample code I wrote doesn’t do more than one camera in its current form but it should be trivial to add that ability. rtsp-simple-server allows multiple paths so u can add the camera as the first parameter and change the node script to take the camera number as the first argument and then use that to pull the corresponding camera.

from ring-hassio.

patsch9 avatar patsch9 commented on August 15, 2024

Hey, very cool!

can you explain how you configured your environment to use this with homeassistant?

Thanks!

from ring-hassio.

patsch9 avatar patsch9 commented on August 15, 2024

Hi, in this fork of ring-hassio i have implemented your script with the newest version of rtsp-simple-server.

from ring-hassio.

gilliginsisland avatar gilliginsisland commented on August 15, 2024

@patsch9 Thats awesome. I use home assistant core so I couldn't make changes to the add-on and test it. Happy you implemented it!

I saw the update to rtsp-simple-server and I noticed that the yaml file for the configuration supports regex paths, so it should be possible to support multiple cameras with one path definition, something like ~ring([0-9]+) and then use that path to know which camera to stream.

Also for home assistant configuration I use the ffmpeg platform which doesn't require a still_image_url since the live stream doesn't have snapshot feature

from ring-hassio.

patsch9 avatar patsch9 commented on August 15, 2024

@gilliginsisland do you have also the problem that when you access the livestream there are no ding or motion events on other devices also home assistant? When i cancel the stream than the events are shown.

from ring-hassio.

gilliginsisland avatar gilliginsisland commented on August 15, 2024

I dont actually know that answer, I only use it for the stick up cam and I dont use the regular integration. I only use it as an on demand camera. But from what I googled it seems that when a live stream is active that there is no motion or ding events, and that there doesn't seem to be a way to fix that.

from ring-hassio.

patsch9 avatar patsch9 commented on August 15, 2024

ok, that's exactly my level of knowledge.
It's a shame for Amazon that the connection to external services is so poorly represented. Thanks for your input and feel free to edit some things in my forked repo :-)

from ring-hassio.

gilliginsisland avatar gilliginsisland commented on August 15, 2024

Yeah I agree.

A $20 camera on amazon has PTZ and a local RTSP stream that doesn't require workarounds to get into home assistant. But a $150 camera can come without PTZ and without RTSP and u need to pay a subscription to get recording which only last 30 seconds and isnt always on.

I only have a ring because I got the stick up cam for free when I signed up for Verizon Fios lol

from ring-hassio.

tsightler avatar tsightler commented on August 15, 2024

@gilliginsisland Thank you for sharing this. I'm the maintainer of ring-mqtt as well as the ring-mqtt addon. which is quite popular with Home Assistant users. I've had numerous request to add livestreaming to the addon but, as the current integration is based on MQTT, it's not really built for livestreaming, although I do support other camera functions and also have support for snapshots based on interval and motion.

I had looked at this script previously, but I wasn't too excited with the HLS implementation and didn't really have time to dig into RTSP support. However, due to continued requests, I've been seriously considering integrating streaming into the addon to provide a single addon with all Ring functionality and had been researching rtsp simple server, so seeing a working example is great.

One question, how reliable have you found this setup? My experience with livestreams using ring-client-api has been a little spotty, and my big concern is the support issues it would open up due to this so I'm curious what your experience has been.

from ring-hassio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.