# Hourly rain forecast

**URL:** <https://community.homey.app/t/hourly-rain-forecast/109972>\
**Category:** Questions & Help\
**Tags:** homeyscript, advancedflow\
**Created:** [May 16, 2024, 12:31pm UTC](https://community.homey.app/t/hourly-rain-forecast/109972 "2024-05-16T12:31:43Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [May 16, 2024, 12:58pm UTC](https://community.homey.app/t/hourly-rain-forecast/109972/2 "2024-05-16T12:58:53Z")

</div>

To use that card’s output, you still have to declare the return value.  
(console.log is only for testing)  
Like shown in the demo code when you instert the card as new card.

 ![Screenshot_20240516-150514_Firefox](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/2/926a57df2b829e61379594e7da2f007834762564.jpeg)

BUT, your code does not return solely a number, but a string.  
So, you should use the “Run code and return text-tag” card instead.

The return value should be something like

```auto
return (`Location: ${liveweer.plaats}, Temperature: ${liveweer.temp}°C, Summary: ${liveweer.samenv}`);

```

But, probably your JSON paths aren’t correct yet, see my post quoting [Robert’s post from 2019](https://community.homey.app/t/get-value-from-homeyscript-in-a-variable-that-can-be-used-in-advanced-flow/107990/13)

---

_[View the full topic](https://community.homey.app/t/hourly-rain-forecast/109972)._
