Last time stamped value from array

#1

Hi,

I am using a exec block to fetch temperature and humidity from my verisure system. The output gives several timestamped values in return. I am only interested in the "newest / current" value. Is there some function I can use to filter out the latest temperature and humidity based on the time?

My flow:

The output:

br
Stian

0 Likes

#2

Here's the documentation of JavaScript array. See if you find the way
https://www.w3schools.com/js/js_arrays.asp

1 Like

#3

And remember that an array can also contain arrays!

0 Likes