Page 1 of 1

HTTP Request for dummy device

Posted: 08 Mar 2020, 18:02
by HeinrichB
Hello

i have attached a dummy device in espeasy and now i am struggeling to specify the specific
http request.

could somehow please drop me some hints or the corresponding request for?

many thanks in advance

Re: HTTP Request for dummy device

Posted: 08 Mar 2020, 21:32
by TD-er
The screenshot does look like an old version.
Also can you please elaborate a bit on what you mean by the http request?
Either you want to send the data somewhere?
Or do you want to retrieve the data from some other computer?

Have you looked at the controllers? (sending data from a task) or the rules (very powerful scripting options to do just about anything with the device)
Controllers: https://espeasy.readthedocs.io/en/lates ... oller.html
Rules: https://espeasy.readthedocs.io/en/lates ... Rules.html

For the rules, I would suggest to have a look at the following commands:
sendToHttp
TaskRun
taskValueSet

Re: HTTP Request for dummy device

Posted: 09 Mar 2020, 06:54
by HeinrichB
Hello

thanks for your reply and i try to sort out a little better.
I would like to get the data by an active request in the way http://<ip_device>... and in detail for the voltage-value.


Thank you

Re: HTTP Request for dummy device

Posted: 14 Mar 2020, 20:06
by GravityRZ
i think you can not get a single value.

what you can get is a json string with all the values
if you have node-red it is easy to get a single value from it

http://192.168.1.129/json?view=sensorupdate

otherwise the idea is to send the value from espeasy to another application by using http or MQTT


where do you want to send the value?