-
Notifications
You must be signed in to change notification settings - Fork 55
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
Get incoming ring? #2
Comments
You can, but you have to poll for it: ring.authenticate(email, password, (e, token) => {
console.log(e, token);
const check = () => {
console.log('Checking for ring activity..');
ring.dings(token, (e, json) => {
console.log(e, json);
});
};
setInterval(check, 30 * 1000);
check();
}); That should return a chunk of JSON that includes the event id which you can use to get the video stream. |
Thanks for this npm module! Works like a charm! |
Sorry for replying to an old thread. You might also be able to use something like Tasker and a plugin (https://play.google.com/store/apps/details?id=com.joaomgcd.autonotification) to intercept the Ring notification on Android. When you detect the notification, fire off a web request to a server that's listening, and have it check the feed. A bit clunky and involved, but you wouldn't have to poll! |
@suhajdab, BTW the reason why you cant get the incoming video stream (via recordings) is because the recording isnt available for about 30-60seconds after the ring.. Im guessing the bell records, then uploads to AWS where the recordings are held |
Im thinking this issue could be closed right? its pretty much closed? |
It would still be nice to get the incoming ring. IIRC they use the SIP protocol to answer the ring. Not sure how to do that at the moment and I haven't had time to reverse engineer their api to do it. I'm also not sure if when you answer a call from one place will that stop anyone else from answering it. I just haven't played enough with the real time part of it yet. My use was to archive footage as well as use it to check battery/wifi status for external monitoring. |
Davglass, #1 covers the querying of the SIP. I found a lot of useful discussion on the python version of the ring api.. I got it working using the blink SIP client but the sip stream only works for 30s or so.. alas I dont have an immediate usecase for this so I stopped R&D |
Any idea why Ring is returning this:
instead of the JSON with the event id? |
@aniceberg That means there wasn't an event in that check. It needs to poll for them. If the |
@davglass Thanks! Got this from an event:
Can you recommend a tool or two that could parse this information and initiate a SIP session with these inputs to bring up a live video feed on a web page? |
Technically it should be possible, I've just not had the time to work on it lately.. I still have a box of their gear that I need to get installed too, but life happens ya know :( |
i think that this is now a duplicate of #1 |
Would be cool to get the API endpoint for an incoming ring, figure it out @davglass 😆
The text was updated successfully, but these errors were encountered: