This is a working example of the 3 (for me) most important values of a forecast: temperature, cloud-coverage and precipitation-probability. if you use another weatherforecast integration than openweathermap the naming of the values could vary (sorry for the german wordings, but I guess you get what is behind)
type: custom:apexcharts-card
header:
show: true
title: Vorhersage
show_states: false
colorize_states: true
now:
show: true
span:
start: hour
graph_span: 36h
apex_config:
dataLabels:
enabled: true
all_series_config:
stroke_width: 1
yaxis:
- id: degrees
decimals: 1
- id: prozent
opposite: true
decimals: 1
min: 0
max: 100
series:
- entity: weather.openweathermap
name: Temperatur
yaxis_id: degrees
data_generator: |
return entity.attributes.forecast.map((entry) => {
return [new Date(entry.datetime).getTime(), entry.temperature];
});
unit: °C
color: red
- entity: weather.openweathermap
name: Niederschlagswahrscheinlichkeit
yaxis_id: prozent
data_generator: |
return entity.attributes.forecast.map((entry) => {
return [new Date(entry.datetime).getTime(), entry.precipitation_probability];
});
color: blue
unit: '%'
- entity: weather.openweathermap
name: Bewölkung
yaxis_id: prozent
data_generator: |
return entity.attributes.forecast.map((entry) => {
return [new Date(entry.datetime).getTime(), entry.cloud_coverage];
});
color: orange
unit: '%'