iotagent-node-lib 3.2.0 → 3.4.0

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.
Files changed (184) hide show
  1. package/.github/ISSUE_TEMPLATE/bug_report.yml +134 -0
  2. package/.github/ISSUE_TEMPLATE/config.yml +16 -0
  3. package/.github/ISSUE_TEMPLATE/feature_request.yml +55 -0
  4. package/.github/advanced-issue-labeler.yml +30 -0
  5. package/.github/workflows/issue-labeler.yml +43 -0
  6. package/README.md +10 -11
  7. package/doc/README.md +16 -0
  8. package/doc/admin.md +565 -0
  9. package/doc/api.md +32 -85
  10. package/doc/deprecated.md +16 -10
  11. package/doc/{architecture.md → devel/architecture.md} +3 -3
  12. package/doc/{Contribution.md → devel/contribution-guidelines.md} +43 -35
  13. package/doc/devel/development.md +1879 -0
  14. package/doc/{northboundinteractions.md → devel/northboundinteractions.md} +18 -33
  15. package/doc/index.md +3 -5
  16. package/doc/requirements.txt +1 -1
  17. package/docker/Mosquitto/Dockerfile +1 -1
  18. package/docker/Mosquitto/README.md +1 -0
  19. package/lib/commonConfig.js +0 -5
  20. package/lib/fiware-iotagent-lib.js +1 -1
  21. package/lib/jexlTranformsMap.js +2 -1
  22. package/lib/model/Device.js +0 -1
  23. package/lib/model/Group.js +0 -1
  24. package/lib/model/dbConn.js +1 -7
  25. package/lib/plugins/jexlParser.js +1 -1
  26. package/lib/request-shim.js +2 -2
  27. package/lib/services/commands/commandService.js +1 -1
  28. package/lib/services/common/genericMiddleware.js +1 -1
  29. package/lib/services/common/iotManagerService.js +0 -1
  30. package/lib/services/devices/deviceRegistryMemory.js +2 -2
  31. package/lib/services/devices/deviceRegistryMongoDB.js +32 -19
  32. package/lib/services/devices/deviceService.js +44 -43
  33. package/lib/services/devices/devices-NGSI-LD.js +14 -2
  34. package/lib/services/devices/devices-NGSI-mixed.js +0 -2
  35. package/lib/services/devices/devices-NGSI-v2.js +23 -104
  36. package/lib/services/groups/groupService.js +1 -1
  37. package/lib/services/ngsi/entities-NGSI-LD.js +3 -3
  38. package/lib/services/ngsi/entities-NGSI-v2.js +28 -19
  39. package/lib/services/northBound/deviceProvisioningServer.js +14 -8
  40. package/lib/templates/createDevice.json +0 -4
  41. package/lib/templates/createDeviceLax.json +0 -4
  42. package/lib/templates/deviceGroup.json +1 -5
  43. package/lib/templates/updateDevice.json +4 -0
  44. package/lib/templates/updateDeviceLax.json +11 -0
  45. package/mkdocs.yml +6 -11
  46. package/package.json +3 -3
  47. package/scripts/legacy_expression_tool/README.md +280 -0
  48. package/scripts/legacy_expression_tool/legacy_expression_tool.py +423 -0
  49. package/scripts/legacy_expression_tool/requirements.txt +3 -0
  50. package/test/unit/examples/deviceProvisioningRequests/provisionMinimumDevice4.json +0 -1
  51. package/test/unit/general/contextBrokerKeystoneSecurityAccess-test.js +5 -15
  52. package/test/unit/mongodb/mongodb-registry-test.js +1 -1
  53. package/test/unit/ngsi-ld/general/contextBrokerOAuthSecurityAccess-test.js +66 -65
  54. package/test/unit/ngsi-ld/general/https-support-test.js +1 -1
  55. package/test/unit/ngsi-ld/lazyAndCommands/command-test.js +8 -7
  56. package/test/unit/ngsi-ld/lazyAndCommands/merge-patch-test.js +31 -30
  57. package/test/unit/ngsi-ld/lazyAndCommands/polling-commands-test.js +12 -11
  58. package/test/unit/ngsi-ld/ngsiService/subscriptions-test.js +41 -39
  59. package/test/unit/ngsi-ld/provisioning/device-provisioning-api_test.js +122 -122
  60. package/test/unit/ngsi-ld/provisioning/device-registration_test.js +28 -28
  61. package/test/unit/ngsi-ld/provisioning/device-update-registration_test.js +18 -17
  62. package/test/unit/ngsi-ld/provisioning/singleConfigurationMode-test.js +7 -7
  63. package/test/unit/ngsi-ld/provisioning/updateProvisionedDevices-test.js +8 -7
  64. package/test/unit/ngsi-mixed/provisioning/ngsi-versioning-test.js +33 -37
  65. package/test/unit/ngsiv2/examples/contextRequests/updateContext.json +2 -0
  66. package/test/unit/ngsiv2/examples/contextRequests/updateContext1.json +3 -1
  67. package/test/unit/ngsiv2/examples/contextRequests/updateContext3WithStatic.json +2 -0
  68. package/test/unit/ngsiv2/examples/contextRequests/updateContext4.json +4 -1
  69. package/test/unit/ngsiv2/examples/contextRequests/updateContext5.json +12 -0
  70. package/test/unit/ngsiv2/examples/contextRequests/updateContext6.json +12 -0
  71. package/test/unit/ngsiv2/examples/contextRequests/updateContextAliasPlugin1.json +2 -0
  72. package/test/unit/ngsiv2/examples/contextRequests/updateContextAliasPlugin2.json +3 -1
  73. package/test/unit/ngsiv2/examples/contextRequests/updateContextAliasPlugin3.json +3 -1
  74. package/test/unit/ngsiv2/examples/contextRequests/updateContextAliasPlugin4.json +3 -1
  75. package/test/unit/ngsiv2/examples/contextRequests/updateContextAliasPlugin5.json +3 -1
  76. package/test/unit/ngsiv2/examples/contextRequests/updateContextAliasPlugin6.json +3 -1
  77. package/test/unit/ngsiv2/examples/contextRequests/updateContextAliasPlugin7.json +3 -1
  78. package/test/unit/ngsiv2/examples/contextRequests/updateContextAliasPlugin8.json +3 -1
  79. package/test/unit/ngsiv2/examples/contextRequests/updateContextAliasPlugin9.json +3 -1
  80. package/test/unit/ngsiv2/examples/contextRequests/updateContextAutocast1.json +2 -0
  81. package/test/unit/ngsiv2/examples/contextRequests/updateContextAutocast2.json +2 -0
  82. package/test/unit/ngsiv2/examples/contextRequests/updateContextAutocast3.json +3 -1
  83. package/test/unit/ngsiv2/examples/contextRequests/updateContextAutocast4.json +3 -1
  84. package/test/unit/ngsiv2/examples/contextRequests/updateContextAutocast5.json +3 -1
  85. package/test/unit/ngsiv2/examples/contextRequests/updateContextAutocast6.json +3 -1
  86. package/test/unit/ngsiv2/examples/contextRequests/updateContextAutocast7.json +3 -1
  87. package/test/unit/ngsiv2/examples/contextRequests/updateContextCommandError.json +3 -1
  88. package/test/unit/ngsiv2/examples/contextRequests/updateContextCommandExpired.json +3 -1
  89. package/test/unit/ngsiv2/examples/contextRequests/updateContextCommandFinish.json +3 -1
  90. package/test/unit/ngsiv2/examples/contextRequests/updateContextCommandStatus.json +2 -0
  91. package/test/unit/ngsiv2/examples/contextRequests/updateContextCommandStatus2.json +2 -0
  92. package/test/unit/ngsiv2/examples/contextRequests/updateContextCompressTimestamp1.json +3 -1
  93. package/test/unit/ngsiv2/examples/contextRequests/updateContextCompressTimestamp2.json +3 -1
  94. package/test/unit/ngsiv2/examples/contextRequests/updateContextExpressionPlugin1.json +2 -12
  95. package/test/unit/ngsiv2/examples/contextRequests/updateContextExpressionPlugin11.json +2 -4
  96. package/test/unit/ngsiv2/examples/contextRequests/updateContextExpressionPlugin12.json +2 -4
  97. package/test/unit/ngsiv2/examples/contextRequests/updateContextExpressionPlugin13.json +3 -1
  98. package/test/unit/ngsiv2/examples/contextRequests/updateContextExpressionPlugin2.json +2 -12
  99. package/test/unit/ngsiv2/examples/contextRequests/updateContextExpressionPlugin29.json +2 -12
  100. package/test/unit/ngsiv2/examples/contextRequests/updateContextExpressionPlugin3.json +2 -4
  101. package/test/unit/ngsiv2/examples/contextRequests/updateContextExpressionPlugin30.json +2 -0
  102. package/test/unit/ngsiv2/examples/contextRequests/updateContextExpressionPlugin31.json +2 -0
  103. package/test/unit/ngsiv2/examples/contextRequests/updateContextExpressionPlugin32.json +2 -0
  104. package/test/unit/ngsiv2/examples/contextRequests/updateContextExpressionPlugin33.json +2 -0
  105. package/test/unit/ngsiv2/examples/contextRequests/updateContextExpressionPlugin34.json +2 -0
  106. package/test/unit/ngsiv2/examples/contextRequests/updateContextExpressionPlugin35.json +2 -0
  107. package/test/unit/ngsiv2/examples/contextRequests/updateContextExpressionPlugin36.json +1 -0
  108. package/test/unit/ngsiv2/examples/contextRequests/updateContextExpressionPlugin4.json +2 -0
  109. package/test/unit/ngsiv2/examples/contextRequests/updateContextExpressionPlugin40.json +1 -1
  110. package/test/unit/ngsiv2/examples/contextRequests/updateContextExpressionPlugin41.json +1 -10
  111. package/test/unit/ngsiv2/examples/contextRequests/updateContextExpressionPlugin5.json +2 -4
  112. package/test/unit/ngsiv2/examples/contextRequests/updateContextExpressionPlugin6.json +2 -4
  113. package/test/unit/ngsiv2/examples/contextRequests/updateContextExpressionPlugin7.json +2 -4
  114. package/test/unit/ngsiv2/examples/contextRequests/updateContextExpressionPlugin8.json +2 -12
  115. package/test/unit/ngsiv2/examples/contextRequests/updateContextExpressionPlugin9.json +2 -4
  116. package/test/unit/ngsiv2/examples/contextRequests/updateContextExpressionSkip.json +12 -0
  117. package/test/unit/ngsiv2/examples/contextRequests/updateContextMultientityJexlExpressionPlugin1.json +1 -1
  118. package/test/unit/ngsiv2/examples/contextRequests/updateContextMultientityPlugin1.json +1 -1
  119. package/test/unit/ngsiv2/examples/contextRequests/updateContextMultientityPlugin10.json +1 -1
  120. package/test/unit/ngsiv2/examples/contextRequests/updateContextMultientityPlugin11.json +1 -1
  121. package/test/unit/ngsiv2/examples/contextRequests/updateContextMultientityPlugin12.json +1 -1
  122. package/test/unit/ngsiv2/examples/contextRequests/updateContextMultientityPlugin13.json +1 -1
  123. package/test/unit/ngsiv2/examples/contextRequests/updateContextMultientityPlugin14.json +1 -1
  124. package/test/unit/ngsiv2/examples/contextRequests/updateContextMultientityPlugin15.json +1 -1
  125. package/test/unit/ngsiv2/examples/contextRequests/updateContextMultientityPlugin16.json +1 -1
  126. package/test/unit/ngsiv2/examples/contextRequests/updateContextMultientityPlugin17.json +1 -1
  127. package/test/unit/ngsiv2/examples/contextRequests/updateContextMultientityPlugin2.json +1 -1
  128. package/test/unit/ngsiv2/examples/contextRequests/updateContextMultientityPlugin25.json +2 -6
  129. package/test/unit/ngsiv2/examples/contextRequests/updateContextMultientityPlugin3.json +1 -1
  130. package/test/unit/ngsiv2/examples/contextRequests/updateContextMultientityPlugin4.json +1 -1
  131. package/test/unit/ngsiv2/examples/contextRequests/updateContextMultientityPlugin5.json +1 -1
  132. package/test/unit/ngsiv2/examples/contextRequests/updateContextMultientityPlugin6.json +1 -1
  133. package/test/unit/ngsiv2/examples/contextRequests/updateContextMultientityPlugin7.json +1 -1
  134. package/test/unit/ngsiv2/examples/contextRequests/updateContextMultientityPlugin8.json +1 -1
  135. package/test/unit/ngsiv2/examples/contextRequests/updateContextMultientityPlugin9.json +1 -1
  136. package/test/unit/ngsiv2/examples/contextRequests/updateContextMultientityTimestampPlugin1.json +1 -1
  137. package/test/unit/ngsiv2/examples/contextRequests/updateContextMultientityTimestampPlugin2.json +1 -1
  138. package/test/unit/ngsiv2/examples/contextRequests/updateContextMultientityTimestampPlugin3.json +1 -1
  139. package/test/unit/ngsiv2/examples/contextRequests/updateContextMultientityTimestampPlugin4.json +2 -0
  140. package/test/unit/ngsiv2/examples/contextRequests/updateContextProcessTimestamp.json +2 -0
  141. package/test/unit/ngsiv2/examples/contextRequests/updateContextStaticAttributes.json +2 -0
  142. package/test/unit/ngsiv2/examples/contextRequests/updateContextStaticAttributesMetadata.json +3 -1
  143. package/test/unit/ngsiv2/examples/contextRequests/updateContextTimestamp.json +3 -1
  144. package/test/unit/ngsiv2/examples/contextRequests/updateContextTimestampFalse.json +12 -0
  145. package/test/unit/ngsiv2/examples/contextRequests/updateContextTimestampFalseTimeInstant.json +12 -0
  146. package/test/unit/ngsiv2/examples/contextRequests/updateContextTimestampOverride.json +2 -0
  147. package/test/unit/ngsiv2/examples/contextRequests/updateContextTimestampOverrideWithoutMilis.json +2 -0
  148. package/test/unit/ngsiv2/examples/contextRequests/updateContextTimestampTimezone.json +3 -1
  149. package/test/unit/ngsiv2/expressions/jexlBasedTransformations-test.js +144 -85
  150. package/test/unit/ngsiv2/general/contextBrokerOAuthSecurityAccess-test.js +20 -53
  151. package/test/unit/ngsiv2/general/https-support-test.js +2 -6
  152. package/test/unit/ngsiv2/lazyAndCommands/command-test.js +4 -10
  153. package/test/unit/ngsiv2/lazyAndCommands/polling-commands-test.js +8 -24
  154. package/test/unit/ngsiv2/ngsiService/active-devices-test.js +146 -65
  155. package/test/unit/ngsiv2/ngsiService/autocast-test.js +14 -21
  156. package/test/unit/ngsiv2/ngsiService/staticAttributes-test.js +3 -5
  157. package/test/unit/ngsiv2/ngsiService/subscriptions-test.js +11 -20
  158. package/test/unit/ngsiv2/plugins/alias-plugin_test.js +20 -30
  159. package/test/unit/ngsiv2/plugins/compress-timestamp-plugin_test.js +4 -6
  160. package/test/unit/ngsiv2/plugins/custom-plugin_test.js +1 -2
  161. package/test/unit/ngsiv2/plugins/multientity-plugin_test.js +3 -5
  162. package/test/unit/ngsiv2/plugins/timestamp-processing-plugin_test.js +2 -3
  163. package/test/unit/ngsiv2/provisioning/device-group-api-test.js +2 -3
  164. package/test/unit/ngsiv2/provisioning/device-provisioning-api_test.js +13 -156
  165. package/test/unit/ngsiv2/provisioning/device-registration_test.js +9 -13
  166. package/test/unit/ngsiv2/provisioning/device-update-registration_test.js +4 -10
  167. package/test/unit/ngsiv2/provisioning/singleConfigurationMode-test.js +0 -11
  168. package/test/unit/ngsiv2/provisioning/updateProvisionedDevices-test.js +0 -8
  169. package/test/unit/plugins/capture-provision-inPlugins_test.js +0 -6
  170. package/.nyc_output/33364de2-1199-4ec2-b33c-cae063ef8cc4.json +0 -1
  171. package/.nyc_output/processinfo/33364de2-1199-4ec2-b33c-cae063ef8cc4.json +0 -1
  172. package/.nyc_output/processinfo/index.json +0 -1
  173. package/doc/config-basic-example.js +0 -20
  174. package/doc/development.md +0 -285
  175. package/doc/howto.md +0 -645
  176. package/doc/installationguide.md +0 -370
  177. package/doc/operations.md +0 -127
  178. package/doc/usermanual.md +0 -900
  179. package/lib/plugins/bidirectionalData.js +0 -356
  180. package/test/unit/ngsi-ld/plugins/bidirectional-plugin_test.js +0 -697
  181. package/test/unit/ngsiv2/plugins/bidirectional-plugin_test.js +0 -599
  182. /package/doc/{NorthboundInteractions.postman_collection → devel/NorthboundInteractions.postman_collection} +0 -0
  183. /package/doc/{echo.js → devel/echo.js} +0 -0
  184. /package/doc/{finalResult.js → devel/finalResult.js} +0 -0
@@ -1,4 +1,6 @@
1
1
  {
2
+ "id":"Light1",
3
+ "type":"SensorMachine",
2
4
  "status": {
3
5
  "type": "String",
4
6
  "value": "STARTING"
@@ -7,4 +9,5 @@
7
9
  "type": "Address",
8
10
  "value": "127.0.0.1"
9
11
  }
10
- }
12
+ }
13
+
@@ -0,0 +1,12 @@
1
+ {
2
+ "id":"humSensor",
3
+ "type":"Humidity",
4
+ "state":{
5
+ "value": true,
6
+ "type": "boolean"
7
+ },
8
+ "dimming":{
9
+ "value": 87,
10
+ "type": "number"
11
+ }
12
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "id": "light1",
3
+ "type": "Light",
4
+ "state":{
5
+ "value": true,
6
+ "type": "boolean"
7
+ },
8
+ "dimming":{
9
+ "value": 87,
10
+ "type": "number"
11
+ }
12
+ }
@@ -1,4 +1,6 @@
1
1
  {
2
+ "id":"light1",
3
+ "type":"Light",
2
4
  "temperature": {
3
5
  "type":"Number",
4
6
  "value":52,
@@ -1,4 +1,6 @@
1
1
  {
2
+ "id":"light1",
3
+ "type":"Light",
2
4
  "luminance": {
3
5
  "type": "Number",
4
6
  "value": 9,
@@ -7,4 +9,4 @@
7
9
  "value":"CAL"
8
10
  }
9
11
  }
10
- }
12
+ }
@@ -1,6 +1,8 @@
1
1
  {
2
+ "id":"light1",
3
+ "type":"Light",
2
4
  "unix_timestamp": {
3
5
  "type": "Number",
4
6
  "value": 99823423
5
7
  }
6
- }
8
+ }
@@ -1,6 +1,8 @@
1
1
  {
2
+ "id":"light1",
3
+ "type":"Light",
2
4
  "active_power": {
3
5
  "type": "Number",
4
6
  "value": 0.45
5
7
  }
6
- }
8
+ }
@@ -1,6 +1,8 @@
1
1
  {
2
+ "id":"light1",
3
+ "type":"Light",
2
4
  "status": {
3
5
  "type": "Boolean",
4
6
  "value": false
5
7
  }
6
- }
8
+ }
@@ -1,6 +1,8 @@
1
1
  {
2
+ "id":"light1",
3
+ "type":"Light",
2
4
  "keep_alive": {
3
5
  "type": "None",
4
6
  "value": null
5
7
  }
6
- }
8
+ }
@@ -1,6 +1,8 @@
1
1
  {
2
+ "id":"light1",
3
+ "type":"Light",
2
4
  "tags": {
3
5
  "type": "Array",
4
6
  "value": ["iot","device"]
5
7
  }
6
- }
8
+ }
@@ -1,6 +1,8 @@
1
1
  {
2
+ "id":"light1",
3
+ "type":"Light",
2
4
  "configuration": {
3
5
  "type": "Object",
4
6
  "value": {"firmware": {"version": "1.1.0","hash": "cf23df2207d99a74fbe169e3eba035e633b65d94"}}
5
7
  }
6
- }
8
+ }
@@ -1,6 +1,8 @@
1
1
  {
2
+ "id":"light1",
3
+ "type":"Light",
2
4
  "configuration": {
3
5
  "type": "Object",
4
6
  "value": "string_value"
5
7
  }
6
- }
8
+ }
@@ -1,4 +1,6 @@
1
1
  {
2
+ "id":"light1",
3
+ "type":"Light",
2
4
  "pressure":{
3
5
  "value": 23,
4
6
  "type": "Number"
@@ -1,4 +1,6 @@
1
1
  {
2
+ "id":"light1",
3
+ "type":"Light",
2
4
  "temperature":{
3
5
  "value": 14.4,
4
6
  "type": "Number"
@@ -1,6 +1,8 @@
1
1
  {
2
+ "id":"light1",
3
+ "type":"Light",
2
4
  "status": {
3
5
  "type": "Boolean",
4
6
  "value": true
5
7
  }
6
- }
8
+ }
@@ -1,6 +1,8 @@
1
1
  {
2
+ "id":"light1",
3
+ "type":"Light",
2
4
  "status": {
3
5
  "type": "Boolean",
4
6
  "value": false
5
7
  }
6
- }
8
+ }
@@ -1,6 +1,8 @@
1
1
  {
2
+ "id":"light1",
3
+ "type":"Light",
2
4
  "keep_alive": {
3
5
  "type": "None",
4
6
  "value": null
5
7
  }
6
- }
8
+ }
@@ -1,6 +1,8 @@
1
1
  {
2
+ "id":"light1",
3
+ "type":"Light",
2
4
  "tags": {
3
5
  "type": "Array",
4
6
  "value": ["iot","device"]
5
7
  }
6
- }
8
+ }
@@ -1,6 +1,8 @@
1
1
  {
2
+ "id":"light1",
3
+ "type":"Light",
2
4
  "configuration": {
3
5
  "type": "Object",
4
6
  "value": {"firmware": {"version": "1.1.0","hash": "cf23df2207d99a74fbe169e3eba035e633b65d94"}}
5
7
  }
6
- }
8
+ }
@@ -1,4 +1,6 @@
1
1
  {
2
+ "id":"r2d2",
3
+ "type":"Robot",
2
4
  "position_status": {
3
5
  "value": "ERROR",
4
6
  "type": "commandStatus"
@@ -7,4 +9,4 @@
7
9
  "value": "Stalled",
8
10
  "type": "commandResult"
9
11
  }
10
- }
12
+ }
@@ -1,4 +1,6 @@
1
1
  {
2
+ "id":"Robot:r2d2",
3
+ "type":"Robot",
2
4
  "position_status": {
3
5
  "value": "ERROR",
4
6
  "type": "commandStatus"
@@ -7,4 +9,4 @@
7
9
  "value": "EXPIRED",
8
10
  "type": "commandResult"
9
11
  }
10
- }
12
+ }
@@ -1,4 +1,6 @@
1
1
  {
2
+ "id":"r2d2",
3
+ "type":"Robot",
2
4
  "position_status": {
3
5
  "value": "FINISHED",
4
6
  "type": "commandStatus"
@@ -7,4 +9,4 @@
7
9
  "value": "[72, 368, 1]",
8
10
  "type": "commandResult"
9
11
  }
10
- }
12
+ }
@@ -1,4 +1,6 @@
1
1
  {
2
+ "id":"Robot:r2d2",
3
+ "type":"Robot",
2
4
  "position_status": {
3
5
  "type": "commandStatus",
4
6
  "value": "PENDING"
@@ -1,4 +1,6 @@
1
1
  {
2
+ "id":"RobotExp:r2d4",
3
+ "type":"RobotExp",
2
4
  "positionExp_status": {
3
5
  "type": "commandStatus",
4
6
  "value": "PENDING"
@@ -1,4 +1,6 @@
1
1
  {
2
+ "id":"light1",
3
+ "type":"Light",
2
4
  "state": {
3
5
  "type": "Boolean",
4
6
  "value": "true"
@@ -7,4 +9,4 @@
7
9
  "type": "DateTime",
8
10
  "value": "+002007-11-03T13:18:05"
9
11
  }
10
- }
12
+ }
@@ -1,4 +1,6 @@
1
1
  {
2
+ "id":"light1",
3
+ "type":"Light",
2
4
  "state": {
3
5
  "type": "Boolean",
4
6
  "value": true,
@@ -13,4 +15,4 @@
13
15
  "type": "DateTime",
14
16
  "value": "+002007-11-03T13:18:05"
15
17
  }
16
- }
18
+ }
@@ -1,22 +1,12 @@
1
1
  {
2
+ "id":"ws1",
3
+ "type":"WeatherStation",
2
4
  "pressure": {
3
5
  "value": 1040,
4
6
  "type": "Number"
5
7
  },
6
- "consumption":{
7
- "type":"Number",
8
- "value":null
9
- },
10
8
  "weather":{
11
9
  "type":"Summary",
12
10
  "value":"Humidity NaN and pressure 1040"
13
- },
14
- "alive":{
15
- "type":"None",
16
- "value":null
17
- },
18
- "updated":{
19
- "type":"Boolean",
20
- "value":null
21
11
  }
22
12
  }
@@ -1,10 +1,8 @@
1
1
  {
2
+ "id":"light1",
3
+ "type":"Light",
2
4
  "consumption": {
3
5
  "value": 52,
4
6
  "type": "Number"
5
- },
6
- "consumption_x":{
7
- "type":"Number",
8
- "value":null
9
7
  }
10
8
  }
@@ -1,6 +1,4 @@
1
1
  {
2
- "consumption_x": {
3
- "type": "Number",
4
- "value": null
5
- }
2
+ "id":"light1",
3
+ "type":"Light"
6
4
  }
@@ -1,4 +1,6 @@
1
1
  {
2
+ "id":"light1",
3
+ "type":"Light",
2
4
  "pressure": {
3
5
  "type": "Number",
4
6
  "value": 10
@@ -7,4 +9,4 @@
7
9
  "type": "Number",
8
10
  "value": 200
9
11
  }
10
- }
12
+ }
@@ -1,4 +1,6 @@
1
1
  {
2
+ "id":"ws1",
3
+ "type":"WeatherStation",
2
4
  "pressure":{
3
5
  "type": "Number",
4
6
  "value": 1040
@@ -10,17 +12,5 @@
10
12
  "weather":{
11
13
  "type": "Summary",
12
14
  "value": "Humidity 6 and pressure 1040"
13
- },
14
- "consumption":{
15
- "type":"Number",
16
- "value":null
17
- },
18
- "alive":{
19
- "type":"None",
20
- "value":null
21
- },
22
- "updated":{
23
- "type":"Boolean",
24
- "value":null
25
15
  }
26
16
  }
@@ -1,22 +1,12 @@
1
1
  {
2
+ "id":"ws1",
3
+ "type":"WeatherStation",
2
4
  "pressure": {
3
5
  "type": "Number",
4
6
  "value": 1040
5
7
  },
6
- "consumption": {
7
- "type": "Number",
8
- "value": null
9
- },
10
8
  "weather": {
11
9
  "type": "Summary",
12
10
  "value": "Humidity NaN and pressure 1040"
13
- },
14
- "alive": {
15
- "type": "None",
16
- "value": null
17
- },
18
- "updated": {
19
- "type": "Boolean",
20
- "value": null
21
11
  }
22
12
  }
@@ -1,10 +1,8 @@
1
1
  {
2
+ "id":"light1",
3
+ "type":"Light",
2
4
  "consumption": {
3
5
  "type": "Number",
4
6
  "value": 0.44
5
- },
6
- "consumption_x":{
7
- "type":"Number",
8
- "value":null
9
7
  }
10
8
  }
@@ -1,4 +1,6 @@
1
1
  {
2
+ "id": "light1",
3
+ "type": "Light",
2
4
  "pressure": {
3
5
  "type": "Number",
4
6
  "value": 1040
@@ -1,4 +1,6 @@
1
1
  {
2
+ "id":"ws1",
3
+ "type":"WeatherStation",
2
4
  "falsy": {
3
5
  "type": "Boolean",
4
6
  "value": false
@@ -1,4 +1,6 @@
1
1
  {
2
+ "id":"gps1",
3
+ "type":"GPS",
2
4
  "location": {
3
5
  "type": "geo:json",
4
6
  "value": {
@@ -1,4 +1,6 @@
1
1
  {
2
+ "id":"gps1",
3
+ "type":"GPS",
2
4
  "location": {
3
5
  "type": "geo:json",
4
6
  "value": {
@@ -1,4 +1,6 @@
1
1
  {
2
+ "id":"gps1",
3
+ "type":"GPS",
2
4
  "location": {
3
5
  "type": "geo:json",
4
6
  "value": {
@@ -1,4 +1,6 @@
1
1
  {
2
+ "id":"gps1",
3
+ "type":"GPS",
2
4
  "TimeInstant": {
3
5
  "type": "DateTime",
4
6
  "value": "2015-08-05T07:35:01.468+00:00"
@@ -1,4 +1,5 @@
1
1
  {
2
+ "id":"gps1","type":"GPS",
2
3
  "mylocation": {
3
4
  "type": "geo:json",
4
5
  "value": {
@@ -1,4 +1,6 @@
1
1
  {
2
+ "id":"ws1",
3
+ "type":"WeatherStation",
2
4
  "pressure25":{
3
5
  "type": "Number",
4
6
  "value": 52
@@ -37,6 +37,6 @@
37
37
  }
38
38
  }
39
39
  ],
40
- "actionType": "update"
40
+ "actionType": "append"
41
41
  }
42
42
 
@@ -1,4 +1,5 @@
1
1
  {
2
+ "id":"gps1","type":"GPS",
2
3
  "TimeInstant": {
3
4
  "type": "DateTime",
4
5
  "value": "2015-08-05T07:35:01.468+00:00"
@@ -18,15 +19,5 @@
18
19
  "value": "2015-08-05T07:35:01.468+00:00"
19
20
  }
20
21
  }
21
- },
22
- "temperature": {
23
- "value": null,
24
- "type": "Number",
25
- "metadata": {
26
- "TimeInstant": {
27
- "type": "DateTime",
28
- "value": "2015-08-05T07:35:01.468+00:00"
29
- }
30
- }
31
22
  }
32
23
  }
@@ -1,10 +1,8 @@
1
1
  {
2
+ "id":"light1",
3
+ "type":"Light",
2
4
  "alive": {
3
5
  "type": "None",
4
6
  "value": null
5
- },
6
- "consumption_x":{
7
- "type":"Number",
8
- "value":null
9
7
  }
10
8
  }
@@ -1,10 +1,8 @@
1
1
  {
2
+ "id":"light1",
3
+ "type":"Light",
2
4
  "manufacturer": {
3
5
  "type": "Object",
4
6
  "value": { "name":"Manufacturer1", "VAT":"U12345678" }
5
- },
6
- "consumption_x":{
7
- "type":"Number",
8
- "value":null
9
7
  }
10
8
  }
@@ -1,10 +1,8 @@
1
1
  {
2
+ "id":"light1",
3
+ "type":"Light",
2
4
  "revisions": {
3
5
  "type": "Array",
4
6
  "value": [ "v0.1", "v0.2", "v0.3" ]
5
- },
6
- "consumption_x":{
7
- "type":"Number",
8
- "value":null
9
7
  }
10
8
  }
@@ -1,22 +1,12 @@
1
1
  {
2
+ "id":"ws1",
3
+ "type":"WeatherStation",
2
4
  "consumption": {
3
5
  "type": "Number",
4
6
  "value": 8.8
5
7
  },
6
- "pressure":{
7
- "type":"Number",
8
- "value":null
9
- },
10
8
  "weather":{
11
9
  "type":"Summary",
12
10
  "value":"Humidity NaN and pressure NaN"
13
- },
14
- "alive":{
15
- "type":"None",
16
- "value":null
17
- },
18
- "updated":{
19
- "type":"Boolean",
20
- "value":null
21
11
  }
22
12
  }
@@ -1,10 +1,8 @@
1
1
  {
2
+ "id":"light1",
3
+ "type":"Light",
2
4
  "updated": {
3
5
  "value": true,
4
6
  "type": "Boolean"
5
- },
6
- "consumption_x":{
7
- "type":"Number",
8
- "value":null
9
7
  }
10
8
  }
@@ -0,0 +1,12 @@
1
+ {
2
+ "id":"skip1",
3
+ "type":"skipvalue",
4
+ "condition": {
5
+ "value": 33,
6
+ "type": "Number"
7
+ },
8
+ "neverSkip": {
9
+ "value": false,
10
+ "type": "Number"
11
+ }
12
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
- "actionType":"update",
2
+ "actionType":"append",
3
3
  "entities":[
4
4
  {
5
5
  "id":"lightPseudo:id",
@@ -1,5 +1,5 @@
1
1
  {
2
- "actionType": "update",
2
+ "actionType": "append",
3
3
  "entities": [
4
4
  {
5
5
  "id": "ws4",
@@ -1,5 +1,5 @@
1
1
  {
2
- "actionType": "update",
2
+ "actionType": "append",
3
3
  "entities": [
4
4
  {
5
5
  "id": "ws9",
@@ -1,5 +1,5 @@
1
1
  {
2
- "actionType": "update",
2
+ "actionType": "append",
3
3
  "entities": [
4
4
  {
5
5
  "id": "ws11",
@@ -1,5 +1,5 @@
1
1
  {
2
- "actionType": "update",
2
+ "actionType": "append",
3
3
  "entities": [
4
4
  {
5
5
  "id": "sh1",