Apologies for a newbie question, just trying to learn new things…
So, I’m trying to figure out how to get five first weather forecast datetime items (and time, condition & temperature from each of them) - and then passed them to esphome node’s configuration to be presented in a ePaper display. I have managed to show couple of simple sensor values on the epaper already, but this weather data stuff feels a bit more complicated.
From developer tools I can see that forecast part looks like this (beginning of it).
forecast:
- datetime: '2021-05-14T15:00:00+03:00'
condition: rainy
temperature: 17.2
precipitation: 0.1
wind_speed: 1.98
wind_bearing: 130
pressure: 1007.94
humidity: 62.05
- datetime: '2021-05-14T18:00:00+03:00'
condition: sunny
temperature: 19.6
precipitation: 0
wind_speed: 2.82
wind_bearing: 100
pressure: 1007.23
humidity: 49.02
- datetime: '2021-05-14T21:00:00+03:00'
condition: sunny
temperature: 16.1
precipitation: 0
wind_speed: 2.26
wind_bearing: 137
pressure: 1007.06
humidity: 56.42
- datetime: '2021-05-15T00:00:00+03:00'
condition: sunny
temperature: 9.5
precipitation: 0
wind_speed: 1.38
wind_bearing: 84
pressure: 1007.72
humidity: 90.49
- datetime: '2021-05-15T03:00:00+03:00'
condition: partlycloudy
temperature: 8.8
precipitation: 0
wind_speed: 1.98
wind_bearing: 86
pressure: 1006.95
humidity: 92.02
- datetime: '2021-05-15T06:00:00+03:00'
condition: partlycloudy
temperature: 8.8
precipitation: 0
wind_speed: 2.22
wind_bearing: 85
pressure: 1006.52
humidity: 95.3
- datetime: '2021-05-15T09:00:00+03:00'
condition: cloudy
temperature: 15.4
precipitation: 0
wind_speed: 2.74
wind_bearing: 88
pressure: 1005.46
humidity: 72.49
I guess I might need to use a thing called templates, but feel a bit confused about where to start and what to put into ESPHome node’s yaml. Any help appreciated.