-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
Problem with HTTP request #111
Comments
the /var/ebusd/html folder is not necessary for using the HTTP API under /data/.
|
Hi John, Thanks for your answer.
I tried to enter url in the command line: "curl http://localhost:8888/data/470/Date" and in the browsers. The command Date present in the command list. I saw it after this:
Maybe I should to copy csv files (like bai.csv etc) to other folder. Look like the it can not find the files with commands. |
please post the result of |
|
Yes, csvs loaded I think |
you need to escape the & char in the request or put everything in quotes: |
|
sorry, typo: |
|
Hello John, As I understand, for Http requst, I should use other port. By default HttpPort = 0. So, I should change the port for activate Http functionallity, right? My ebusd is working as a service, I started it as
I tried to change HttpPort with
but now after run command
got the error "Connection refused" Please, give me instruction how do you start work with Http step-by-step and what the settings you did. Thanks. |
okay that explains it. you have to active the ebusd http port by adding e.g. "--httpport=8889" to /etc/default/ebusd |
Thank you, John. I changed line to |
ok great |
Please help me to understand how can I requst by HTTP, for example, Date from my VCR 470?
I set up the work through the command line (works fine)...
But when I trying to do HTTP request it does not work.
http://localhost:8888/data/470/Date
I got error "ERR_INVALID_HTTP_RESPONSE"
Port and Path by default.
I think I do anything wrong, but what? Please help.
Also, I manually created folder /var/ebusd/html and and copied there the contents of the folder \ebusd-master\contrib\html (maybe it not right).
The text was updated successfully, but these errors were encountered: