bitfocus / companion-module-discord-api

MIT License
5 stars 2 forks source link

warn: Login err: {} on Companion RaspberryPi #10

Closed danim80 closed 1 year ago

danim80 commented 1 year ago

Describe the bug Adding Client ID and Client secret (followed the tutorial from the module info)

To Reproduce Steps to reproduce the behaviour:

  1. Configure the app with the credentials, save, and check logs

Expected behaviour Should authenticate

Screenshots image

System (please complete the following information):

Additional context I even added the actual RPi IP to redirects (not sure is needed) image

thedist commented 1 year ago

I don't know of any users running Discord on a Raspberry Pi so I haven't been able to test this situation, but just to check, is whatever OS you're running on your Raspberry Pi one that is officially supported by Discord?

danim80 commented 1 year ago

Discord isn't the main use for the companion PI, I'm CompanionPi for HomeAssistant server, to have it always available even with PC turned off, but I like to use other modules on this stream deck. I'm using the image from https://user.bitfocus.io/product/companion-pi so not sure what OS is used.

Later: Discord is on my PC, Windows 10

thedist commented 1 year ago

Discord can only be connected to over IPC, meaning it has to be running on the same machine as Companion. There's no capability for Companion to be running on one machine/device, and Discord running on a completely separate device.

It is planned for a future release to be able to download and run a proxy service on the same machine as Discord, and then Companion can connect over the network to that proxy, but that is not yet ready. So for your situation where you're running Companion on a Raspberry Pi, unless you also install and use Discord on that same Raspberry Pi, this module isn't currently supported.

danim80 commented 1 year ago

Ok, thank you, didn't know that, I thought is using Discord API to control it.