@utiliread/primitives 1.0.0-144 → 1.0.0-146
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/csv.d.ts +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/aggregate-id.ts +9 -9
- package/src/breakdown-rule.spec.ts +61 -61
- package/src/breakdown-rule.ts +58 -58
- package/src/csv.spec.ts +42 -34
- package/src/csv.ts +9 -9
- package/src/cursor-navigation-state.spec.ts +194 -194
- package/src/cursor-navigation-state.ts +168 -168
- package/src/index.ts +61 -61
- package/src/measure-id.ts +17 -17
- package/src/measures/duration.ts +11 -11
- package/src/measures/energy.ts +13 -13
- package/src/measures/humidity.ts +3 -3
- package/src/measures/infocode.ts +3 -3
- package/src/measures/mass-flow.ts +19 -19
- package/src/measures/mass.ts +10 -10
- package/src/measures/noise.ts +5 -5
- package/src/measures/power.ts +23 -23
- package/src/measures/pressure.ts +9 -9
- package/src/measures/reactive-energy.ts +7 -7
- package/src/measures/reactive-power.ts +3 -3
- package/src/measures/temperature.ts +9 -9
- package/src/measures/time.ts +3 -3
- package/src/measures/volume-flow.ts +25 -25
- package/src/measures/volume.ts +3 -3
- package/src/medium.spec.ts +12 -12
- package/src/medium.ts +47 -47
- package/src/number-formatter.spec.ts +549 -549
- package/src/number-formatter.ts +118 -118
- package/src/optional.ts +1 -1
- package/src/precision-number.spec.ts +251 -251
- package/src/precision-number.ts +123 -123
- package/src/register-convention.spec.ts +52 -52
- package/src/register-convention.ts +70 -70
- package/src/register-definition.ts +23 -23
- package/src/register-id.ts +288 -288
- package/src/register-library.spec.ts +41 -41
- package/src/register-library.ts +64 -64
- package/src/register-pack.ts +5 -5
- package/src/register-utils.ts +6 -6
- package/src/registers/acoustic-noise.ts +52 -52
- package/src/registers/ambient-temperature.ts +52 -52
- package/src/registers/axioma-infocode.ts +16 -16
- package/src/registers/consumer.ts +17 -17
- package/src/registers/cooling-energy-inlet.ts +23 -23
- package/src/registers/cooling-energy-outlet.ts +23 -23
- package/src/registers/cooling-energy.ts +23 -23
- package/src/registers/cooling.ts +113 -113
- package/src/registers/device-addresses-kamdraft.ts +14 -14
- package/src/registers/device-addresses-msisdn.ts +14 -14
- package/src/registers/device-addresses-tchlr.ts +14 -14
- package/src/registers/device-addresses-wmbus.ts +17 -17
- package/src/registers/device-date-time.ts +9 -9
- package/src/registers/device-date.ts +9 -9
- package/src/registers/device-nominal-diameter.ts +9 -9
- package/src/registers/device-permanent-volume-flow.ts +9 -9
- package/src/registers/device-registers.ts +9 -9
- package/src/registers/device-samples.ts +37 -37
- package/src/registers/device-software-version.ts +8 -8
- package/src/registers/device-time.ts +9 -9
- package/src/registers/device.ts +16 -16
- package/src/registers/diehl-infocode.ts +44 -44
- package/src/registers/electrical-energy.ts +23 -23
- package/src/registers/energy-inlet.ts +23 -23
- package/src/registers/energy-outlet.ts +23 -23
- package/src/registers/error-operating-time.ts +23 -23
- package/src/registers/flow-temperature-aux.ts +52 -52
- package/src/registers/flow-temperature-inlet.ts +52 -52
- package/src/registers/flow-temperature-outlet.ts +52 -52
- package/src/registers/flow-temperature.ts +52 -52
- package/src/registers/heat-energy-inlet.ts +65 -65
- package/src/registers/heat-energy-outlet.ts +65 -65
- package/src/registers/heat-energy.ts +65 -65
- package/src/registers/index.ts +71 -71
- package/src/registers/infocode.ts +70 -70
- package/src/registers/kamstrup-module-type.ts +8 -8
- package/src/registers/kamstrup-multical-infocode.ts +58 -58
- package/src/registers/landis-gyr-infocode.ts +23 -23
- package/src/registers/landis-gyr-mbus-status.ts +23 -23
- package/src/registers/mass-flow-inlet.ts +52 -52
- package/src/registers/mass-flow-outlet.ts +52 -52
- package/src/registers/mass-flow.ts +52 -52
- package/src/registers/mass-inlet.ts +23 -23
- package/src/registers/mass-outlet.ts +23 -23
- package/src/registers/mass.ts +23 -23
- package/src/registers/mbus-format-string-signature.ts +8 -8
- package/src/registers/none.ts +8 -8
- package/src/registers/operating-time.ts +23 -23
- package/src/registers/place.ts +31 -31
- package/src/registers/power-inlet.ts +52 -52
- package/src/registers/power-outlet.ts +52 -52
- package/src/registers/power.ts +52 -52
- package/src/registers/pressure-inlet.ts +52 -52
- package/src/registers/pressure-outlet.ts +52 -52
- package/src/registers/pressure.ts +52 -52
- package/src/registers/radiator-temperature.ts +52 -52
- package/src/registers/reactive-energy.ts +23 -23
- package/src/registers/relative-humidity.ts +8 -8
- package/src/registers/remaining-battery-time.ts +23 -23
- package/src/registers/time-last-exact-overhearing-arrived.ts +19 -19
- package/src/registers/time-last-installation-mounted.ts +19 -19
- package/src/registers/time-last-possible-candidate-overhearing-arrived.ts +21 -21
- package/src/registers/time-last-sampled.ts +19 -19
- package/src/registers/time.ts +45 -45
- package/src/registers/volume-flow-inlet.ts +52 -52
- package/src/registers/volume-flow-outlet.ts +52 -52
- package/src/registers/volume-flow.ts +52 -52
- package/src/registers/volume-inlet.ts +23 -23
- package/src/registers/volume-outlet.ts +23 -23
- package/src/registers/volume-pulse-input-a.ts +23 -23
- package/src/registers/volume-pulse-input-b.ts +23 -23
- package/src/registers/volume.ts +23 -23
- package/src/repository.spec.ts +30 -30
- package/src/repository.ts +26 -26
- package/src/step.spec.ts +37 -37
- package/src/step.ts +45 -45
- package/src/time-or-rule.ts +42 -42
- package/src/unit-id.ts +108 -108
package/src/registers/power.ts
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import { sqUnits, units } from "../measures/power";
|
|
2
|
-
|
|
3
|
-
import type { RegisterDefinition } from "../register-definition";
|
|
4
|
-
|
|
5
|
-
export const power: RegisterDefinition = {
|
|
6
|
-
id: "power",
|
|
7
|
-
measure: "power",
|
|
8
|
-
aggregate: "instant",
|
|
9
|
-
units,
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export const minPower: RegisterDefinition = {
|
|
13
|
-
id: "minPower",
|
|
14
|
-
measure: "power",
|
|
15
|
-
aggregate: "min",
|
|
16
|
-
units,
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export const maxPower: RegisterDefinition = {
|
|
20
|
-
id: "maxPower",
|
|
21
|
-
measure: "power",
|
|
22
|
-
aggregate: "max",
|
|
23
|
-
units,
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export const avgPower: RegisterDefinition = {
|
|
27
|
-
id: "avgPower",
|
|
28
|
-
measure: "power",
|
|
29
|
-
aggregate: "avg",
|
|
30
|
-
units,
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export const sumPower: RegisterDefinition = {
|
|
34
|
-
id: "sumPower",
|
|
35
|
-
measure: "power",
|
|
36
|
-
aggregate: "sum",
|
|
37
|
-
units,
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export const cntPower: RegisterDefinition = {
|
|
41
|
-
id: "cntPower",
|
|
42
|
-
measure: "power",
|
|
43
|
-
aggregate: "cnt",
|
|
44
|
-
units: ["unitless"],
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
export const ssqPower: RegisterDefinition = {
|
|
48
|
-
id: "ssqPower",
|
|
49
|
-
measure: "power",
|
|
50
|
-
aggregate: "ssq",
|
|
51
|
-
units: sqUnits,
|
|
52
|
-
};
|
|
1
|
+
import { sqUnits, units } from "../measures/power";
|
|
2
|
+
|
|
3
|
+
import type { RegisterDefinition } from "../register-definition";
|
|
4
|
+
|
|
5
|
+
export const power: RegisterDefinition = {
|
|
6
|
+
id: "power",
|
|
7
|
+
measure: "power",
|
|
8
|
+
aggregate: "instant",
|
|
9
|
+
units,
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const minPower: RegisterDefinition = {
|
|
13
|
+
id: "minPower",
|
|
14
|
+
measure: "power",
|
|
15
|
+
aggregate: "min",
|
|
16
|
+
units,
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export const maxPower: RegisterDefinition = {
|
|
20
|
+
id: "maxPower",
|
|
21
|
+
measure: "power",
|
|
22
|
+
aggregate: "max",
|
|
23
|
+
units,
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const avgPower: RegisterDefinition = {
|
|
27
|
+
id: "avgPower",
|
|
28
|
+
measure: "power",
|
|
29
|
+
aggregate: "avg",
|
|
30
|
+
units,
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export const sumPower: RegisterDefinition = {
|
|
34
|
+
id: "sumPower",
|
|
35
|
+
measure: "power",
|
|
36
|
+
aggregate: "sum",
|
|
37
|
+
units,
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export const cntPower: RegisterDefinition = {
|
|
41
|
+
id: "cntPower",
|
|
42
|
+
measure: "power",
|
|
43
|
+
aggregate: "cnt",
|
|
44
|
+
units: ["unitless"],
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export const ssqPower: RegisterDefinition = {
|
|
48
|
+
id: "ssqPower",
|
|
49
|
+
measure: "power",
|
|
50
|
+
aggregate: "ssq",
|
|
51
|
+
units: sqUnits,
|
|
52
|
+
};
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import { sqUnits, units } from "../measures/pressure";
|
|
2
|
-
|
|
3
|
-
import type { RegisterDefinition } from "../register-definition";
|
|
4
|
-
|
|
5
|
-
export const inletPressure: RegisterDefinition = {
|
|
6
|
-
id: "inletPressure",
|
|
7
|
-
measure: "pressure",
|
|
8
|
-
aggregate: "instant",
|
|
9
|
-
units,
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export const minInletPressure: RegisterDefinition = {
|
|
13
|
-
id: "minInletPressure",
|
|
14
|
-
measure: "pressure",
|
|
15
|
-
aggregate: "min",
|
|
16
|
-
units,
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export const maxInletPressure: RegisterDefinition = {
|
|
20
|
-
id: "maxInletPressure",
|
|
21
|
-
measure: "pressure",
|
|
22
|
-
aggregate: "max",
|
|
23
|
-
units,
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export const avgInletPressure: RegisterDefinition = {
|
|
27
|
-
id: "avgInletPressure",
|
|
28
|
-
measure: "pressure",
|
|
29
|
-
aggregate: "avg",
|
|
30
|
-
units,
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export const sumInletPressure: RegisterDefinition = {
|
|
34
|
-
id: "sumInletPressure",
|
|
35
|
-
measure: "pressure",
|
|
36
|
-
aggregate: "sum",
|
|
37
|
-
units,
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export const cntInletPressure: RegisterDefinition = {
|
|
41
|
-
id: "cntInletPressure",
|
|
42
|
-
measure: "pressure",
|
|
43
|
-
aggregate: "cnt",
|
|
44
|
-
units: ["unitless"],
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
export const ssqInletPressure: RegisterDefinition = {
|
|
48
|
-
id: "ssqInletPressure",
|
|
49
|
-
measure: "pressure",
|
|
50
|
-
aggregate: "ssq",
|
|
51
|
-
units: sqUnits,
|
|
52
|
-
};
|
|
1
|
+
import { sqUnits, units } from "../measures/pressure";
|
|
2
|
+
|
|
3
|
+
import type { RegisterDefinition } from "../register-definition";
|
|
4
|
+
|
|
5
|
+
export const inletPressure: RegisterDefinition = {
|
|
6
|
+
id: "inletPressure",
|
|
7
|
+
measure: "pressure",
|
|
8
|
+
aggregate: "instant",
|
|
9
|
+
units,
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const minInletPressure: RegisterDefinition = {
|
|
13
|
+
id: "minInletPressure",
|
|
14
|
+
measure: "pressure",
|
|
15
|
+
aggregate: "min",
|
|
16
|
+
units,
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export const maxInletPressure: RegisterDefinition = {
|
|
20
|
+
id: "maxInletPressure",
|
|
21
|
+
measure: "pressure",
|
|
22
|
+
aggregate: "max",
|
|
23
|
+
units,
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const avgInletPressure: RegisterDefinition = {
|
|
27
|
+
id: "avgInletPressure",
|
|
28
|
+
measure: "pressure",
|
|
29
|
+
aggregate: "avg",
|
|
30
|
+
units,
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export const sumInletPressure: RegisterDefinition = {
|
|
34
|
+
id: "sumInletPressure",
|
|
35
|
+
measure: "pressure",
|
|
36
|
+
aggregate: "sum",
|
|
37
|
+
units,
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export const cntInletPressure: RegisterDefinition = {
|
|
41
|
+
id: "cntInletPressure",
|
|
42
|
+
measure: "pressure",
|
|
43
|
+
aggregate: "cnt",
|
|
44
|
+
units: ["unitless"],
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export const ssqInletPressure: RegisterDefinition = {
|
|
48
|
+
id: "ssqInletPressure",
|
|
49
|
+
measure: "pressure",
|
|
50
|
+
aggregate: "ssq",
|
|
51
|
+
units: sqUnits,
|
|
52
|
+
};
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import { sqUnits, units } from "../measures/pressure";
|
|
2
|
-
|
|
3
|
-
import type { RegisterDefinition } from "../register-definition";
|
|
4
|
-
|
|
5
|
-
export const outletPressure: RegisterDefinition = {
|
|
6
|
-
id: "outletPressure",
|
|
7
|
-
measure: "pressure",
|
|
8
|
-
aggregate: "instant",
|
|
9
|
-
units,
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export const minOutletPressure: RegisterDefinition = {
|
|
13
|
-
id: "minOutletPressure",
|
|
14
|
-
measure: "pressure",
|
|
15
|
-
aggregate: "min",
|
|
16
|
-
units,
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export const maxOutletPressure: RegisterDefinition = {
|
|
20
|
-
id: "maxOutletPressure",
|
|
21
|
-
measure: "pressure",
|
|
22
|
-
aggregate: "max",
|
|
23
|
-
units,
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export const avgOutletPressure: RegisterDefinition = {
|
|
27
|
-
id: "avgOutletPressure",
|
|
28
|
-
measure: "pressure",
|
|
29
|
-
aggregate: "avg",
|
|
30
|
-
units,
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export const sumOutletPressure: RegisterDefinition = {
|
|
34
|
-
id: "sumOutletPressure",
|
|
35
|
-
measure: "pressure",
|
|
36
|
-
aggregate: "sum",
|
|
37
|
-
units,
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export const cntOutletPressure: RegisterDefinition = {
|
|
41
|
-
id: "cntOutletPressure",
|
|
42
|
-
measure: "pressure",
|
|
43
|
-
aggregate: "cnt",
|
|
44
|
-
units: ["unitless"],
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
export const ssqOutletPressure: RegisterDefinition = {
|
|
48
|
-
id: "ssqOutletPressure",
|
|
49
|
-
measure: "pressure",
|
|
50
|
-
aggregate: "ssq",
|
|
51
|
-
units: sqUnits,
|
|
52
|
-
};
|
|
1
|
+
import { sqUnits, units } from "../measures/pressure";
|
|
2
|
+
|
|
3
|
+
import type { RegisterDefinition } from "../register-definition";
|
|
4
|
+
|
|
5
|
+
export const outletPressure: RegisterDefinition = {
|
|
6
|
+
id: "outletPressure",
|
|
7
|
+
measure: "pressure",
|
|
8
|
+
aggregate: "instant",
|
|
9
|
+
units,
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const minOutletPressure: RegisterDefinition = {
|
|
13
|
+
id: "minOutletPressure",
|
|
14
|
+
measure: "pressure",
|
|
15
|
+
aggregate: "min",
|
|
16
|
+
units,
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export const maxOutletPressure: RegisterDefinition = {
|
|
20
|
+
id: "maxOutletPressure",
|
|
21
|
+
measure: "pressure",
|
|
22
|
+
aggregate: "max",
|
|
23
|
+
units,
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const avgOutletPressure: RegisterDefinition = {
|
|
27
|
+
id: "avgOutletPressure",
|
|
28
|
+
measure: "pressure",
|
|
29
|
+
aggregate: "avg",
|
|
30
|
+
units,
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export const sumOutletPressure: RegisterDefinition = {
|
|
34
|
+
id: "sumOutletPressure",
|
|
35
|
+
measure: "pressure",
|
|
36
|
+
aggregate: "sum",
|
|
37
|
+
units,
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export const cntOutletPressure: RegisterDefinition = {
|
|
41
|
+
id: "cntOutletPressure",
|
|
42
|
+
measure: "pressure",
|
|
43
|
+
aggregate: "cnt",
|
|
44
|
+
units: ["unitless"],
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export const ssqOutletPressure: RegisterDefinition = {
|
|
48
|
+
id: "ssqOutletPressure",
|
|
49
|
+
measure: "pressure",
|
|
50
|
+
aggregate: "ssq",
|
|
51
|
+
units: sqUnits,
|
|
52
|
+
};
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import { sqUnits, units } from "../measures/pressure";
|
|
2
|
-
|
|
3
|
-
import type { RegisterDefinition } from "../register-definition";
|
|
4
|
-
|
|
5
|
-
export const pressure: RegisterDefinition = {
|
|
6
|
-
id: "pressure",
|
|
7
|
-
measure: "pressure",
|
|
8
|
-
aggregate: "instant",
|
|
9
|
-
units,
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export const minPressure: RegisterDefinition = {
|
|
13
|
-
id: "minPressure",
|
|
14
|
-
measure: "pressure",
|
|
15
|
-
aggregate: "min",
|
|
16
|
-
units,
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export const maxPressure: RegisterDefinition = {
|
|
20
|
-
id: "maxPressure",
|
|
21
|
-
measure: "pressure",
|
|
22
|
-
aggregate: "max",
|
|
23
|
-
units,
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export const avgPressure: RegisterDefinition = {
|
|
27
|
-
id: "avgPressure",
|
|
28
|
-
measure: "pressure",
|
|
29
|
-
aggregate: "avg",
|
|
30
|
-
units,
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export const sumPressure: RegisterDefinition = {
|
|
34
|
-
id: "sumPressure",
|
|
35
|
-
measure: "pressure",
|
|
36
|
-
aggregate: "sum",
|
|
37
|
-
units,
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export const cntPressure: RegisterDefinition = {
|
|
41
|
-
id: "cntPressure",
|
|
42
|
-
measure: "pressure",
|
|
43
|
-
aggregate: "cnt",
|
|
44
|
-
units: ["unitless"],
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
export const ssqPressure: RegisterDefinition = {
|
|
48
|
-
id: "ssqPressure",
|
|
49
|
-
measure: "pressure",
|
|
50
|
-
aggregate: "ssq",
|
|
51
|
-
units: sqUnits,
|
|
52
|
-
};
|
|
1
|
+
import { sqUnits, units } from "../measures/pressure";
|
|
2
|
+
|
|
3
|
+
import type { RegisterDefinition } from "../register-definition";
|
|
4
|
+
|
|
5
|
+
export const pressure: RegisterDefinition = {
|
|
6
|
+
id: "pressure",
|
|
7
|
+
measure: "pressure",
|
|
8
|
+
aggregate: "instant",
|
|
9
|
+
units,
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const minPressure: RegisterDefinition = {
|
|
13
|
+
id: "minPressure",
|
|
14
|
+
measure: "pressure",
|
|
15
|
+
aggregate: "min",
|
|
16
|
+
units,
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export const maxPressure: RegisterDefinition = {
|
|
20
|
+
id: "maxPressure",
|
|
21
|
+
measure: "pressure",
|
|
22
|
+
aggregate: "max",
|
|
23
|
+
units,
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const avgPressure: RegisterDefinition = {
|
|
27
|
+
id: "avgPressure",
|
|
28
|
+
measure: "pressure",
|
|
29
|
+
aggregate: "avg",
|
|
30
|
+
units,
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export const sumPressure: RegisterDefinition = {
|
|
34
|
+
id: "sumPressure",
|
|
35
|
+
measure: "pressure",
|
|
36
|
+
aggregate: "sum",
|
|
37
|
+
units,
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export const cntPressure: RegisterDefinition = {
|
|
41
|
+
id: "cntPressure",
|
|
42
|
+
measure: "pressure",
|
|
43
|
+
aggregate: "cnt",
|
|
44
|
+
units: ["unitless"],
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export const ssqPressure: RegisterDefinition = {
|
|
48
|
+
id: "ssqPressure",
|
|
49
|
+
measure: "pressure",
|
|
50
|
+
aggregate: "ssq",
|
|
51
|
+
units: sqUnits,
|
|
52
|
+
};
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import { sqUnits, units } from "../measures/temperature";
|
|
2
|
-
|
|
3
|
-
import type { RegisterDefinition } from "../register-definition";
|
|
4
|
-
|
|
5
|
-
export const radiatorTemperature: RegisterDefinition = {
|
|
6
|
-
id: "radiatorTemperature",
|
|
7
|
-
measure: "temperature",
|
|
8
|
-
aggregate: "instant",
|
|
9
|
-
units,
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export const minRadiatorTemperature: RegisterDefinition = {
|
|
13
|
-
id: "minRadiatorTemperature",
|
|
14
|
-
measure: "temperature",
|
|
15
|
-
aggregate: "min",
|
|
16
|
-
units,
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export const maxRadiatorTemperature: RegisterDefinition = {
|
|
20
|
-
id: "maxRadiatorTemperature",
|
|
21
|
-
measure: "temperature",
|
|
22
|
-
aggregate: "max",
|
|
23
|
-
units,
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export const avgRadiatorTemperature: RegisterDefinition = {
|
|
27
|
-
id: "avgRadiatorTemperature",
|
|
28
|
-
measure: "temperature",
|
|
29
|
-
aggregate: "avg",
|
|
30
|
-
units,
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export const sumRadiatorTemperature: RegisterDefinition = {
|
|
34
|
-
id: "sumRadiatorTemperature",
|
|
35
|
-
measure: "temperature",
|
|
36
|
-
aggregate: "sum",
|
|
37
|
-
units,
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export const cntRadiatorTemperature: RegisterDefinition = {
|
|
41
|
-
id: "cntRadiatorTemperature",
|
|
42
|
-
measure: "temperature",
|
|
43
|
-
aggregate: "cnt",
|
|
44
|
-
units: ["unitless"],
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
export const ssqRadiatorTemperature: RegisterDefinition = {
|
|
48
|
-
id: "ssqRadiatorTemperature",
|
|
49
|
-
measure: "temperature",
|
|
50
|
-
aggregate: "ssq",
|
|
51
|
-
units: sqUnits,
|
|
52
|
-
};
|
|
1
|
+
import { sqUnits, units } from "../measures/temperature";
|
|
2
|
+
|
|
3
|
+
import type { RegisterDefinition } from "../register-definition";
|
|
4
|
+
|
|
5
|
+
export const radiatorTemperature: RegisterDefinition = {
|
|
6
|
+
id: "radiatorTemperature",
|
|
7
|
+
measure: "temperature",
|
|
8
|
+
aggregate: "instant",
|
|
9
|
+
units,
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const minRadiatorTemperature: RegisterDefinition = {
|
|
13
|
+
id: "minRadiatorTemperature",
|
|
14
|
+
measure: "temperature",
|
|
15
|
+
aggregate: "min",
|
|
16
|
+
units,
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export const maxRadiatorTemperature: RegisterDefinition = {
|
|
20
|
+
id: "maxRadiatorTemperature",
|
|
21
|
+
measure: "temperature",
|
|
22
|
+
aggregate: "max",
|
|
23
|
+
units,
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const avgRadiatorTemperature: RegisterDefinition = {
|
|
27
|
+
id: "avgRadiatorTemperature",
|
|
28
|
+
measure: "temperature",
|
|
29
|
+
aggregate: "avg",
|
|
30
|
+
units,
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export const sumRadiatorTemperature: RegisterDefinition = {
|
|
34
|
+
id: "sumRadiatorTemperature",
|
|
35
|
+
measure: "temperature",
|
|
36
|
+
aggregate: "sum",
|
|
37
|
+
units,
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export const cntRadiatorTemperature: RegisterDefinition = {
|
|
41
|
+
id: "cntRadiatorTemperature",
|
|
42
|
+
measure: "temperature",
|
|
43
|
+
aggregate: "cnt",
|
|
44
|
+
units: ["unitless"],
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export const ssqRadiatorTemperature: RegisterDefinition = {
|
|
48
|
+
id: "ssqRadiatorTemperature",
|
|
49
|
+
measure: "temperature",
|
|
50
|
+
aggregate: "ssq",
|
|
51
|
+
units: sqUnits,
|
|
52
|
+
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import type { RegisterDefinition } from "../register-definition";
|
|
2
|
-
import { units } from "../measures/reactive-energy";
|
|
3
|
-
|
|
4
|
-
export const reactiveEnergy: RegisterDefinition = {
|
|
5
|
-
id: "reactiveEnergy",
|
|
6
|
-
measure: "reactiveEnergy",
|
|
7
|
-
aggregate: "instant",
|
|
8
|
-
units,
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export const diffReactiveEnergy: RegisterDefinition = {
|
|
12
|
-
id: "diffReactiveEnergy",
|
|
13
|
-
measure: "reactiveEnergy",
|
|
14
|
-
aggregate: "diff",
|
|
15
|
-
units,
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export const cntReactiveEnergy: RegisterDefinition = {
|
|
19
|
-
id: "cntReactiveEnergy",
|
|
20
|
-
measure: "reactiveEnergy",
|
|
21
|
-
aggregate: "cnt",
|
|
22
|
-
units: ["unitless"],
|
|
23
|
-
};
|
|
1
|
+
import type { RegisterDefinition } from "../register-definition";
|
|
2
|
+
import { units } from "../measures/reactive-energy";
|
|
3
|
+
|
|
4
|
+
export const reactiveEnergy: RegisterDefinition = {
|
|
5
|
+
id: "reactiveEnergy",
|
|
6
|
+
measure: "reactiveEnergy",
|
|
7
|
+
aggregate: "instant",
|
|
8
|
+
units,
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export const diffReactiveEnergy: RegisterDefinition = {
|
|
12
|
+
id: "diffReactiveEnergy",
|
|
13
|
+
measure: "reactiveEnergy",
|
|
14
|
+
aggregate: "diff",
|
|
15
|
+
units,
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export const cntReactiveEnergy: RegisterDefinition = {
|
|
19
|
+
id: "cntReactiveEnergy",
|
|
20
|
+
measure: "reactiveEnergy",
|
|
21
|
+
aggregate: "cnt",
|
|
22
|
+
units: ["unitless"],
|
|
23
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { RegisterDefinition } from "../register-definition";
|
|
2
|
-
|
|
3
|
-
export const relativeHumidity: RegisterDefinition = {
|
|
4
|
-
id: "relativeHumidity",
|
|
5
|
-
measure: "humidity",
|
|
6
|
-
aggregate: "instant",
|
|
7
|
-
units: ["percentage"],
|
|
8
|
-
};
|
|
1
|
+
import type { RegisterDefinition } from "../register-definition";
|
|
2
|
+
|
|
3
|
+
export const relativeHumidity: RegisterDefinition = {
|
|
4
|
+
id: "relativeHumidity",
|
|
5
|
+
measure: "humidity",
|
|
6
|
+
aggregate: "instant",
|
|
7
|
+
units: ["percentage"],
|
|
8
|
+
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import type { RegisterDefinition } from "../register-definition";
|
|
2
|
-
import { units } from "../measures/duration";
|
|
3
|
-
|
|
4
|
-
export const remainingBatteryTime: RegisterDefinition = {
|
|
5
|
-
id: "remainingBatteryTime",
|
|
6
|
-
measure: "duration",
|
|
7
|
-
aggregate: "instant",
|
|
8
|
-
units,
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export const diffRemainingBatteryTime: RegisterDefinition = {
|
|
12
|
-
id: "diffRemainingBatteryTime",
|
|
13
|
-
measure: "duration",
|
|
14
|
-
aggregate: "diff",
|
|
15
|
-
units,
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export const cntRemainingBatteryTime: RegisterDefinition = {
|
|
19
|
-
id: "cntRemainingBatteryTime",
|
|
20
|
-
measure: "duration",
|
|
21
|
-
aggregate: "cnt",
|
|
22
|
-
units: ["unitless"],
|
|
23
|
-
};
|
|
1
|
+
import type { RegisterDefinition } from "../register-definition";
|
|
2
|
+
import { units } from "../measures/duration";
|
|
3
|
+
|
|
4
|
+
export const remainingBatteryTime: RegisterDefinition = {
|
|
5
|
+
id: "remainingBatteryTime",
|
|
6
|
+
measure: "duration",
|
|
7
|
+
aggregate: "instant",
|
|
8
|
+
units,
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export const diffRemainingBatteryTime: RegisterDefinition = {
|
|
12
|
+
id: "diffRemainingBatteryTime",
|
|
13
|
+
measure: "duration",
|
|
14
|
+
aggregate: "diff",
|
|
15
|
+
units,
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export const cntRemainingBatteryTime: RegisterDefinition = {
|
|
19
|
+
id: "cntRemainingBatteryTime",
|
|
20
|
+
measure: "duration",
|
|
21
|
+
aggregate: "cnt",
|
|
22
|
+
units: ["unitless"],
|
|
23
|
+
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import type { RegisterDefinition } from "../register-definition";
|
|
2
|
-
import { units as durationUnits } from "../measures/duration";
|
|
3
|
-
import { units as timeUnits } from "../measures/time";
|
|
4
|
-
|
|
5
|
-
export const timeAtLastExactOverhearingArrived: RegisterDefinition = {
|
|
6
|
-
id: "timeAtLastExactOverhearingArrived",
|
|
7
|
-
measure: "time",
|
|
8
|
-
aggregate: "instant",
|
|
9
|
-
units: timeUnits,
|
|
10
|
-
immediate: true,
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export const timeSinceLastExactOverhearingArrived: RegisterDefinition = {
|
|
14
|
-
id: "timeSinceLastExactOverhearingArrived",
|
|
15
|
-
measure: "duration",
|
|
16
|
-
aggregate: "instant",
|
|
17
|
-
units: durationUnits,
|
|
18
|
-
immediate: true,
|
|
19
|
-
};
|
|
1
|
+
import type { RegisterDefinition } from "../register-definition";
|
|
2
|
+
import { units as durationUnits } from "../measures/duration";
|
|
3
|
+
import { units as timeUnits } from "../measures/time";
|
|
4
|
+
|
|
5
|
+
export const timeAtLastExactOverhearingArrived: RegisterDefinition = {
|
|
6
|
+
id: "timeAtLastExactOverhearingArrived",
|
|
7
|
+
measure: "time",
|
|
8
|
+
aggregate: "instant",
|
|
9
|
+
units: timeUnits,
|
|
10
|
+
immediate: true,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const timeSinceLastExactOverhearingArrived: RegisterDefinition = {
|
|
14
|
+
id: "timeSinceLastExactOverhearingArrived",
|
|
15
|
+
measure: "duration",
|
|
16
|
+
aggregate: "instant",
|
|
17
|
+
units: durationUnits,
|
|
18
|
+
immediate: true,
|
|
19
|
+
};
|