Conversation
|
Thanks! You can safely change config yaml, like HomeKit integration do it for pairings: go2rtc/internal/homekit/api.go Lines 98 to 107 in fc02e6f |
|
@seydx I have been using this ring camera integration for over a month now (from a nightly build), and it has been working great, thanks! However yesterday for the first time the refresh token that I had been using for the last month became unauthorized and I had to regenerate again via the Add menu. I saw your comment above about reusing the old token shouldn't matter since it is only important for push notifications - but apparently the old token eventually rolls off somewhere... Wondering if there could be a way to auto-refresh so I don't have to redo it manually if it needs it? |
yeah you re right, experienced the same, will make a new PR to auto update the refresh token |
Thanks @seydx - as a workaround I now automatically update the token by extracting a homebridge token via the echo source each time (only possible because I am also using the homebridge ring plugin of course): ring.sh |
|
Hello, I dont understand how i can add the ring cam. The Ring Login are correct and i see the devID with the refreshToken but i dont know what or where i do this. Can anybody Help me? Thx |
copy the url like in the image above, and create a new stream with it in go2rtc |
|
Hi go2rtc team. I have finally managed to not get an error message by setting up the configuration file this way: I am using v1.9.9. so the integration shall work. Thanks -> found the issue. The refresh token has changed... |
This is not the end of the story. |
I started getting a black screen a few weeks back. Maybe it is an H265 vs H264 codec issue? Tsightler's ring-mqtt project continues to work for me though, which I think tells Ring it is a Firefox client so it always delivers H264. |
Add Ring camera integration
Added Ring camera integration that allows users to connect their Ring cameras. Users can authenticate either via email/password (including 2FA support) or by providing a refresh token. (see below)
After successful authentication, all available Ring cameras are displayed with their corresponding source configuration (
ring:?device_id=XXX&refresh_token=XXX). These source configurations can then be used to add individual Ring cameras to go2rtc, which handles the WebRTC connection to stream the camera feed. Two-Way audio is also supported.A separate producer was added for snapshot endpoints (
ring:?device_id=XXX&refresh_token=XXX&snapshot) to directly obtain a snapshot from the Ring APIThe Ring integration implementation is based on the ring-client-api library
Question: When making requests to Ring's API, sometimes a new refresh token is returned. What would be the best approach to handle and persist these updated refresh tokens in go2rtc's configuration @AlexxIT ?
Regarding to ring-client-api wiki, it is only important for push notification, which is not used here..