# How to use the GET Web logic flow card and retrieve return values

**URL:** <https://community.homey.app/t/how-to-use-the-get-web-logic-flow-card-and-retrieve-return-values/43863>\
**Category:** Questions & Help\
**Created:** [March 1, 2021, 6:04pm UTC](https://community.homey.app/t/how-to-use-the-get-web-logic-flow-card-and-retrieve-return-values/43863 "2021-03-01T18:04:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mathieu\_VAN](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mathieu_van/32/12410_2.png) [@Mathieu\_VAN](https://community.homey.app/u/Mathieu_VAN)\
**Post date:** [March 1, 2021, 6:04pm UTC](https://community.homey.app/t/how-to-use-the-get-web-logic-flow-card-and-retrieve-return-values/43863/1 "2021-03-01T18:04:38Z")

</div>

Hi There,

I need help to connect homey to my thermostat.  
So I have to communicate through web requests…should be easy…but I’m facing misunderstand regarding the way to use it with homey cards.  
So my request is the folowing :  
[http://192.168.x.x/conditions.cgi?token=abcdefgh](http://192.168.x.x/conditions.cgi?token=abcdefgh)  
This returns a very simple json with temperature and humidity =\> here is the complete feedback  
{  
“temperature”:23.7521,  
“humidity”:49.6349  
}

My question is : how to extract those 2 values and put them into logic variables.

I also tryed the Http Request app without any chance.

Is there someone to help me ?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [March 1, 2021, 6:48pm UTC](https://community.homey.app/t/how-to-use-the-get-web-logic-flow-card-and-retrieve-return-values/43863/2 "2021-03-01T18:48:43Z")

</div>

> [@Mathieu\_VAN](#):
>
> I also tryed the Http Request app without any chance.

That’s the app you need to use, though. What exactly did you try?

---

<div class="post-metadata">

**Author:** ![Mathieu\_VAN](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mathieu_van/32/12410_2.png) [@Mathieu\_VAN](https://community.homey.app/u/Mathieu_VAN)\
**Post date:** [March 1, 2021, 7:53pm UTC](https://community.homey.app/t/how-to-use-the-get-web-logic-flow-card-and-retrieve-return-values/43863/3 "2021-03-01T19:53:31Z")

</div>

I try to do this but not sure I’m in the right way.  
So when I click on the variable I didn’t reach anything.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/7/f7030e69e0329724fc776f4c1ecc9fe41a749720.jpeg) ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/9/99c3a01a430a63a796123a8e70a4e7a9b45f622f.jpeg)

---

<div class="post-metadata">

**Author:** ![Mathieu\_VAN](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mathieu_van/32/12410_2.png) [@Mathieu\_VAN](https://community.homey.app/u/Mathieu_VAN)\
**Post date:** [March 1, 2021, 7:53pm UTC](https://community.homey.app/t/how-to-use-the-get-web-logic-flow-card-and-retrieve-return-values/43863/4 "2021-03-01T19:53:59Z")

</div>

Sorry my app is in French

---

<div class="post-metadata">

**Author:** ![Mathieu\_VAN](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mathieu_van/32/12410_2.png) [@Mathieu\_VAN](https://community.homey.app/u/Mathieu_VAN)\
**Post date:** [March 1, 2021, 11:07pm UTC](https://community.homey.app/t/how-to-use-the-get-web-logic-flow-card-and-retrieve-return-values/43863/5 "2021-03-01T23:07:13Z")

</div>

I also tryed to type this in http request app but the variable list still left empty… not completely sure for the path.

{“method”:“get”,“protocol”:“http:”,“hostname”:“192.168.x.x”,“path”:"/conditions.cgi",“headers”:{“token”:“tokenid”}}

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [March 2, 2021, 6:19am UTC](https://community.homey.app/t/how-to-use-the-get-web-logic-flow-card-and-retrieve-return-values/43863/6 "2021-03-02T06:19:49Z")

</div>

The card you’re using requires the [Better Logic](https://homey.app/fr-fr/app/net.i-dev.betterlogic/Better-Logic/) app. In that app, you need to create a variable (called “variable” in your example).

Alternatively, there’s a “GET JSONpath trigger value” action (“THEN”) card available:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/e/8e733d0dcaac7f2e1c4ecc02a7cad70c592fd23c.png)

With that card, you can use the same URL and JSONpath expression, and let it execute a trigger (which you can name yourself, let’s say `my_trigger`).

Then in another flow, you can act on that trigger using the trigger (“WHEN”) card “JSONpath value”:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/4/04ef3c43e040bd8cc95bab95425019beeaa924f8.png)

For that card, you enter the trigger name that you used in the previous step (`my_trigger`).

The card has a tag for the received value.

---

<div class="post-metadata">

**Author:** ![Mathieu\_VAN](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mathieu_van/32/12410_2.png) [@Mathieu\_VAN](https://community.homey.app/u/Mathieu_VAN)\
**Post date:** [March 2, 2021, 5:30pm UTC](https://community.homey.app/t/how-to-use-the-get-web-logic-flow-card-and-retrieve-return-values/43863/7 "2021-03-02T17:30:54Z")

</div>

Hi Robert,

Thanks for the detailed help !  
I made it working.

Have a nice evening

Mathieu
