Hourly forecast question


Can someone explain this hourly forecast to me?
It says 3=3 hs from now, so 0 should mean 0 hs from now, yet as in the example it says 1 hour from now, and there’s a 0. 0 and 1 are giving different numbers. 0 also different than the current wi
So what I need to write to have the next hour, 0,0 or 0,1?
And what is plus days*24 means?

Here is how I think I need do

$wf(temp, 0, 1)$°$wi(tempu)$ > 1 h from now
$wf(temp, 0, 2)$°$wi(tempu)$ > 2 hs from now
$wf(temp, 0, 4)$°$wi(tempu)$ > 4 hs from now
Etc
And
$wf(temp, 1, 0)$°$wi(tempu)$ >1 days aka 24 hs from now
$wf(temp, 2, 0)$°$wi(tempu)$ > 2 days from now
Etc

Please correct me and explain the way to do, thanks.

Hi there,

Referring to this reference on Kustom website:

Syntax
wf(type, day, [hours])
Arguments
**type**: Info type, see examples
**day**: Forecast day index (0 is today)
**hours**: Forecast hours offset (for hourly weather, 3 means 3 **hours** from now plus **days** * 24)

Let say we have these parameters:

Right now the date and time is:
Monday, September 24, 2024 • 15:00

$wf(cond, 0, 3)$ ➞ today’s weather condition in the next 3 hours (today at 18:00)

$wf(cond, 1, 3)$ ➞ tomorrow’s weather condition in the next 3 hours from the same hour as right now (Sep 25 at 18:00)

$wf(cond, 1, 0)$ ➞ tomorrow’s weather condition at the same hour as right now (Sep 25 at 15:00)

I hope this helps.

:smiling_face::+1:

Hi, thanks for replying.
So the day part is easy and logical. But with the hours it’s not clear yet. You say in the next 3 hours, and after you say, at 18:00. That is an exact time, while the first is an interval.
And what’s the difference between 0,0 and 0,1?
In any case 0 hours later is now, that somehow means 1 hour later, this is the thing that is not clear to me.

18:00 is as the starting period of the forecast, not exactly the weather at 18:00.

The 2nd parameter/argument indicates the date, and the 3rd one indicate the time (in hour).

Perhaps there was a typo in the description. It was supposed to be 0, 1 (today, in next hour), not 0, 0 .

.

Ah, that would explain it. So I simply write 0,1 for 1 hour later, and ignore 0,0. Thanks :+1:

Yup.

You’re welcome.

Supposed it does exist 0, 0 ➞ that means today right now.
So, these must be the same:

  • wf(cond, 0, 0)
  • wf(cond, 0)
    Why bother add the 3rd argument of zero then?

:face_with_hand_over_mouth: