Comments (11)
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.
Hey - this is really cool!
How does it work with more than one Ring camera? 👀
from ring-hassio.
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.
Hey, very cool!
can you explain how you configured your environment to use this with homeassistant?
Thanks!
from ring-hassio.
Hi, in this fork of ring-hassio i have implemented your script with the newest version of rtsp-simple-server.
from ring-hassio.
@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.
@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.
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.
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.
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.
@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)
- installation doesn't work... HOT 1
- Installation Token required HOT 2
- Is multiple camera support possible?
- Cant install addon HOT 5
- UnhandledPromiseRejectionWarning: HTTPError: Response code 404 (Not Found) HOT 2
- Not getting the stream to work
- Can't seem to retrieve the stream HOT 2
- file not found - No stream HOT 1
- Unclear on start/stop HOT 1
- Live view isn't live HOT 1
- With the Ring setup in home assistant, will it phone home to Amazon?
- Image is always 0KB
- Create sensor to understand when the addon is ready
- Refresh Tokens now have an expiry.
- addon dont work HOT 4
- sensor and switch wont operate add-on
- UnhandledPromiseRejectionWarning: Error: Refresh token is not valid. Unable to authenticate with Ring servers
- looking for new owner of repo HOT 4
- Livestream stops after a few seconds
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ring-hassio.