This object is in archive! 

Push value to variable via http

Guest shared this question 7 years ago
Need Answer

Is it possible to push a value (time) via http to a variable?


Thanks.

DUC750

Replies (5)

photo
1

No ideas?

photo
1

yes, use API

photo
1

But how? I can't find any commands for use with variables.

photo
1

Using php to set a virtual device


$url = "https://my.zipato.com:443/zipato-web/remoting/attribute/set?serial=xxxxxxxxxxxxxxxxxxx&ep=9d123456-b4c8-415b-a9bc-d04b0bc78452&apiKey=xxxxxxxxxxxxxxxxxxxxxx&value1=" . $infos->current_state->temperature . "&value2=" . $infos->target->temperature[0] . "&value3=" . $away;

$res = file_get_contents($url);


ep is the endpoint UID of my virtual device if I can remember

photo
1

Hello Jean-Louis,


thanks a lot, I've tested it with virtuel devices, but i haven't found a possibilitie to handle the format 'time'. But I will test it again if I'm at home.


Best regards

DUC750

Leave a Comment
 
Attach a file