Filtering an array of objects

From 'Storm Glass' I get weather forecast data which arrives as an array of 240 objects (hourly forecast for 10 days - 24 x 10). Each object takes the format of;

{
  "airTemperature": {
    "dwd": 9.91,
    "noaa": 9.35,
    "sg": 9.91
  },
  "cloudCover": {
    "dwd": 98.6,
    "noaa": 100,
    "sg": 98.6
  },
  "gust": {
    "dwd": 4.47,
    "noaa": 12.96,
    "sg": 4.47
  },
  "precipitation": {
    "dwd": 0.81,
    "noaa": 0.07,
    "sg": 0.81
  },
  "time": "2022-11-17T16:00:00+00:00",
  "windDirection": {
    "noaa": 281.02,
    "sg": 281.02
  },
  "windSpeed": {
    "noaa": 7.83,
    "sg": 7.83
  }
}

I iterate over the array, and put the data into order for plotting on a flexdash chart;

const myArray = msg.payload.hours
const outputArray = []
for (let i = 0; i < myArray.length; i++) {
    a = (myArray[i])
    const date = new Date(a.time)
    const ts = date.getTime() / 1000
    const b = [ts, a.airTemperature.sg, a.windSpeed.sg, a.precipitation.sg]
    outputArray.push(b)
    }

...and it works great, however, I would like to know if it's possible to filter the 240 objects, so for example, I could retrieve objects 25 to 48 (just tomorrows forecast) or objects 25 - 96 (following 3 days forecast).

Attached example flow + sample data (uses standard palette nodes)

[{"id":"ac290ada97c4bf52","type":"inject","z":"1543d308b342690a","name":"Wednesday forecast","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[{\"airTemperature\":{\"dwd\":8.23,\"noaa\":8.11,\"sg\":8.23},\"cloudCover\":{\"dwd\":63.52,\"noaa\":50.1,\"sg\":63.52},\"gust\":{\"dwd\":7.68,\"noaa\":12.53,\"sg\":7.68},\"precipitation\":{\"dwd\":0,\"noaa\":0,\"sg\":0},\"time\":\"2022-11-16T00:00:00+00:00\",\"windDirection\":{\"noaa\":179.8,\"sg\":179.8},\"windSpeed\":{\"noaa\":5.85,\"sg\":5.85}},{\"airTemperature\":{\"dwd\":7.98,\"noaa\":7.81,\"sg\":7.98},\"cloudCover\":{\"dwd\":82.3,\"noaa\":65.97,\"sg\":82.3},\"gust\":{\"dwd\":9.37,\"noaa\":11.8,\"sg\":9.37},\"precipitation\":{\"dwd\":0,\"noaa\":0,\"sg\":0},\"time\":\"2022-11-16T01:00:00+00:00\",\"windDirection\":{\"noaa\":175.67,\"sg\":175.67},\"windSpeed\":{\"noaa\":5.41,\"sg\":5.41}},{\"airTemperature\":{\"dwd\":8,\"noaa\":7.5,\"sg\":8},\"cloudCover\":{\"dwd\":62.3,\"noaa\":81.83,\"sg\":62.3},\"gust\":{\"dwd\":9.24,\"noaa\":11.06,\"sg\":9.24},\"precipitation\":{\"dwd\":0,\"noaa\":0,\"sg\":0},\"time\":\"2022-11-16T02:00:00+00:00\",\"windDirection\":{\"noaa\":171.53,\"sg\":171.53},\"windSpeed\":{\"noaa\":4.98,\"sg\":4.98}},{\"airTemperature\":{\"dwd\":7.39,\"noaa\":7.2,\"sg\":7.39},\"cloudCover\":{\"dwd\":51.37,\"noaa\":97.7,\"sg\":51.37},\"gust\":{\"dwd\":6.86,\"noaa\":10.32,\"sg\":6.86},\"precipitation\":{\"dwd\":0,\"noaa\":0,\"sg\":0},\"time\":\"2022-11-16T03:00:00+00:00\",\"windDirection\":{\"noaa\":167.4,\"sg\":167.4},\"windSpeed\":{\"noaa\":4.54,\"sg\":4.54}},{\"airTemperature\":{\"dwd\":6.94,\"noaa\":6.69,\"sg\":6.94},\"cloudCover\":{\"dwd\":64.65,\"noaa\":70.87,\"sg\":64.65},\"gust\":{\"dwd\":6.04,\"noaa\":10.07,\"sg\":6.04},\"precipitation\":{\"dwd\":0,\"noaa\":0,\"sg\":0},\"time\":\"2022-11-16T04:00:00+00:00\",\"windDirection\":{\"noaa\":164.5,\"sg\":164.5},\"windSpeed\":{\"noaa\":4.34,\"sg\":4.34}},{\"airTemperature\":{\"dwd\":6.42,\"noaa\":6.18,\"sg\":6.42},\"cloudCover\":{\"dwd\":42.25,\"noaa\":44.03,\"sg\":42.25},\"gust\":{\"dwd\":6.33,\"noaa\":9.82,\"sg\":6.33},\"precipitation\":{\"dwd\":0,\"noaa\":0,\"sg\":0},\"time\":\"2022-11-16T05:00:00+00:00\",\"windDirection\":{\"noaa\":161.6,\"sg\":161.6},\"windSpeed\":{\"noaa\":4.15,\"sg\":4.15}},{\"airTemperature\":{\"dwd\":5.9,\"noaa\":5.68,\"sg\":5.9},\"cloudCover\":{\"dwd\":71.94,\"noaa\":17.2,\"sg\":71.94},\"gust\":{\"dwd\":6.47,\"noaa\":9.57,\"sg\":6.47},\"precipitation\":{\"dwd\":0,\"noaa\":0,\"sg\":0},\"time\":\"2022-11-16T06:00:00+00:00\",\"windDirection\":{\"noaa\":158.7,\"sg\":158.7},\"windSpeed\":{\"noaa\":3.95,\"sg\":3.95}},{\"airTemperature\":{\"dwd\":6.11,\"noaa\":5.91,\"sg\":6.11},\"cloudCover\":{\"dwd\":69.71,\"noaa\":31.5,\"sg\":69.71},\"gust\":{\"dwd\":6.27,\"noaa\":9.39,\"sg\":6.27},\"precipitation\":{\"dwd\":0,\"noaa\":0,\"sg\":0},\"time\":\"2022-11-16T07:00:00+00:00\",\"windDirection\":{\"noaa\":157.53,\"sg\":157.53},\"windSpeed\":{\"noaa\":3.88,\"sg\":3.88}},{\"airTemperature\":{\"dwd\":6.4,\"noaa\":6.13,\"sg\":6.4},\"cloudCover\":{\"dwd\":79.13,\"noaa\":45.8,\"sg\":79.13},\"gust\":{\"dwd\":6.03,\"noaa\":9.2,\"sg\":6.03},\"precipitation\":{\"dwd\":0,\"noaa\":0,\"sg\":0},\"time\":\"2022-11-16T08:00:00+00:00\",\"windDirection\":{\"noaa\":156.36,\"sg\":156.36},\"windSpeed\":{\"noaa\":3.82,\"sg\":3.82}},{\"airTemperature\":{\"dwd\":7.18,\"noaa\":6.36,\"sg\":7.18},\"cloudCover\":{\"dwd\":82.28,\"noaa\":60.1,\"sg\":82.28},\"gust\":{\"dwd\":6.92,\"noaa\":9.02,\"sg\":6.92},\"precipitation\":{\"dwd\":0,\"noaa\":0,\"sg\":0},\"time\":\"2022-11-16T09:00:00+00:00\",\"windDirection\":{\"noaa\":155.19,\"sg\":155.19},\"windSpeed\":{\"noaa\":3.75,\"sg\":3.75}},{\"airTemperature\":{\"dwd\":7.99,\"noaa\":7.51,\"sg\":7.99},\"cloudCover\":{\"dwd\":77.09,\"noaa\":60.6,\"sg\":77.09},\"gust\":{\"dwd\":7.88,\"noaa\":7.87,\"sg\":7.88},\"precipitation\":{\"dwd\":0,\"noaa\":0.05,\"sg\":0},\"time\":\"2022-11-16T10:00:00+00:00\",\"windDirection\":{\"noaa\":154.97,\"sg\":154.97},\"windSpeed\":{\"noaa\":3.72,\"sg\":3.72}},{\"airTemperature\":{\"dwd\":8.68,\"noaa\":8.66,\"sg\":8.68},\"cloudCover\":{\"dwd\":66.79,\"noaa\":61.1,\"sg\":66.79},\"gust\":{\"dwd\":7.61,\"noaa\":6.71,\"sg\":7.61},\"precipitation\":{\"dwd\":0,\"noaa\":0.11,\"sg\":0},\"time\":\"2022-11-16T11:00:00+00:00\",\"windDirection\":{\"noaa\":154.75,\"sg\":154.75},\"windSpeed\":{\"noaa\":3.68,\"sg\":3.68}},{\"airTemperature\":{\"dwd\":9.36,\"noaa\":9.81,\"sg\":9.36},\"cloudCover\":{\"dwd\":90.67,\"noaa\":61.6,\"sg\":90.67},\"gust\":{\"dwd\":8.27,\"noaa\":5.55,\"sg\":8.27},\"precipitation\":{\"dwd\":0,\"noaa\":0.16,\"sg\":0},\"time\":\"2022-11-16T12:00:00+00:00\",\"windDirection\":{\"noaa\":154.53,\"sg\":154.53},\"windSpeed\":{\"noaa\":3.65,\"sg\":3.65}},{\"airTemperature\":{\"dwd\":9.53,\"noaa\":9.33,\"sg\":9.53},\"cloudCover\":{\"dwd\":98.84,\"noaa\":42.73,\"sg\":98.84},\"gust\":{\"dwd\":7.96,\"noaa\":5.75,\"sg\":7.96},\"precipitation\":{\"dwd\":0,\"noaa\":0.11,\"sg\":0},\"time\":\"2022-11-16T13:00:00+00:00\",\"windDirection\":{\"noaa\":145.26,\"sg\":145.26},\"windSpeed\":{\"noaa\":3.44,\"sg\":3.44}},{\"airTemperature\":{\"dwd\":9.71,\"noaa\":8.86,\"sg\":9.71},\"cloudCover\":{\"dwd\":76.29,\"noaa\":23.87,\"sg\":76.29},\"gust\":{\"dwd\":5.01,\"noaa\":5.94,\"sg\":5.01},\"precipitation\":{\"dwd\":0,\"noaa\":0.05,\"sg\":0},\"time\":\"2022-11-16T14:00:00+00:00\",\"windDirection\":{\"noaa\":136,\"sg\":136},\"windSpeed\":{\"noaa\":3.22,\"sg\":3.22}},{\"airTemperature\":{\"dwd\":9.64,\"noaa\":8.38,\"sg\":9.64},\"cloudCover\":{\"dwd\":79.04,\"noaa\":5,\"sg\":79.04},\"gust\":{\"dwd\":5.56,\"noaa\":6.13,\"sg\":5.56},\"precipitation\":{\"dwd\":0,\"noaa\":0,\"sg\":0},\"time\":\"2022-11-16T15:00:00+00:00\",\"windDirection\":{\"noaa\":126.73,\"sg\":126.73},\"windSpeed\":{\"noaa\":3.01,\"sg\":3.01}},{\"airTemperature\":{\"dwd\":9.06,\"noaa\":8.26,\"sg\":9.06},\"cloudCover\":{\"dwd\":99.21,\"noaa\":36.67,\"sg\":99.21},\"gust\":{\"dwd\":6.95,\"noaa\":7.4,\"sg\":6.95},\"precipitation\":{\"dwd\":0.01,\"noaa\":0.01,\"sg\":0.01},\"time\":\"2022-11-16T16:00:00+00:00\",\"windDirection\":{\"noaa\":127.57,\"sg\":127.57},\"windSpeed\":{\"noaa\":3.51,\"sg\":3.51}},{\"airTemperature\":{\"dwd\":8.63,\"noaa\":8.14,\"sg\":8.63},\"cloudCover\":{\"dwd\":74.34,\"noaa\":68.33,\"sg\":74.34},\"gust\":{\"dwd\":7.09,\"noaa\":8.66,\"sg\":7.09},\"precipitation\":{\"dwd\":0,\"noaa\":0.03,\"sg\":0},\"time\":\"2022-11-16T17:00:00+00:00\",\"windDirection\":{\"noaa\":128.4,\"sg\":128.4},\"windSpeed\":{\"noaa\":4.01,\"sg\":4.01}},{\"airTemperature\":{\"dwd\":7.88,\"noaa\":8.01,\"sg\":7.88},\"cloudCover\":{\"dwd\":50.8,\"noaa\":100,\"sg\":50.8},\"gust\":{\"dwd\":5.89,\"noaa\":9.93,\"sg\":5.89},\"precipitation\":{\"dwd\":0,\"noaa\":0.04,\"sg\":0},\"time\":\"2022-11-16T18:00:00+00:00\",\"windDirection\":{\"noaa\":129.24,\"sg\":129.24},\"windSpeed\":{\"noaa\":4.51,\"sg\":4.51}},{\"airTemperature\":{\"dwd\":7.25,\"noaa\":7.8,\"sg\":7.25},\"cloudCover\":{\"dwd\":84.92,\"noaa\":100,\"sg\":84.92},\"gust\":{\"dwd\":5.77,\"noaa\":9.12,\"sg\":5.77},\"precipitation\":{\"dwd\":0,\"noaa\":0.05,\"sg\":0},\"time\":\"2022-11-16T19:00:00+00:00\",\"windDirection\":{\"noaa\":122.01,\"sg\":122.01},\"windSpeed\":{\"noaa\":4.03,\"sg\":4.03}},{\"airTemperature\":{\"dwd\":7.13,\"noaa\":7.59,\"sg\":7.13},\"cloudCover\":{\"dwd\":98.25,\"noaa\":100,\"sg\":98.25},\"gust\":{\"dwd\":5.56,\"noaa\":8.32,\"sg\":5.56},\"precipitation\":{\"dwd\":0,\"noaa\":0.07,\"sg\":0},\"time\":\"2022-11-16T20:00:00+00:00\",\"windDirection\":{\"noaa\":114.77,\"sg\":114.77},\"windSpeed\":{\"noaa\":3.55,\"sg\":3.55}},{\"airTemperature\":{\"dwd\":6.85,\"noaa\":7.38,\"sg\":6.85},\"cloudCover\":{\"dwd\":100,\"noaa\":100,\"sg\":100},\"gust\":{\"dwd\":5.89,\"noaa\":7.51,\"sg\":5.89},\"precipitation\":{\"dwd\":0,\"noaa\":0.08,\"sg\":0},\"time\":\"2022-11-16T21:00:00+00:00\",\"windDirection\":{\"noaa\":107.54,\"sg\":107.54},\"windSpeed\":{\"noaa\":3.07,\"sg\":3.07}},{\"airTemperature\":{\"dwd\":6.7,\"noaa\":7.62,\"sg\":6.7},\"cloudCover\":{\"dwd\":100,\"noaa\":100,\"sg\":100},\"gust\":{\"dwd\":5.42,\"noaa\":7.99,\"sg\":5.42},\"precipitation\":{\"dwd\":0,\"noaa\":0.41,\"sg\":0},\"time\":\"2022-11-16T22:00:00+00:00\",\"windDirection\":{\"noaa\":86.52,\"sg\":86.52},\"windSpeed\":{\"noaa\":3.33,\"sg\":3.33}},{\"airTemperature\":{\"dwd\":6.89,\"noaa\":7.86,\"sg\":6.89},\"cloudCover\":{\"dwd\":100,\"noaa\":100,\"sg\":100},\"gust\":{\"dwd\":5.11,\"noaa\":8.47,\"sg\":5.11},\"precipitation\":{\"dwd\":0,\"noaa\":0.73,\"sg\":0},\"time\":\"2022-11-16T23:00:00+00:00\",\"windDirection\":{\"noaa\":65.51,\"sg\":65.51},\"windSpeed\":{\"noaa\":3.59,\"sg\":3.59}},{\"airTemperature\":{\"dwd\":7.12,\"noaa\":8.11,\"sg\":7.12},\"cloudCover\":{\"dwd\":100,\"noaa\":100,\"sg\":100},\"gust\":{\"dwd\":5.78,\"noaa\":8.95,\"sg\":5.78},\"precipitation\":{\"dwd\":0.13,\"noaa\":1.06,\"sg\":0.13},\"time\":\"2022-11-17T00:00:00+00:00\",\"windDirection\":{\"noaa\":44.49,\"sg\":44.49},\"windSpeed\":{\"noaa\":3.85,\"sg\":3.85}},{\"airTemperature\":{\"dwd\":7.47,\"noaa\":8.2,\"sg\":7.47},\"cloudCover\":{\"dwd\":100,\"noaa\":100,\"sg\":100},\"gust\":{\"dwd\":6.96,\"noaa\":10.24,\"sg\":6.96},\"precipitation\":{\"dwd\":1.16,\"noaa\":1.33,\"sg\":1.16},\"time\":\"2022-11-17T01:00:00+00:00\",\"windDirection\":{\"noaa\":31.71,\"sg\":31.71},\"windSpeed\":{\"noaa\":5.05,\"sg\":5.05}},{\"airTemperature\":{\"dwd\":8.34,\"noaa\":8.3,\"sg\":8.34},\"cloudCover\":{\"dwd\":100,\"noaa\":100,\"sg\":100},\"gust\":{\"dwd\":8.13,\"noaa\":11.52,\"sg\":8.13},\"precipitation\":{\"dwd\":0.73,\"noaa\":1.59,\"sg\":0.73},\"time\":\"2022-11-17T02:00:00+00:00\",\"windDirection\":{\"noaa\":18.92,\"sg\":18.92},\"windSpeed\":{\"noaa\":6.26,\"sg\":6.26}},{\"airTemperature\":{\"dwd\":8.95,\"noaa\":8.39,\"sg\":8.95},\"cloudCover\":{\"dwd\":100,\"noaa\":100,\"sg\":100},\"gust\":{\"dwd\":8.61,\"noaa\":12.81,\"sg\":8.61},\"precipitation\":{\"dwd\":0.48,\"noaa\":1.86,\"sg\":0.48},\"time\":\"2022-11-17T03:00:00+00:00\",\"windDirection\":{\"noaa\":6.14,\"sg\":6.14},\"windSpeed\":{\"noaa\":7.46,\"sg\":7.46}},{\"airTemperature\":{\"dwd\":9.32,\"noaa\":8.52,\"sg\":9.32},\"cloudCover\":{\"dwd\":100,\"noaa\":100,\"sg\":100},\"gust\":{\"dwd\":10.04,\"noaa\":11.18,\"sg\":10.04},\"precipitation\":{\"dwd\":0.79,\"noaa\":1.29,\"sg\":0.79},\"time\":\"2022-11-17T04:00:00+00:00\",\"windDirection\":{\"noaa\":355.82,\"sg\":355.82},\"windSpeed\":{\"noaa\":6.63,\"sg\":6.63}},{\"airTemperature\":{\"dwd\":9.54,\"noaa\":8.65,\"sg\":9.54},\"cloudCover\":{\"dwd\":100,\"noaa\":100,\"sg\":100},\"gust\":{\"dwd\":11.79,\"noaa\":9.55,\"sg\":11.79},\"precipitation\":{\"dwd\":1.3,\"noaa\":0.72,\"sg\":1.3},\"time\":\"2022-11-17T05:00:00+00:00\",\"windDirection\":{\"noaa\":345.51,\"sg\":345.51},\"windSpeed\":{\"noaa\":5.8,\"sg\":5.8}},{\"airTemperature\":{\"dwd\":9.82,\"noaa\":8.78,\"sg\":9.82},\"cloudCover\":{\"dwd\":100,\"noaa\":100,\"sg\":100},\"gust\":{\"dwd\":11.17,\"noaa\":7.92,\"sg\":11.17},\"precipitation\":{\"dwd\":0.6,\"noaa\":0.14,\"sg\":0.6},\"time\":\"2022-11-17T06:00:00+00:00\",\"windDirection\":{\"noaa\":335.19,\"sg\":335.19},\"windSpeed\":{\"noaa\":4.97,\"sg\":4.97}},{\"airTemperature\":{\"dwd\":9.88,\"noaa\":8.81,\"sg\":9.88},\"cloudCover\":{\"dwd\":100,\"noaa\":100,\"sg\":100},\"gust\":{\"dwd\":7.37,\"noaa\":7.88,\"sg\":7.37},\"precipitation\":{\"dwd\":0.85,\"noaa\":0.29,\"sg\":0.85},\"time\":\"2022-11-17T07:00:00+00:00\",\"windDirection\":{\"noaa\":325.06,\"sg\":325.06},\"windSpeed\":{\"noaa\":4.86,\"sg\":4.86}},{\"airTemperature\":{\"dwd\":9.86,\"noaa\":8.84,\"sg\":9.86},\"cloudCover\":{\"dwd\":99.72,\"noaa\":100,\"sg\":99.72},\"gust\":{\"dwd\":6.36,\"noaa\":7.85,\"sg\":6.36},\"precipitation\":{\"dwd\":0.19,\"noaa\":0.43,\"sg\":0.19},\"time\":\"2022-11-17T08:00:00+00:00\",\"windDirection\":{\"noaa\":314.94,\"sg\":314.94},\"windSpeed\":{\"noaa\":4.75,\"sg\":4.75}},{\"airTemperature\":{\"dwd\":9.97,\"noaa\":8.87,\"sg\":9.97},\"cloudCover\":{\"dwd\":100,\"noaa\":100,\"sg\":100},\"gust\":{\"dwd\":4.59,\"noaa\":7.82,\"sg\":4.59},\"precipitation\":{\"dwd\":1.07,\"noaa\":0.57,\"sg\":1.07},\"time\":\"2022-11-17T09:00:00+00:00\",\"windDirection\":{\"noaa\":304.81,\"sg\":304.81},\"windSpeed\":{\"noaa\":4.64,\"sg\":4.64}},{\"airTemperature\":{\"dwd\":10.23,\"noaa\":8.96,\"sg\":10.23},\"cloudCover\":{\"dwd\":100,\"noaa\":100,\"sg\":100},\"gust\":{\"dwd\":4.85,\"noaa\":8.95,\"sg\":4.85},\"precipitation\":{\"dwd\":0.61,\"noaa\":0.42,\"sg\":0.61},\"time\":\"2022-11-17T10:00:00+00:00\",\"windDirection\":{\"noaa\":297.54,\"sg\":297.54},\"windSpeed\":{\"noaa\":5.39,\"sg\":5.39}},{\"airTemperature\":{\"dwd\":10.57,\"noaa\":9.05,\"sg\":10.57},\"cloudCover\":{\"dwd\":100,\"noaa\":100,\"sg\":100},\"gust\":{\"dwd\":5.56,\"noaa\":10.09,\"sg\":5.56},\"precipitation\":{\"dwd\":0.03,\"noaa\":0.27,\"sg\":0.03},\"time\":\"2022-11-17T11:00:00+00:00\",\"windDirection\":{\"noaa\":290.26,\"sg\":290.26},\"windSpeed\":{\"noaa\":6.15,\"sg\":6.15}},{\"airTemperature\":{\"dwd\":10.93,\"noaa\":9.14,\"sg\":10.93},\"cloudCover\":{\"dwd\":100,\"noaa\":100,\"sg\":100},\"gust\":{\"dwd\":6.88,\"noaa\":11.22,\"sg\":6.88},\"precipitation\":{\"dwd\":0.3,\"noaa\":0.11,\"sg\":0.3},\"time\":\"2022-11-17T12:00:00+00:00\",\"windDirection\":{\"noaa\":282.99,\"sg\":282.99},\"windSpeed\":{\"noaa\":6.9,\"sg\":6.9}},{\"airTemperature\":{\"dwd\":11.14,\"noaa\":9.21,\"sg\":11.14},\"cloudCover\":{\"dwd\":100,\"noaa\":100,\"sg\":100},\"gust\":{\"dwd\":8.69,\"noaa\":11.73,\"sg\":8.69},\"precipitation\":{\"dwd\":0.41,\"noaa\":0.1,\"sg\":0.41},\"time\":\"2022-11-17T13:00:00+00:00\",\"windDirection\":{\"noaa\":282.28,\"sg\":282.28},\"windSpeed\":{\"noaa\":7.21,\"sg\":7.21}},{\"airTemperature\":{\"dwd\":11.05,\"noaa\":9.27,\"sg\":11.05},\"cloudCover\":{\"dwd\":100,\"noaa\":100,\"sg\":100},\"gust\":{\"dwd\":9.69,\"noaa\":12.25,\"sg\":9.69},\"precipitation\":{\"dwd\":0.3,\"noaa\":0.09,\"sg\":0.3},\"time\":\"2022-11-17T14:00:00+00:00\",\"windDirection\":{\"noaa\":281.58,\"sg\":281.58},\"windSpeed\":{\"noaa\":7.51,\"sg\":7.51}},{\"airTemperature\":{\"dwd\":10.6,\"noaa\":9.34,\"sg\":10.6},\"cloudCover\":{\"dwd\":99.81,\"noaa\":100,\"sg\":99.81},\"gust\":{\"dwd\":9.72,\"noaa\":12.76,\"sg\":9.72},\"precipitation\":{\"dwd\":0.07,\"noaa\":0.08,\"sg\":0.07},\"time\":\"2022-11-17T15:00:00+00:00\",\"windDirection\":{\"noaa\":280.87,\"sg\":280.87},\"windSpeed\":{\"noaa\":7.82,\"sg\":7.82}},{\"airTemperature\":{\"dwd\":10.22,\"noaa\":9.35,\"sg\":10.22},\"cloudCover\":{\"dwd\":100,\"noaa\":100,\"sg\":100},\"gust\":{\"dwd\":11.14,\"noaa\":12.96,\"sg\":11.14},\"precipitation\":{\"dwd\":0.05,\"noaa\":0.07,\"sg\":0.05},\"time\":\"2022-11-17T16:00:00+00:00\",\"windDirection\":{\"noaa\":281.02,\"sg\":281.02},\"windSpeed\":{\"noaa\":7.83,\"sg\":7.83}},{\"airTemperature\":{\"dwd\":9.93,\"noaa\":9.37,\"sg\":9.93},\"cloudCover\":{\"dwd\":100,\"noaa\":100,\"sg\":100},\"gust\":{\"dwd\":11.14,\"noaa\":13.16,\"sg\":11.14},\"precipitation\":{\"dwd\":0.11,\"noaa\":0.05,\"sg\":0.11},\"time\":\"2022-11-17T17:00:00+00:00\",\"windDirection\":{\"noaa\":281.18,\"sg\":281.18},\"windSpeed\":{\"noaa\":7.83,\"sg\":7.83}},{\"airTemperature\":{\"dwd\":9.86,\"noaa\":9.38,\"sg\":9.86},\"cloudCover\":{\"dwd\":99.24,\"noaa\":100,\"sg\":99.24},\"gust\":{\"dwd\":10.65,\"noaa\":13.36,\"sg\":10.65},\"precipitation\":{\"dwd\":0.18,\"noaa\":0.04,\"sg\":0.18},\"time\":\"2022-11-17T18:00:00+00:00\",\"windDirection\":{\"noaa\":281.33,\"sg\":281.33},\"windSpeed\":{\"noaa\":7.84,\"sg\":7.84}},{\"airTemperature\":{\"dwd\":9.64,\"noaa\":9.41,\"sg\":9.64},\"cloudCover\":{\"dwd\":96.83,\"noaa\":100,\"sg\":96.83},\"gust\":{\"dwd\":11.41,\"noaa\":13.65,\"sg\":11.41},\"precipitation\":{\"dwd\":0.04,\"noaa\":0.03,\"sg\":0.04},\"time\":\"2022-11-17T19:00:00+00:00\",\"windDirection\":{\"noaa\":277.4,\"sg\":277.4},\"windSpeed\":{\"noaa\":7.9,\"sg\":7.9}},{\"airTemperature\":{\"dwd\":9.5,\"noaa\":9.44,\"sg\":9.5},\"cloudCover\":{\"dwd\":100,\"noaa\":100,\"sg\":100},\"gust\":{\"dwd\":12.48,\"noaa\":13.94,\"sg\":12.48},\"precipitation\":{\"dwd\":0,\"noaa\":0.03,\"sg\":0},\"time\":\"2022-11-17T20:00:00+00:00\",\"windDirection\":{\"noaa\":273.47,\"sg\":273.47},\"windSpeed\":{\"noaa\":7.97,\"sg\":7.97}},{\"airTemperature\":{\"dwd\":9.44,\"noaa\":9.47,\"sg\":9.44},\"cloudCover\":{\"dwd\":100,\"noaa\":100,\"sg\":100},\"gust\":{\"dwd\":12.75,\"noaa\":14.24,\"sg\":12.75},\"precipitation\":{\"dwd\":0,\"noaa\":0.02,\"sg\":0},\"time\":\"2022-11-17T21:00:00+00:00\",\"windDirection\":{\"noaa\":269.54,\"sg\":269.54},\"windSpeed\":{\"noaa\":8.03,\"sg\":8.03}},{\"airTemperature\":{\"dwd\":9.17,\"noaa\":9.52,\"sg\":9.17},\"cloudCover\":{\"dwd\":100,\"noaa\":100,\"sg\":100},\"gust\":{\"dwd\":13.13,\"noaa\":14.26,\"sg\":13.13},\"precipitation\":{\"dwd\":0,\"noaa\":0.02,\"sg\":0},\"time\":\"2022-11-17T22:00:00+00:00\",\"windDirection\":{\"noaa\":268.7,\"sg\":268.7},\"windSpeed\":{\"noaa\":7.7,\"sg\":7.7}},{\"airTemperature\":{\"dwd\":8.84,\"noaa\":9.58,\"sg\":8.84},\"cloudCover\":{\"dwd\":91.87,\"noaa\":100,\"sg\":91.87},\"gust\":{\"dwd\":13.37,\"noaa\":14.29,\"sg\":13.37},\"precipitation\":{\"dwd\":0,\"noaa\":0.03,\"sg\":0},\"time\":\"2022-11-17T23:00:00+00:00\",\"windDirection\":{\"noaa\":267.86,\"sg\":267.86},\"windSpeed\":{\"noaa\":7.36,\"sg\":7.36}},{\"airTemperature\":{\"dwd\":8.87,\"noaa\":9.63,\"sg\":8.87},\"cloudCover\":{\"dwd\":81.28,\"noaa\":100,\"sg\":81.28},\"gust\":{\"dwd\":13.29,\"noaa\":14.32,\"sg\":13.29},\"precipitation\":{\"dwd\":0,\"noaa\":0.03,\"sg\":0},\"time\":\"2022-11-18T00:00:00+00:00\",\"windDirection\":{\"noaa\":267.02,\"sg\":267.02},\"windSpeed\":{\"noaa\":7.03,\"sg\":7.03}},{\"airTemperature\":{\"dwd\":8.68,\"noaa\":9.64,\"sg\":8.68},\"cloudCover\":{\"dwd\":100,\"noaa\":87.3,\"sg\":100},\"gust\":{\"dwd\":12.34,\"noaa\":14.28,\"sg\":12.34},\"precipitation\":{\"dwd\":0,\"noaa\":0.02,\"sg\":0},\"time\":\"2022-11-18T01:00:00+00:00\",\"windDirection\":{\"noaa\":263.74,\"sg\":263.74},\"windSpeed\":{\"noaa\":7.18,\"sg\":7.18}},{\"airTemperature\":{\"dwd\":8.63,\"noaa\":9.65,\"sg\":8.63},\"cloudCover\":{\"dwd\":87.76,\"noaa\":74.6,\"sg\":87.76},\"gust\":{\"dwd\":12.09,\"noaa\":14.25,\"sg\":12.09},\"precipitation\":{\"dwd\":0,\"noaa\":0.01,\"sg\":0},\"time\":\"2022-11-18T02:00:00+00:00\",\"windDirection\":{\"noaa\":260.45,\"sg\":260.45},\"windSpeed\":{\"noaa\":7.33,\"sg\":7.33}},{\"airTemperature\":{\"dwd\":8.26,\"noaa\":9.66,\"sg\":8.26},\"cloudCover\":{\"dwd\":40.26,\"noaa\":61.9,\"sg\":40.26},\"gust\":{\"dwd\":10.81,\"noaa\":14.22,\"sg\":10.81},\"precipitation\":{\"dwd\":0,\"noaa\":0,\"sg\":0},\"time\":\"2022-11-18T03:00:00+00:00\",\"windDirection\":{\"noaa\":257.17,\"sg\":257.17},\"windSpeed\":{\"noaa\":7.48,\"sg\":7.48}},{\"airTemperature\":{\"dwd\":7.98,\"noaa\":9.58,\"sg\":7.98},\"cloudCover\":{\"dwd\":48.56,\"noaa\":74.3,\"sg\":48.56},\"gust\":{\"dwd\":9.28,\"noaa\":13.32,\"sg\":9.28},\"precipitation\":{\"dwd\":0,\"noaa\":0.02,\"sg\":0},\"time\":\"2022-11-18T04:00:00+00:00\",\"windDirection\":{\"noaa\":259.92,\"sg\":259.92},\"windSpeed\":{\"noaa\":7.14,\"sg\":7.14}},{\"airTemperature\":{\"dwd\":7.7,\"noaa\":9.5,\"sg\":7.7},\"cloudCover\":{\"dwd\":27.45,\"noaa\":86.7,\"sg\":27.45},\"gust\":{\"dwd\":9.29,\"noaa\":12.42,\"sg\":9.29},\"precipitation\":{\"dwd\":0,\"noaa\":0.03,\"sg\":0},\"time\":\"2022-11-18T05:00:00+00:00\",\"windDirection\":{\"noaa\":262.66,\"sg\":262.66},\"windSpeed\":{\"noaa\":6.8,\"sg\":6.8}},{\"airTemperature\":{\"dwd\":7.43,\"noaa\":9.42,\"sg\":7.43},\"cloudCover\":{\"dwd\":30.93,\"noaa\":99.1,\"sg\":30.93},\"gust\":{\"dwd\":9.05,\"noaa\":11.52,\"sg\":9.05},\"precipitation\":{\"dwd\":0,\"noaa\":0.04,\"sg\":0},\"time\":\"2022-11-18T06:00:00+00:00\",\"windDirection\":{\"noaa\":265.41,\"sg\":265.41},\"windSpeed\":{\"noaa\":6.46,\"sg\":6.46}},{\"airTemperature\":{\"dwd\":7.19,\"noaa\":9.25,\"sg\":7.19},\"cloudCover\":{\"dwd\":33.26,\"noaa\":99.4,\"sg\":33.26},\"gust\":{\"dwd\":8.53,\"noaa\":11.45,\"sg\":8.53},\"precipitation\":{\"dwd\":0,\"noaa\":0.04,\"sg\":0},\"time\":\"2022-11-18T07:00:00+00:00\",\"windDirection\":{\"noaa\":266.15,\"sg\":266.15},\"windSpeed\":{\"noaa\":6.49,\"sg\":6.49}},{\"airTemperature\":{\"dwd\":6.96,\"noaa\":9.08,\"sg\":6.96},\"cloudCover\":{\"dwd\":36.76,\"noaa\":99.7,\"sg\":36.76},\"gust\":{\"dwd\":8.97,\"noaa\":11.39,\"sg\":8.97},\"precipitation\":{\"dwd\":0,\"noaa\":0.04,\"sg\":0},\"time\":\"2022-11-18T08:00:00+00:00\",\"windDirection\":{\"noaa\":266.89,\"sg\":266.89},\"windSpeed\":{\"noaa\":6.51,\"sg\":6.51}},{\"airTemperature\":{\"dwd\":7.72,\"noaa\":8.91,\"sg\":7.72},\"cloudCover\":{\"dwd\":31.26,\"noaa\":100,\"sg\":31.26},\"gust\":{\"dwd\":11.07,\"noaa\":11.33,\"sg\":11.07},\"precipitation\":{\"dwd\":0,\"noaa\":0.04,\"sg\":0},\"time\":\"2022-11-18T09:00:00+00:00\",\"windDirection\":{\"noaa\":267.63,\"sg\":267.63},\"windSpeed\":{\"noaa\":6.54,\"sg\":6.54}},{\"airTemperature\":{\"dwd\":9.03,\"noaa\":9.38,\"sg\":9.03},\"cloudCover\":{\"dwd\":78.75,\"noaa\":79.47,\"sg\":78.75},\"gust\":{\"dwd\":12.63,\"noaa\":10.59,\"sg\":12.63},\"precipitation\":{\"dwd\":0,\"noaa\":0.03,\"sg\":0},\"time\":\"2022-11-18T10:00:00+00:00\",\"windDirection\":{\"noaa\":269.47,\"sg\":269.47},\"windSpeed\":{\"noaa\":6.16,\"sg\":6.16}},{\"airTemperature\":{\"dwd\":9.71,\"noaa\":9.84,\"sg\":9.71},\"cloudCover\":{\"dwd\":74.2,\"noaa\":58.93,\"sg\":74.2},\"gust\":{\"dwd\":12.74,\"noaa\":9.85,\"sg\":12.74},\"precipitation\":{\"dwd\":0,\"noaa\":0.01,\"sg\":0},\"time\":\"2022-11-18T11:00:00+00:00\",\"windDirection\":{\"noaa\":271.3,\"sg\":271.3},\"windSpeed\":{\"noaa\":5.78,\"sg\":5.78}},{\"airTemperature\":{\"dwd\":9.91,\"noaa\":10.31,\"sg\":9.91},\"cloudCover\":{\"dwd\":71.64,\"noaa\":38.4,\"sg\":71.64},\"gust\":{\"dwd\":12.72,\"noaa\":9.12,\"sg\":12.72},\"precipitation\":{\"dwd\":0,\"noaa\":0,\"sg\":0},\"time\":\"2022-11-18T12:00:00+00:00\",\"windDirection\":{\"noaa\":273.14,\"sg\":273.14},\"windSpeed\":{\"noaa\":5.4,\"sg\":5.4}},{\"airTemperature\":{\"dwd\":9.94,\"noaa\":10,\"sg\":9.94},\"cloudCover\":{\"dwd\":36.17,\"noaa\":30.17,\"sg\":36.17},\"gust\":{\"dwd\":11.7,\"noaa\":8.49,\"sg\":11.7},\"precipitation\":{\"dwd\":0,\"noaa\":0,\"sg\":0},\"time\":\"2022-11-18T13:00:00+00:00\",\"windDirection\":{\"noaa\":271.68,\"sg\":271.68},\"windSpeed\":{\"noaa\":4.81,\"sg\":4.81}},{\"airTemperature\":{\"dwd\":9.72,\"noaa\":9.68,\"sg\":9.72},\"cloudCover\":{\"dwd\":41.96,\"noaa\":21.93,\"sg\":41.96},\"gust\":{\"dwd\":10.32,\"noaa\":7.86,\"sg\":10.32},\"precipitation\":{\"dwd\":0,\"noaa\":0,\"sg\":0},\"time\":\"2022-11-18T14:00:00+00:00\",\"windDirection\":{\"noaa\":270.21,\"sg\":270.21},\"windSpeed\":{\"noaa\":4.22,\"sg\":4.22}},{\"airTemperature\":{\"dwd\":8.98,\"noaa\":9.37,\"sg\":8.98},\"cloudCover\":{\"dwd\":45.95,\"noaa\":13.7,\"sg\":45.95},\"gust\":{\"dwd\":8.46,\"noaa\":7.23,\"sg\":8.46},\"precipitation\":{\"dwd\":0,\"noaa\":0,\"sg\":0},\"time\":\"2022-11-18T15:00:00+00:00\",\"windDirection\":{\"noaa\":268.75,\"sg\":268.75},\"windSpeed\":{\"noaa\":3.63,\"sg\":3.63}},{\"airTemperature\":{\"dwd\":7.6,\"noaa\":8.59,\"sg\":7.6},\"cloudCover\":{\"dwd\":22.77,\"noaa\":12.4,\"sg\":22.77},\"gust\":{\"dwd\":4.92,\"noaa\":6.32,\"sg\":4.92},\"precipitation\":{\"dwd\":0,\"noaa\":0,\"sg\":0},\"time\":\"2022-11-18T16:00:00+00:00\",\"windDirection\":{\"noaa\":264.77,\"sg\":264.77},\"windSpeed\":{\"noaa\":3.22,\"sg\":3.22}},{\"airTemperature\":{\"dwd\":6.43,\"noaa\":7.82,\"sg\":6.43},\"cloudCover\":{\"dwd\":37.73,\"noaa\":11.1,\"sg\":37.73},\"gust\":{\"dwd\":4.11,\"noaa\":5.42,\"sg\":4.11},\"precipitation\":{\"dwd\":0,\"noaa\":0,\"sg\":0},\"time\":\"2022-11-18T17:00:00+00:00\",\"windDirection\":{\"noaa\":260.79,\"sg\":260.79},\"windSpeed\":{\"noaa\":2.81,\"sg\":2.81}},{\"airTemperature\":{\"noaa\":13.39,\"sg\":13.39},\"cloudCover\":{\"noaa\":100,\"sg\":100},\"gust\":{\"noaa\":15.3,\"sg\":15.3},\"precipitation\":{\"noaa\":0.01,\"sg\":0.01},\"time\":\"2022-11-26T00:00:00+00:00\",\"windDirection\":{\"noaa\":205.5,\"sg\":205.5},\"windSpeed\":{\"noaa\":8.5,\"sg\":8.5}}]","payloadType":"json","x":315,"y":2105,"wires":[["3b9f7bebeec8ffa9"]]},{"id":"3b9f7bebeec8ffa9","type":"function","z":"1543d308b342690a","name":"Forecast","func":"var a\nconst myArray = msg.payload\nconst outputArray = []\nfor (let i = 0; i < myArray.length; i++) {\n    a = (myArray[i])\n    const date = new Date(a.time)\n    const ts = date.getTime() / 1000\n    const b = [ts, a.airTemperature.sg, a.windSpeed.sg, a.precipitation.sg]\n    outputArray.push(b)\n    }\n\n// Flexdash chart options\nmsg.title = \"Storm Glass Forecast\"\nmsg.payload = outputArray\nmsg.labels = [\"temp °C\", \"wind mph\", \"rain mm\"]\nmsg.widths = [2, 2, 2]\nmsg.colors = ['red', 'blue', 'green']\nmsg.axes = [\"right\", \"right\", \"left\"]\nmsg.right_unit = \"\"\nmsg.right_decimals = 1\nmsg.left_unit = \"mm\"\nmsg.left_decimals = 1\nmsg.left_min = 0\n\nreturn msg","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":485,"y":2105,"wires":[["aaace342467247bc"]]},{"id":"aaace342467247bc","type":"debug","z":"1543d308b342690a","name":"debug 22","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":625,"y":2105,"wires":[]}]

let oneDayArray = outputArray.slice(25,48);

Or start your for loop at 25 and end it at 48.

1 Like