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

Unable to add a charge point using curl #1054

Closed
4 tasks done
Chabanee opened this issue Feb 10, 2023 · 8 comments
Closed
4 tasks done

Unable to add a charge point using curl #1054

Chabanee opened this issue Feb 10, 2023 · 8 comments

Comments

@Chabanee
Copy link

Checklist

  • I checked other issues already, but found no answer/solution
  • I checked the documentation and wiki, but found no answer/solution
  • I am running the latest version and the issue still occurs
  • I am sure that this issue is about SteVe (and not about the charging station software or something unrelated to SteVe)

Specifications

SteVe Version     : 3.5.0
Operating system  : linux
JDK               : ...
Database          : ...

Expected Behavior

Give a solution to add a chargepoint using curl (ps: I'm using php).

Actual Behavior

Nothing

Steps to Reproduce the Problem

  1. Using a syntax to add a chargepoint with my script php or terminal.
  2. Get no response.

Additional context

I'm also wondering what is the meanning of "dquote>" if you can help me.

Capture d’écran 2023-02-10 141959

@juherr
Copy link
Contributor

juherr commented Feb 11, 2023

There is no api for that. See #1000

@Chabanee
Copy link
Author

Thanks for your answer,

but is there any way else to do that in php ?

@juherr
Copy link
Contributor

juherr commented Feb 14, 2023

Yes. Not recommended but you can use pdo, connect to the database and add the expected entries in the appropriate tables.

@Chabanee
Copy link
Author

If you can explain me how please it will be really helpeful.

Thanks

@juherr
Copy link
Contributor

juherr commented Feb 14, 2023

If you don't know, it will be too complicate.
Just wait for the expected api and you'll be able to use curl then.

@Chabanee
Copy link
Author

Alright, thank you.

Last question can I use php to connect to the database and add the expected entries in the appropriate tables ?

@goekay
Copy link
Member

goekay commented Feb 14, 2023

sure, you can. if you use the correct credentials, you can connect and do anything you want with the database/tables.

@Chabanee
Copy link
Author

oK thanks

@goekay goekay closed this as completed Feb 21, 2023
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

3 participants