bitfocus / companion-module-restream-api

MIT License
0 stars 1 forks source link

Walk through linking redirect URL/URI to get Restream module to work. #7

Open progressmedia opened 1 year ago

progressmedia commented 1 year ago

So I'm trying to install the restream module and having problems on the number #2 on the module documentation. I'm able to get to this part of it: image My companion PI instance is local IP address 192.168.2.61 and I can't get past the image on the right. So this is what I enter but when I hit allow, it redirects me to some kind of companion pi address, but that link never "works". I think because I haven't resolved the port issue that i mentions in step 2.

thedist commented 1 year ago

Your redirect urls don't match. One is http, the other https.

progressmedia commented 1 year ago

Your redirect urls don't match. One is http, the other https.

Ok, I've resolved that issue, and it still doesn't work.

@Julusian said on the companion slack that he doesn't think the code will work unless it's a local Companion install (aka using localhost or 127.0.0.1). Has anyone gotten CompanionPi or remote-companion installation to work with this module?

Julusian commented 1 year ago

Specifically, here: https://github.com/bitfocus/companion-module-restream-api/blob/main/main.js#L378 where it is setting up the receiving http listener on localhost, so unless you are using localhost as your url it will never sync up properly

progressmedia commented 1 year ago

I think I will have to defer to somebody who is more experienced in this to actually attempt to deploy a fix to it.