# Calling an external service and receiving the Response in a variable?

**URL:** <https://community.homey.app/t/calling-an-external-service-and-receiving-the-response-in-a-variable/12445>\
**Category:** Developers\
**Tags:** app, tools\
**Created:** [April 29, 2019, 4:36pm UTC](https://community.homey.app/t/calling-an-external-service-and-receiving-the-response-in-a-variable/12445 "2019-04-29T16:36:27Z")\
**Posts on this page:** 9\
**Page:** 3

<div class="post-metadata">

**Author:** ![Philipp\_Karl](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/philipp_karl/32/12702_2.png) [@Philipp\_Karl](https://community.homey.app/u/Philipp_Karl)\
**Post date:** [May 4, 2020, 10:57am UTC](https://community.homey.app/t/calling-an-external-service-and-receiving-the-response-in-a-variable/12445/41 "2020-05-04T10:57:17Z")

</div>

Hi @Erik erik,

I have a flow that turns on the sprinkler.

As a condition I want to set that it only switches on when the rain forecast (rainTo) from the weather service is 0 and the weather (description) is "Wolkenlos) .

Furthermore it should switch on either 5 or 10 minutes, depending on the weather forecast, if sunny then 10 minutes, if cloudy only 5 minutes. Then I would be able to do it myself, but I need the values rain ($.forecasts[0].rainTo) and weather forecast ($.forecasts[0].symbol.description) as conditions, he should get these values with the JSON query from the weather service: [http://daten.buergernetz.bz.it/services/weather/district/6/bulletin?format=json&lang=de](http://daten.buergernetz.bz.it/services/weather/district/6/bulletin?format=json&lang=de)

This are may flows:

[https://homey.app/f/v69lv7](https://homey.app/f/v69lv7)

[https://homey.app/f/idflv7](https://homey.app/f/idflv7)

[https://homey.app/f/cVhlv7](https://homey.app/f/cVhlv7)

Thanks a lot

Philipp

---

<div class="post-metadata">

**Author:** ![Philipp\_Karl](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/philipp_karl/32/12702_2.png) [@Philipp\_Karl](https://community.homey.app/u/Philipp_Karl)\
**Post date:** [May 11, 2020, 11:05am UTC](https://community.homey.app/t/calling-an-external-service-and-receiving-the-response-in-a-variable/12445/42 "2020-05-11T11:05:25Z")

</div>

hi @Erik,

do you think it’s possibile to find a solution to make it working with the logic app from homey?

today i noticed that betterlogic has problem with this text “Bedeckt, mäßiger Regen”.

Best regards

Philipp

---

<div class="post-metadata">

**Author:** ![Philipp\_Karl](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/philipp_karl/32/12702_2.png) [@Philipp\_Karl](https://community.homey.app/u/Philipp_Karl)\
**Post date:** [May 13, 2020, 10:33am UTC](https://community.homey.app/t/calling-an-external-service-and-receiving-the-response-in-a-variable/12445/43 "2020-05-13T10:33:20Z")

</div>

Hello @Erik,

i tried to

make a http request flow card which write a Homey Logik Variable:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/b/8b2566d9cb0a41c81b4e5920cad39a424882408e.jpeg)

What i have to insert in the “JSON formatted query parameters”?

But i’m getting this error “missing tag in flow card”.

Could you help meß

thanks

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [May 13, 2020, 11:59am UTC](https://community.homey.app/t/calling-an-external-service-and-receiving-the-response-in-a-variable/12445/44 "2020-05-13T11:59:00Z")

</div>

> [@Philipp\_Karl](#):
>
> “missing tag in flow card”.

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/0/1074e6c328bdcb425fe9b8b52da71028d3c87403.png)

You have no value entered in this card.

---

<div class="post-metadata">

**Author:** ![Philipp\_Karl](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/philipp_karl/32/12702_2.png) [@Philipp\_Karl](https://community.homey.app/u/Philipp_Karl)\
**Post date:** [May 13, 2020, 12:23pm UTC](https://community.homey.app/t/calling-an-external-service-and-receiving-the-response-in-a-variable/12445/45 "2020-05-13T12:23:15Z")

</div>

hello, i have avalue, also if i send to test a message i have the same error message, i think it’s the and flow but i can’t find the error

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [May 13, 2020, 12:43pm UTC](https://community.homey.app/t/calling-an-external-service-and-receiving-the-response-in-a-variable/12445/46 "2020-05-13T12:43:52Z")

</div>

U also typed the 2 brackets {} in the 2nd field?

---

<div class="post-metadata">

**Author:** ![Philipp\_Karl](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/philipp_karl/32/12702_2.png) [@Philipp\_Karl](https://community.homey.app/u/Philipp_Karl)\
**Post date:** [May 13, 2020, 2:01pm UTC](https://community.homey.app/t/calling-an-external-service-and-receiving-the-response-in-a-variable/12445/47 "2020-05-13T14:01:59Z")

</div>

yes, but same error ☹

---

<div class="post-metadata">

**Author:** ![Philipp\_Karl](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/philipp_karl/32/12702_2.png) [@Philipp\_Karl](https://community.homey.app/u/Philipp_Karl)\
**Post date:** [May 15, 2020, 1:44pm UTC](https://community.homey.app/t/calling-an-external-service-and-receiving-the-response-in-a-variable/12445/48 "2020-05-15T13:44:26Z")

</div>

nobody cant’help?

---

<div class="post-metadata">

**Author:** ![Philipp\_Karl](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/philipp_karl/32/12702_2.png) [@Philipp\_Karl](https://community.homey.app/u/Philipp_Karl)\
**Post date:** [May 18, 2020, 10:57am UTC](https://community.homey.app/t/calling-an-external-service-and-receiving-the-response-in-a-variable/12445/49 "2020-05-18T10:57:50Z")

</div>

Hello @Erik,

could you help me to solve the flow with HTTP get an the Homey Logik Variables?

Simple if the value extraxted from the JSON Url is corrisponding to a specific text (like “wolkig”), then set a homey Logic Variable to YES/NO.

thanks

Thanks

[Previous page](https://community.homey.app/t/calling-an-external-service-and-receiving-the-response-in-a-variable/12445.md?page=2)
