@corvina/device-example 1.5.12 → 1.5.14

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/alarms.json ADDED
@@ -0,0 +1,18 @@
1
+ [
2
+ {
3
+ "name": "Alarm10",
4
+ "severity": 1,
5
+ "source": "Tag1",
6
+ "desc": {
7
+ "en": "Tag above normal : [Tag1]"
8
+ },
9
+ "ack_required": true,
10
+ "reset_required": true,
11
+ "simulation": {
12
+ "f": "{ console.log('current tag value is ', $('Tag1')); return $('Tag1') > 0.5 }"
13
+ }
14
+ },
15
+ {
16
+ "name": "Alarm2"
17
+ }
18
+ ]
@@ -0,0 +1,18 @@
1
+ [
2
+ {
3
+ "name": "Tag1",
4
+ "type": "double",
5
+ // "simulation": {
6
+ // "type": "const",
7
+ // "value": 0
8
+ // }
9
+ },
10
+ {
11
+ "name": "Tag2",
12
+ "type": "double",
13
+ // "simulation": {
14
+ // "type": "const",
15
+ // "value": 0
16
+ // }
17
+ }
18
+ ]
@@ -0,0 +1,78 @@
1
+ [
2
+ {
3
+ "name": "Tag0",
4
+ "type": "double",
5
+ "simulation": {
6
+ "type": "const",
7
+ "value": 0
8
+ }
9
+ },
10
+ {
11
+ "name": "Tag1",
12
+ "type": "double"
13
+ },
14
+ {
15
+ "name": "Tag2",
16
+ "type": "double",
17
+ "simulation": {
18
+ "type": "const",
19
+ "value": 0
20
+ }
21
+ },
22
+ {
23
+ "name": "Tag3",
24
+ "type": "double",
25
+ "simulation": {
26
+ "type": "const",
27
+ "value": 0
28
+ }
29
+ },
30
+ {
31
+ "name": "Tag4",
32
+ "type": "double",
33
+ "simulation": {
34
+ "type": "const",
35
+ "value": 0
36
+ }
37
+ },
38
+ {
39
+ "name": "Tag5",
40
+ "type": "double",
41
+ "simulation": {
42
+ "type": "const",
43
+ "value": 0
44
+ }
45
+ },
46
+ {
47
+ "name": "Tag6",
48
+ "type": "double",
49
+ "simulation": {
50
+ "type": "const",
51
+ "value": 0
52
+ }
53
+ },
54
+ {
55
+ "name": "Tag7",
56
+ "type": "double",
57
+ "simulation": {
58
+ "type": "const",
59
+ "value": 0
60
+ }
61
+ },
62
+ {
63
+ "name": "Tag8",
64
+ "type": "double",
65
+ "simulation": {
66
+ "type": "const",
67
+ "value": 0
68
+ }
69
+ },
70
+ {
71
+ "name": "Tag9",
72
+ "type": "double",
73
+ "simulation": {
74
+ "type": "const",
75
+ "value": 0
76
+ }
77
+ }
78
+ ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corvina/device-example",
3
- "version": "1.5.12",
3
+ "version": "1.5.14",
4
4
  "description": "Corvina Device Example based on @corvina/device-client",
5
5
  "author": "arrigo.zanette@corvina.io",
6
6
  "license": "MIT",
@@ -32,7 +32,7 @@
32
32
  "start:prod": "node dist/main"
33
33
  },
34
34
  "dependencies": {
35
- "@corvina/device-client": "workspace:*",
35
+ "@corvina/device-client": "^1.5.14",
36
36
  "@nestjs/common": "^11.1.15",
37
37
  "@nestjs/config": "^4.0.3",
38
38
  "@nestjs/core": "^11.1.15",
@@ -55,5 +55,6 @@
55
55
  "corvina",
56
56
  "iot"
57
57
  ],
58
- "bin": "./bin/corvina-device-example.js"
58
+ "bin": "./bin/corvina-device-example.js",
59
+ "gitHead": "36ebda7e17141d797130713a370bb5981d43df88"
59
60
  }
package/run.sh ADDED
@@ -0,0 +1,2 @@
1
+ #!/bin/bash
2
+ npx @corvina/device-example@latest