Skip to content

Instantly share code, notes, and snippets.

@dsbaars
Created January 3, 2023 17:51
Show Gist options
  • Save dsbaars/7603e0093bcfc0f97d226d6546225832 to your computer and use it in GitHub Desktop.
Save dsbaars/7603e0093bcfc0f97d226d6546225832 to your computer and use it in GitHub Desktop.
nordpool two days
type: custom:apexcharts-card
header:
show: true
title: Nordpool Prize
show_states: false
graph_span: 2d
now:
show: true
label: Nu
span:
start: day
series:
- entity: sensor.nordpool_kwh_nl_eur_3_10_009
name: Today
data_generator: |
return entity.attributes.raw_today.map((entry) => {
return [new Date(entry.start), entry.value];
});
type: column
float_precision: 3
show:
legend_value: false
in_header: false
- entity: sensor.nordpool_kwh_nl_eur_3_10_009
name: Tomorrow
type: column
float_precision: 3
data_generator: |
return entity.attributes.raw_tomorrow.map((entry) => {
return [new Date(entry.start), entry.value];
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment