go2rtc icon indicating copy to clipboard operation
go2rtc copied to clipboard

Added streams in go2rtc.yaml not showing in go2rtc addons dashboard

Open Gferretta opened this issue 2 years ago • 13 comments

Hi Alex First of all I want to make it clear that I am using WebRTC without problems, but I have read that this addon will be a replacement in the future. Likewise, I am not understanding the README well, how to configure or configure it, as I see instead with SonoffLAN (totally clear and complete)

I have 2 problems that I couldn't solve:

  1. I have added as statements in go2rtc.yaml the streams of my 2 rtsp cameras, but then they do not appear in the addon panel I did this because the camera key appears in the URL
  2. Can the listening port be changed? I have put it in the yaml but it keeps listening to the api in 1984

Thank you very much and I hope I am not being too "dumb" by these questions.

Regards

go2rtc.yaml (the indent are ok)

> streams:
>   comedor: 
>     - rtsp://xxxx:[email protected]:554
>   calle: 
>     - rtsp://xxxx:[email protected]:554
> 
> webrtc:
>   listen: ":8555"  # address of your local server (TCP)
>   candidates:
>     - stun:8555  # if you have dynamic public IP-address
> 
> api:
>   listen: "127.0.0.1:2000" # localhost
> 
> log:
>   rtsp: trace
> 

1234

Gferretta avatar Aug 26 '22 00:08 Gferretta

Your config ok, but it may be in wrong place. Where you put it? Have you restart add-on after change config?

AlexxIT avatar Aug 26 '22 02:08 AlexxIT

Hi Alex

I Put it on Home Assistant config folder, config/go2rtc.yaml, together configuration.yaml, automations.yaml, etc.

Directly restarted "HA"

Nothing happend

Thanks

EDIT: Now put error 502: Bad Gateway

Gferretta avatar Aug 26 '22 02:08 Gferretta

You may have some YAML errors in config file.

AlexxIT avatar Aug 26 '22 08:08 AlexxIT

You may have some YAML errors in config file.

No errors in config.yaml

yaaml

Now I Test v0.1-alpha.10 and comment you Thanks

Gferretta avatar Aug 26 '22 11:08 Gferretta

You can't test go2rtc.yaml with option from screen.

AlexxIT avatar Aug 26 '22 11:08 AlexxIT

You can't test go2rtc.yaml with option from screen.

okay I had misunderstood your message.

erasing the line api:

The "502: Bad Gateway" error no longer appears and the cameras can be seen fine. But when I add it, with whatever port I put in, I get "502" error

Gferretta avatar Aug 26 '22 12:08 Gferretta

Show your config

AlexxIT avatar Aug 26 '22 12:08 AlexxIT

Show your config

https://github.com/AlexxIT/go2rtc/issues/18#issue-1351591550

Gferretta avatar Aug 26 '22 18:08 Gferretta

Check if you have errors in addon log with alpha.11

AlexxIT avatar Aug 28 '22 04:08 AlexxIT

Is problem still relevant?

AlexxIT avatar Sep 10 '22 10:09 AlexxIT

I am using current Linux binary and note that the go2rtc appears not to use the go2rtc.yaml stored in the binary's directory as per the instructions unless execution is from the directory. Maybe this is related. Is there a way to specify the yaml file from the command line?

shifuoogway avatar Oct 09 '22 08:10 shifuoogway

I think app searching config in current work directory. It does not always match the application directory.

AlexxIT avatar Oct 09 '22 11:10 AlexxIT

Thanks for that. Yep that is consistent with the observed behaviour.

shifuoogway avatar Oct 10 '22 03:10 shifuoogway

Reopen the issue if it is still relevant

AlexxIT avatar Nov 04 '22 14:11 AlexxIT