diff --git a/admin/jsonConfig.json b/admin/jsonConfig.json index b5b44cb..6061ea2 100644 --- a/admin/jsonConfig.json +++ b/admin/jsonConfig.json @@ -15,12 +15,14 @@ "adapter_ext_name": { "type": "text", "label": "Adapter Name", + "tooltip": "Device mame of CAN adapter connected to external bus, e.g. can0", "default" : "vcan0", "newLine": false }, "adapter_ext_activated": { "type": "checkbox", "label": "Connect to Adapter", + "tooltip": "Check, if this adapter shall be used.", "default" : true, "newLine": false }, @@ -33,12 +35,14 @@ "adapter_int_name": { "type": "text", "label": "Adapter Name", + "tooltip": "Device mame of CAN adapter connected to internal bus, e.g. can1", "default" : "vcan1", "newLine": false }, "adapter_int_activated": { "type": "checkbox", "label": "Connect to Adapter", + "tooltip": "Check, if this adapter shall be used.", "default" : false, "newLine": false } @@ -54,28 +58,42 @@ "size": 2, "newLine": true }, + "e380WarnUpdateTime": { + "type": "staticText", + "text": "WARNING: Values below 2 seconds may cause heavy system load!", + "newLine": true, + "hidden": "if (data.can_adapter_ext.e380_delay < 2) { return false; }; return true;", + "style": { + "color": "red" + } + }, "e380_name": { "type": "text", "label": "Name", + "tooltip": "This text will be used as base for object tree", "default" : "e380", - "newLine": false + "newLine": true }, "e380_tree": { "type": "checkbox", "label": "tree states", + "tooltip": "Show data as tree of obejcts", "default" : true, "newLine": false }, "e380_json": { "type": "checkbox", "label": "json states", + "tooltip": "Show data as JSON obejcts", "default" : false, "newLine": false }, "e380_delay": { - "type": "text", + "type": "number", "label": "Min. update time (s)", + "tooltip": "Minumum update time for states. 0 for immediate update.", "default" : 5, + "min": 0, "newLine": false }, "tableHdrCol": { @@ -90,7 +108,7 @@ "newLine": true }, - "tableColExtErr1": { + "tableColExtErrDevName": { "type": "staticText", "text": "ERROR: column 'Name of Device' must contain unique text", "newLine": true, @@ -100,11 +118,21 @@ } }, - "tableColExtErr2": { + "tableColExtErrUniqueCanId": { + "type": "staticText", + "text": "ERROR: column 'CAN ID' must contain unique IDs", + "newLine": true, + "hidden": "const x={}; for(let ii=0; data.table_collect_ext && ii