-
Notifications
You must be signed in to change notification settings - Fork 13
/
npf_windpower.yaml
70 lines (70 loc) · 1.49 KB
/
npf_windpower.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
type: custom:apexcharts-card
now:
show: true
label: now
graph_span: 5d
experimental:
color_threshold: true
apex_config:
grid:
show: true
borderColor: dimgray
strokeDashArray: 4
chart:
height: 384px
legend:
showForSingleSeries: false
show: false
plotOptions:
bar:
borderRadius: 3
yaxis:
min: 0
decimalsInFloat: 0
forceNiceScale: true
xaxis:
type: datetime
labels:
datetimeFormatter:
minute: HH:mm
day: ddd
all_series_config:
curve: stepline
show:
offset_in_name: true
header:
title: Tuulivoimaennuste MW
show: true
show_states: true
colorize_states: true
span:
start: day
series:
- entity: sensor.nordpool_kwh_fi_eur_3_10_0
type: line
float_precision: 0
stroke_width: 2
opacity: 1
unit: ¢/kWh
name: Nordpool ¢/kWh Prediction
color_threshold:
- value: 2000
color: forestgreen
opacity: 1
- value: 1000
color: gold
opacity: 1
- value: 900
color: darkred
opacity: 1
show:
in_header: false
legend_value: false
extremas: false
data_generator: |
const processData = async () => {
const response = await fetch('https://raw.githubusercontent.com/vividfog/nordpool-predict-fi/main/deploy/windpower.json');
const predictionData = await response.json();
return predictionData.map(([timestamp, value]) => [parseInt(timestamp), value]);
};
return processData();