HTTP Request for dummy device

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
HeinrichB
Normal user
Posts: 6
Joined: 08 Mar 2020, 17:59

HTTP Request for dummy device

#1 Post by HeinrichB » 08 Mar 2020, 18:02

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
Attachments
4387CD7B-7658-4DA4-A0F2-06A0C35B1231.jpeg
4387CD7B-7658-4DA4-A0F2-06A0C35B1231.jpeg (169.22 KiB) Viewed 5009 times

TD-er
Core team member
Posts: 2768
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: HTTP Request for dummy device

#2 Post by TD-er » 08 Mar 2020, 21:32

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

HeinrichB
Normal user
Posts: 6
Joined: 08 Mar 2020, 17:59

Re: HTTP Request for dummy device

#3 Post by HeinrichB » 09 Mar 2020, 06:54

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

GravityRZ
Normal user
Posts: 107
Joined: 23 Dec 2019, 21:24

Re: HTTP Request for dummy device

#4 Post by GravityRZ » 14 Mar 2020, 20:06

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?

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests