HTTP GET help
Moderators: grovkillen, Stuntteam, TD-er
HTTP GET help
Hi,
i would like send direct from my devices info to this web (bellow), but i test it and not working, anyone who can help me ?
http://in.zivyobraz.eu/?import_key=secureKey&TASK=VALUE
I would like send for example 5 tasks and also 5 values
Thank
i would like send direct from my devices info to this web (bellow), but i test it and not working, anyone who can help me ?
http://in.zivyobraz.eu/?import_key=secureKey&TASK=VALUE
I would like send for example 5 tasks and also 5 values
Thank
Re: HTTP GET help
That server redirects immediately from http:// to https:// and that's not (yet) supported by ESPEasy ![Verward :?](./images/smilies/icon_e_confused.gif)
![Verward :?](./images/smilies/icon_e_confused.gif)
/Ton (PayPal.me)
Re: HTTP GET help
Then check your server logs on that site to see why it's not accepted, maybe you need to use PostToHTTP instead of SendToHTTP ? Or some credentials should be included?
/Ton (PayPal.me)
Re: HTTP GET help
No extra credentials need, because "login" is the "secureKey"
http://in.zivyobraz.eu/?import_key=secureKey&TASK=VALUE
Pls i need know step by step, what to configure, becase I dont know what i do wrong.... :/
Thank
Re: HTTP GET help
This url redirect you to https, because user id not exist, i am not able here post my id (in this case the url not redirect co https)
System realy working with http get
Re: HTTP GET help
No, that can be just fine, but please show your controller configuration (what controller are you using?) (you should mask or remove the secureKey), and did you enable the checkbox for that controller on the device settings page?
/Ton (PayPal.me)
Re: HTTP GET help
I use:
generic http
use hostname
Controller Hostname: in.zivyobraz.eu/?import_key=xxxxxxxxx&
.
.
.
Now testing
Controller Publish: %vname1%=%val1%
Enabled yes....
I think problem is in Controller Publish. Can you help pls, for exact formula
Device:
task1
name: vname1
Values: val1
Last edited by TD-er on 15 Jan 2024, 20:50, edited 1 time in total.
Reason: Removed user account info
Reason: Removed user account info
Re: HTTP GET help
Did you also enable the Controller checkbox on the Device settings page?
You might want to edit your previous message, I think there is some data that shouldn't be there![Geschokt :shock:](./images/smilies/icon_eek.gif)
You might want to edit your previous message, I think there is some data that shouldn't be there
![Geschokt :shock:](./images/smilies/icon_eek.gif)
/Ton (PayPal.me)
Re: HTTP GET help
Yes, for the device that's supposed to have the data sent out, the Controller checkbox for Generic HTTP should be enabled.
/Ton (PayPal.me)
Re: HTTP GET help
It does look fine to me, what is the value name used? something common like temp ?
Can you view the serial log, to see if something useful is being shown there when the controller is publishing the data to the url?
Can you view the serial log, to see if something useful is being shown there when the controller is publishing the data to the url?
/Ton (PayPal.me)
Re: HTTP GET help
Hm, thats the problem.... I dont check before
162762: HTTP : C008 in.zivyobraz.eu/?import_key=XXXXXXXXX& GET... failed HTTP code: -1 connection failed
162763: HTTP : C008 connection failed (220/0)
162772: ADC : Analog value: 4 = 4.00
But this exactl url normally working in other devives as http get. Any idea ?
Tnx
Re: HTTP GET help
Can the hostname be resolved by the DNS set in ESPEasy?
Also I don't see the task value in the GET url in the logs
Also I don't see the task value in the GET url in the logs
Re: HTTP GET help
In the controller you only need to put the hostname and not the http:// prefix, nor anything else of the URL.
So I think you should use something like this as "publish" block:
So I think you should use something like this as "publish" block:
Code: Select all
/?import_key=xxxxxxxxx&TASK=[adc#Analog]
Re: HTTP GET help
Also the timeout should be set to 1000 msec when connecting to an external host.
Re: HTTP GET help
Thank to TD-er for a help... !
I send also pic for a setup, maybee help someone in future...
I send also pic for a setup, maybee help someone in future...
Who is online
Users browsing this forum: Google [Bot] and 47 guests