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
Have the possibility to define on wich port is running emoncms server #42
Comments
If you are using plain HTTP you can just append :8080 to the end of the server name. |
Hello, I've already try that but no connection maybe is something wrong with my built. |
Hello, I flashed a new Wemos D1 Mini to test connection to server on port 8080.
It worked for me adding ":8080" to "Emoncms Server", and without HTTPS. Maybe there is connection issues from EmonESP to EmonCMS server. |
Hello, xxxxxxxxx.xxxx.xx:8080/input/post.json?json={ct1: 0.15, ct2: 0.00, ct3: -0.00, ct4: -0.03, V: 1.01,psent:5,psuccess:0,freeram:25704}&node=esptest&apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx (exactly the same as display on serial log from emonesp) |
If there anything set it the 'SSL SSH-1 Fingerprint:' field? If so remove that. |
No, ignore that, not the issue |
Hello, today I spent a litle bit more time on my issue and I'm preaty sure I've no problem with my emoncms server side. As i mentioned before manually typing posts data. /input/post.json?json={ct1: 615.29, ct2: 517.25, ct3: 430.61, ct4: 383.29, V: 310.32,psent:2,psuccess:0,freeram:25368}&node=emonesp&apikey=xxxxxxxxxxxxxxxxxxxxxx Looking on "ESP8266HTTPClient.h" seems is a bad request HTTP_CODE_BAD_REQUEST = 400, On that file mentions different ways to make request and seems emonesp uses 1st (see below), 2nd should be the one where we can define port number. I'm not a programmer I'm not able to change code (I tried already without sucess ...) .... |
I have simular problem, to me it seems that the host can't have a port added to it because in http.cpp the port 80 is passed through to get_http_internal() and isn't parsed out and sent. Simplest I think would be to add into the interface an adition GUI field which would default to 80 but can be changed.
|
Running into this issue also, as an add-on has been created for Home Assistant, having the ability to define the port would be great, and only if it omitted default to port 80. Originally raised an issue with hassio-addon-emoncms, but it would be better dealt here i would think. |
> mfw Line 76 in 0af0551
this should either be its own UI field or parse from host:port
|
Fixed in #102 |
Hello,
I'm running emoncms not on the defult 80 port, i'm using 8080, It will be usefull have the possibility to define on wich port is running emoncms server.
I'm just setting ip adress plus door and can't connect
The text was updated successfully, but these errors were encountered: