@reblausgt sagte in TibberLink Adapter:
tibberlink.0.Homes.xxx.PricesTotal.jsonFlexCharts
Irgendwas mache ich falsch... Ich habe jetzt das Template in den JSON Editor der Instanz kopiert (also die 3 Einträge, die da drin waren, durch das Template ersetzt) und es wird auch ein JSON erzeugt.
Versuche ich aber
http://192.168.0.251:8082/flexcharts/echarts.html?source=state&id=tibberlink.0.Homes.xxx.PricesTotal.jsonFlexCharts
in einem iFrame anzuzeigen kommt nix.
Das JSON sieht so aus:
option = {
backgroundColor: "rgb(232, 232, 232)",
title: {
text: "Tibber Price",
},
tooltip: {
trigger: "axis",
axisPointer: {
type: "cross"
}
},
grid: { // Randabstände
left: "10%", right: "4%", top: "8%", bottom: "8%"
},
xAxis: {
type: "category",
boundaryGap: false,
data: ["02.01.\n00:00","02.01.\n01:00","02.01.\n02:00","02.01.\n03:00","02.01.\n04:00","02.01.\n05:00","02.01.\n06:00","02.01.\n07:00","02.01.\n08:00","02.01.\n09:00","02.01.\n10:00","02.01.\n11:00","02.01.\n12:00","02.01.\n13:00","02.01.\n14:00","02.01.\n15:00","02.01.\n16:00","02.01.\n17:00","02.01.\n18:00","02.01.\n19:00","02.01.\n20:00","02.01.\n21:00","02.01.\n22:00","02.01.\n23:00","03.01.\n00:00"]
},
yAxis: {
type: "value",
axisLabel: {formatter: "{value} ct/kWh"},
axisPointer: {
snap: true
}
},
visualMap: {
min: 0.2,
max: 0.3,
inRange: {
color: ["green", "yellow", "red"] // Verlauf von grün über gelb nach rot
},
show: false
},
series: [
{
name: "Total",
type: "line",
step: "end",
symbol: "none",
data: [0.2059,0.2047,0.207,0.2112,0.218,0.2387,0.2828,0.3205,0.3475,0.3543,0.3532,0.3456,0.3409,0.3384,0.3483,0.3577,0.3678,0.3848,0.3849,0.3685,0.3576,0.3454,0.3378,0.301,0.301],
markArea: {
itemStyle: {
color: "rgba(120, 200, 120, 0.2)"
},
data: [
%%CalcChannelsData%%
]
}
}
]
};
Was mir auch aufgefallen ist:
Ich habe den TriggerPrice geändert, das Diagramm wurde aber nicht aktualisiert