Skip to content
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

Trouble with authentication token in smarthome #18

Open
Enermatz opened this issue Mar 8, 2024 · 1 comment
Open

Trouble with authentication token in smarthome #18

Enermatz opened this issue Mar 8, 2024 · 1 comment

Comments

@Enermatz
Copy link

Enermatz commented Mar 8, 2024

Hi,
i tried to integrate some miners into my smarthome to make use of excess energy from PV.
Since all my other stuff gets handled on a raspberryPi with Node-Red, i tried integrating the BOS+API there.
There seems to be only one repository that can handle gRPC on node-red: https://github.com/julien-pal/node-red-contrib-grpc
I got it to work, since i can read out the GetApiVersion, but that's where the problem starts.

For every other command, you also need so send the authentication token, which i think i know how to do that, if i had a chance to retrieve the token. I tried reaching out to the contributors of node-red-contrib-grpc, but the project seems to be abandoned. Editing the code by myself didn't work neither. There seems to be no option to somehow read out the response header in node-red.

Since you most likely have no time to dig into node-red or mentioned repositorys, is there a way to maybe integrate an option for the user to decide if u need an auth-token as mandatory, or instead just use 'username/pwd' as plaintext, or don't use authentication at all?

Everything else with your api works like a charme, just the auth-header prevents me from fully automating the whole thing.

Every help is appreciated, thanks in advance!
Enermatz

@Enermatz
Copy link
Author

Got it to work without the mentioned repository. Node-Red can run terminal commands through the exec node, works just fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant