Skip to content

Commit

Permalink
(simatec) Responsive Design added
Browse files Browse the repository at this point in the history
  • Loading branch information
simatec authored Nov 17, 2024
1 parent caa5aca commit 1f2584e
Showing 1 changed file with 85 additions and 17 deletions.
102 changes: 85 additions & 17 deletions admin/jsonCustom.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,35 @@
"label": "Name",
"help": "Name of statistics log",
"defaultFunc": "(customObj && customObj._id && String(customObj._id).split('.').pop()) || ''",
"sm": 6
"xs": 12,
"sm": 12,
"md": 4,
"lg": 4,
"xl": 4
},
"_info": {
"hidden": "customObj.common.type === 'boolean' || customObj.common.type === 'number'",
"newLine": true,
"type": "header",
"text": "The data type of this state is not supported (has to be boolean or number)",
"size": 4,
"sm": 12
"xs": 12,
"sm": 12,
"md": 4,
"lg": 4,
"xl": 4
},
"_binary": {
"hidden": "customObj.common.type !== 'boolean'",
"newLine": true,
"type": "header",
"text": "For impulses (boolean data points)",
"size": 4,
"sm": 12
"xs": 12,
"sm": 12,
"md": 4,
"lg": 4,
"xl": 4
},
"count": {
"hidden": "customObj.common.type !== 'boolean'",
Expand All @@ -32,15 +44,23 @@
"label": "Count",
"help": "Count pulses or edge changes",
"default": false,
"sm": 4
"xs": 12,
"sm": 12,
"md": 4,
"lg": 4,
"xl": 4
},
"fiveMin": {
"hidden": "customObj.common.type !== 'boolean' || !data.count",
"type": "checkbox",
"label": "5min values",
"help": "Determines the consumption every 5 minutes",
"default": false,
"sm": 4
"xs": 12,
"sm": 12,
"md": 4,
"lg": 4,
"xl": 4
},
"sumCount": {
"hidden": "customObj.common.type !== 'boolean'",
Expand All @@ -49,23 +69,35 @@
"label": "Counting -> Consumption",
"help": "Determines the consumption from counting",
"default": false,
"sm": 4
"xs": 12,
"sm": 12,
"md": 4,
"lg": 4,
"xl": 4
},
"impUnitPerImpulse": {
"hidden": "customObj.common.type !== 'boolean' || !data.sumCount",
"type": "number",
"label": "Units per impulse",
"help": "One impulse is equal to this value",
"default": 1,
"sm": 4
"xs": 12,
"sm": 12,
"md": 4,
"lg": 4,
"xl": 4
},
"impUnit": {
"hidden": "customObj.common.type !== 'boolean' || !data.sumCount",
"type": "text",
"label": "Units",
"help": "kWh, m, liters, or similar",
"default": "",
"sm": 4
"xs": 12,
"sm": 12,
"md": 4,
"lg": 4,
"xl": 4
},
"timeCount": {
"hidden": "customObj.common.type !== 'boolean'",
Expand All @@ -74,7 +106,11 @@
"label": "Operating time",
"help": "Determines times for values 0 and 1",
"default": false,
"sm": 4
"xs": 12,
"sm": 12,
"md": 4,
"lg": 4,
"xl": 4
},

"_analog": {
Expand All @@ -83,7 +119,11 @@
"type": "header",
"text": "For analog values (number data points)",
"size": 4,
"sm": 12
"xs": 12,
"sm": 12,
"md": 4,
"lg": 4,
"xl": 4
},
"avg": {
"hidden": "customObj.common.type !== 'number'",
Expand All @@ -92,7 +132,11 @@
"label": "Average",
"help": "Creates avaerage / daily values",
"default": false,
"sm": 4
"xs": 12,
"sm": 12,
"md": 4,
"lg": 4,
"xl": 4
},
"minmax": {
"hidden": "customObj.common.type !== 'number'",
Expand All @@ -101,7 +145,11 @@
"label": "Min/Max values",
"help": "Creates daily, weekly, monthly, quarterly and annual values",
"default": false,
"sm": 4
"xs": 12,
"sm": 12,
"md": 4,
"lg": 4,
"xl": 4
},
"sumDelta": {
"hidden": "customObj.common.type !== 'number'",
Expand All @@ -110,15 +158,23 @@
"label": "Delta consumption",
"help": "Convert consecutive meter readings into consumption values",
"default": false,
"sm": 4
"xs": 12,
"sm": 12,
"md": 4,
"lg": 4,
"xl": 4
},
"sumIgnoreMinus": {
"hidden": "customObj.common.type !== 'number' || !data.sumDelta",
"type": "checkbox",
"label": "Ignore errors",
"help": "Ignores difference if new value less than old one",
"default": false,
"sm": 4
"xs": 12,
"sm": 12,
"md": 4,
"lg": 4,
"xl": 4
},

"_group": {
Expand All @@ -127,7 +183,11 @@
"type": "header",
"text": "Groups",
"size": 4,
"sm": 12
"xs": 12,
"sm": 12,
"md": 4,
"lg": 4,
"xl": 4
},
"sumGroup": {
"hidden": "!data.sumDelta && !data.sumCount",
Expand All @@ -136,7 +196,11 @@
"label": "Group",
"help": "Can be configured in adapter configuration",
"command": "groups",
"sm": 6
"xs": 12,
"sm": 12,
"md": 4,
"lg": 4,
"xl": 4
},
"groupFactor": {
"hidden": "(!data.sumDelta && !data.sumCount) || !data.sumGroup",
Expand All @@ -145,7 +209,11 @@
"label": "Counting factor",
"help": "Conversion factor for consumption counter",
"default": 1,
"sm": 6
"xs": 12,
"sm": 12,
"md": 4,
"lg": 4,
"xl": 4
}
}
}

0 comments on commit 1f2584e

Please sign in to comment.