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

RAPI over HTTP authentification #265

Open
roy13 opened this issue Jan 6, 2021 · 1 comment
Open

RAPI over HTTP authentification #265

roy13 opened this issue Jan 6, 2021 · 1 comment

Comments

@roy13
Copy link

roy13 commented Jan 6, 2021

I have updated from 2.3.0 to 2.9.1
Previously this worked.
curl -X POST http://username:passwor@192.1.1.1/r?rapi=%24SC+14
But now i have to turn the username and password to blank in the web GUI & can only use
curl -X POST http://192.1.1.1/r\?rapi\=%24SC+14
The top method still works when pasted into a windows browser without curl -X POST
I currently send these commands from a Rasberry PI running Home assistant.

The documents are excellent but are lacking username and password info in the RAPI over HTTP section, maybe i'm just doing it all wrong.
Thanks to all those that made this possible!

@TonyApuzzo
Copy link

TonyApuzzo commented Feb 10, 2021

I'm seeing the same thing, no authentication is needed anymore, it's wide open. I am using Home Assistant also and it works with the rest_command with username/password specified or not.

You can see my configuration at https://github.com/TonyApuzzo/home-assistant-config/blob/master/packages/openevse.yaml

AHA: Just realized that my authentication issues are because the Admin username/password got reset to empty on the 2.9.1 upgrade. Once I re-added my account information, I started seeing 401 errors.

It looks like the server now requires digest authentication which is available with Home Assistant's REST sensor, but for some reason rest_command cannot specify digest as far as I can tell.

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

2 participants