@corvina/device-example 1.0.17 → 1.0.19

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/.env CHANGED
@@ -173,14 +173,14 @@ SWAGGER_API_SPEC=/spec
173
173
 
174
174
 
175
175
 
176
-
176
+
177
177
  ### LAST-ENV ###
178
178
  # don't write below this line!!
179
- ACTIVATION_KEY=BZUOL-GMV5Q-2MPOF-72V0L
180
- PAIRING_ENDPOINT=https://pairing.corvina.fog:10443/api/v1/
179
+ ACTIVATION_KEY=1DL4F-FA7NY-SAVMV-5LDIZ
180
+ PAIRING_ENDPOINT=https://pairing.corvina.cloud/api/v1/
181
181
  AVAILABLE_TAGS_FILE=
182
182
  AVAILABLE_TAGS=[{"name":"Tag1","type":"integer"},{"name":"Tag2","type":"integer"},{"name":"Tag3","type":"integer"},{"name":"PositionNow","type":"integer"},{"name":"InputTag","type":"integer"}]
183
183
  SIMULATE_TAGS=1
184
184
  AVAILABLE_ALARMS=[{"name":"Alarm10","severity":1,"source":"Tag1","desc":{"en":"Tag above normal : [Tag1]"},"ack_required":true,"reset_required":true,"simulation":{"f":"{ console.log('current tag value is ', $('Tag1')); $('Tag1') > 0; return Math.random() > 0.5 }"}},{"name":"Alarm2"}]
185
185
  SIMULATE_ALARMS=1
186
- PACKET_FORMAT=bson
186
+ PACKET_FORMAT=bson
package/README.md CHANGED
@@ -26,7 +26,7 @@ npm install @corvina/device-example
26
26
  npm @corvina/device-example
27
27
  ```
28
28
 
29
- * via `npx`
29
+ * via `npx` (version >= 8)
30
30
 
31
31
  ```shell
32
32
  npx @corvina/device-example
@@ -53,4 +53,4 @@ In addition, the full list of environment variables used by `@corvina/device-cli
53
53
 
54
54
  It is possible to send generic JSON posting to the `/device/json` endpoint.
55
55
 
56
- Each of the JSON properties posted will be advertised to the cloud with the corresponding JSON paths.
56
+ Each of the JSON properties posted will be advertised to the cloud with the corresponding JSON paths.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corvina/device-example",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "description": "Corvina Device Example base on @corvina/device-client",
5
5
  "author": "arrigo.zanette@corvina.io",
6
6
  "license": "MIT",
@@ -35,7 +35,7 @@
35
35
  "test:cov": "jest --coverage"
36
36
  },
37
37
  "dependencies": {
38
- "@corvina/device-client": "^1.0.18",
38
+ "@corvina/device-client": "^1.0.20",
39
39
  "@nestjs/common": "^9.0.3",
40
40
  "@nestjs/config": "^2.2.0",
41
41
  "@nestjs/core": "^9.0.3",
@@ -58,5 +58,5 @@
58
58
  "tsc-watch": "^5.0.3",
59
59
  "typescript": "^4.7.4"
60
60
  },
61
- "gitHead": "75b29640825bc3f161bc8e53910fd94e2c5e0d42"
61
+ "gitHead": "b64a8377fba36403a6265d03352639f7fe5593e6"
62
62
  }
@@ -4,7 +4,6 @@ import { DataPoint } from "@corvina/device-client";
4
4
  import { ApiOperation, ApiQuery, ApiTags } from "@nestjs/swagger";
5
5
  import { DataPointDTO } from "./dto/datapoint.dto";
6
6
 
7
- /** Handles requests from Nebbiolo FOG CEP */
8
7
  @ApiTags("device")
9
8
  @Controller("/device/dice")
10
9
  @Injectable()
@@ -5,7 +5,6 @@ import { ApiBody, ApiOperation, ApiQuery, ApiTags } from "@nestjs/swagger";
5
5
  import { DataPointDTO } from "./dto/datapoint.dto";
6
6
  import axios from "axios";
7
7
 
8
- /** Handles requests from Nebbiolo FOG CEP */
9
8
  @ApiTags("device")
10
9
  @Controller("/device/json/")
11
10
  @Injectable()
@@ -4,7 +4,6 @@ import { DataPoint } from "@corvina/device-client";
4
4
  import { ApiOperation, ApiQuery, ApiTags } from "@nestjs/swagger";
5
5
  import { DataPointDTO } from "./dto/datapoint.dto";
6
6
 
7
- /** Handles requests from Nebbiolo FOG CEP */
8
7
  @ApiTags("device")
9
8
  @Controller("/device/sine")
10
9
  @Injectable()