Hi guys
I have this forecast data attribute whithin a sensor, it’s an array:
forecast:
- condition: rainy
precipitation_probability: 100
temperature: 21
templow: 11
datetime: '2022-06-02T22:00:00+00:00'
wind_speed: 5
wind_bearing: 315
- condition: rainy
precipitation_probability: 100
temperature: 20
templow: 11
datetime: '2022-06-03T22:00:00+00:00'
wind_speed: 10
wind_bearing: 315
- condition: rainy
precipitation_probability: 100
temperature: 20
templow: 11
datetime: '2022-06-04T22:00:00+00:00'
wind_speed: 15
wind_bearing: 225
- condition: rainy
precipitation_probability: 90
temperature: 20
templow: 10
datetime: '2022-06-05T22:00:00+00:00'
wind_speed: 15
wind_bearing: 180
- condition: cloudy
precipitation_probability: 30
temperature: 22
templow: 11
datetime: '2022-06-06T22:00:00+00:00'
wind_speed: 5
wind_bearing: 270
- condition: cloudy
precipitation_probability: 5
temperature: 23
templow: 11
datetime: '2022-06-07T22:00:00+00:00'
wind_speed: 15
wind_bearing: 225
I’d like get this array, replace every 22:00 with 00:00 and then select only the values whose date is the same as today or after today.
Thanks in advanced