forked from RnD/measurement
added childId and childname for debug
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
defaults: {
|
defaults: {
|
||||||
|
|
||||||
// Define default properties
|
// Define default properties
|
||||||
name: { value: "" }, // use asset category as name
|
name: { value: "sensor" }, // use asset category as name
|
||||||
|
|
||||||
// Define specific properties
|
// Define specific properties
|
||||||
scaling: { value: false },
|
scaling: { value: false },
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ class nodeClass {
|
|||||||
// Merge UI config over defaults
|
// Merge UI config over defaults
|
||||||
this.config = {
|
this.config = {
|
||||||
general: {
|
general: {
|
||||||
name: uiConfig.name,
|
name: this.name,
|
||||||
id: node.id, // node.id is for the child registration process
|
id: node.id, // node.id is for the child registration process
|
||||||
unit: uiConfig.unit, // add converter options later to convert to default units (need like a model that defines this which units we are going to use and then conver to those standards)
|
unit: uiConfig.unit, // add converter options later to convert to default units (need like a model that defines this which units we are going to use and then conver to those standards)
|
||||||
logging: {
|
logging: {
|
||||||
|
|||||||
@@ -59,6 +59,9 @@ class Measurement {
|
|||||||
windowSize: this.config.smoothing.smoothWindow
|
windowSize: this.config.smoothing.smoothWindow
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.measurements.setChildId(this.config.general.id);
|
||||||
|
this.measurements.setChildName(this.config.general.name);
|
||||||
|
|
||||||
// Smoothing
|
// Smoothing
|
||||||
this.storedValues = [];
|
this.storedValues = [];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user