From e91a34c8adb80ad7441d56d339e782965aae8cdd Mon Sep 17 00:00:00 2001 From: Armilar <102996011+Armilar@users.noreply.github.com> Date: Thu, 12 Jan 2023 16:04:04 +0100 Subject: [PATCH] Updated ioBroker Card Definitionen (Seiten) (markdown) --- ioBroker-Card-Definitionen-(Seiten).md | 117 +++++++++++++++++++++++++ 1 file changed, 117 insertions(+) diff --git a/ioBroker-Card-Definitionen-(Seiten).md b/ioBroker-Card-Definitionen-(Seiten).md index 87ad455..f42226c 100644 --- a/ioBroker-Card-Definitionen-(Seiten).md +++ b/ioBroker-Card-Definitionen-(Seiten).md @@ -541,6 +541,123 @@ on({id: sourceDP, change: "any"}, async function (obj) { ![image](https://user-images.githubusercontent.com/102996011/212094993-b78f6a38-aab7-43fd-a6c7-fa4add274b75.png) +**Seitendefinition** + +> Der Alias unter der PageItem.id ist ein Alias vom Gerätetyp: Info + +``` +let CardLChartExample = +{ + "type": "cardLChart", + "heading": "Büro Temperatur", + "useColor": true, + 'items': [{ + id: 'alias.0.Haus.Erdgeschoss.Buero.Charts.Temperatur', + yAxis: 'Temperatur [°C]', + yAxisTicks: [160,170,180,190,200,210,220,230], + onColor: Yellow + }] +}; +``` + +**Javascript für Influx2** +``` +const Debug = true; + +const NSPanel_Path = '0_userdata.0.NSPanel.' +const Path = NSPanel_Path + "Influx2NSPanel.cardLChart."; +const PathSensor = Path + "buero_temperature"; + +const Sensor = 'deconz.0.Sensors.65.temperature' + +const numberOfHoursAgo = 24; +const xAxisTicksEveryM = 60; +const xAxisLabelEveryM = 240; + +const InfluxInstance = 'influxdb.1' + +let coordinates = ''; + +createState(PathSensor, 0, { + name: 'SensorGrid', + desc: 'Sensor Values [~