mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-03-02 05:06:51 +01:00
Updated ioBroker Card Definitionen (Seiten) (markdown)
@@ -2297,11 +2297,37 @@ Für eine abweichende Darstellung ist das JSON entsprechend zu befüllen. Wenn e
|
|||||||
|
|
||||||
# cardChart (ab TS-Script v.3.7.0)
|
# cardChart (ab TS-Script v.3.7.0)
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
> ab Release v3.7.0
|
> ab Release v3.7.0
|
||||||
|
|
||||||
Blockly für Influx 2.0
|

|
||||||
|
|
||||||
|
> Für das unten abgebildete Blockly-Script wurden die Werte eines Datenpunktes "sonoff.0.DZG_DWSB20_2H.DZG_Leistung_Aktuell" in einer Influx 2.0 Datenbank gespeichert.
|
||||||
|
|
||||||
|
Es wird für das Skript ein Datenpunkt (hier im Beispiel "0_userdata.0.Test.cardChart.txt") benötigt, um das Chart für die cardChart aufzubereiten.
|
||||||
|
|
||||||
|
**Alias-Erstellung:**
|
||||||
|
Es wird lediglich ein Alias vom Gerätetyp "Info" benötigt:
|
||||||
|

|
||||||
|
|
||||||
|
**PageItem Beispiel:**
|
||||||
|
```
|
||||||
|
let CardChartExample: PageChart =
|
||||||
|
{
|
||||||
|
"type": "cardChart",
|
||||||
|
"heading": "Stromzähler L1+L2+L3",
|
||||||
|
"useColor": true,
|
||||||
|
"subPage": false,
|
||||||
|
"parent": undefined,
|
||||||
|
"items": [<PageItem>{
|
||||||
|
id: 'alias.0.NSPanel_1.cardChart',
|
||||||
|
yAxis: 'Leistung [kW]',
|
||||||
|
yAxisTicks: [2,4,6,8,10,2,4,6,8,20,2],
|
||||||
|
onColor: Yellow
|
||||||
|
}]
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
**Blockly für Influx 2.0**
|
||||||

|

|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
|
|||||||
Reference in New Issue
Block a user