Skip to content

Commit 04ab478

Browse files
committed
Fix example for FIWARE Alert
1 parent 7f206ae commit 04ab478

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/Node-RED_example_of_flow.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
"type": "function",
116116
"z": "51af8c53.929c6c",
117117
"name": "Standard message with known schema",
118-
"func": "msg.payload = {\n \"id\": \"urn:ngsi-ld:Alert:Alert:1\",\n \"type\": \"Alert\",\n \"createdAt\": \"2019-06-06T12:06:06\",\n \"modifiedAt\": \"2019-06-07T12:07:06\",\n \"category\": {\n \"type\": \"Property\",\n \"value\": \"traffic\"\n },\n \"subCategory\": {\n \"type\": \"Property\",\n \"value\": \"trafficJam\"\n },\n \"validTo\": {\n \"type\": \"Property\",\n \"value\": {\n \"@type\": \"DateTime\",\n \"@value\": \"2017-01-02T10:25:55.00Z\"\n }\n },\n \"description\": {\n \"type\": \"Property\",\n \"value\": \"The road is completely blocked for 3kms\"\n },\n \"location\": {\n \"type\": \"GeoProperty\",\n \"value\": {\n \"type\": \"Point\",\n \"coordinates\": [-3.712247222222222, 40.423852777777775]\n }\n },\n \"dateIssued\": {\n \"type\": \"Property\",\n \"value\": {\n \"@type\": \"DateTime\",\n \"@value\": \"2017-01-02T09:25:55.00Z\"\n }\n },\n \"alertSource\": {\n \"type\": \"Property\",\n \"value\": \"https://account.lab.fiware.org/users/8\"\n },\n \"validFrom\": {\n \"type\": \"Property\",\n \"value\": {\n \"@type\": \"DateTime\",\n \"@value\": \"2017-01-02T09:25:55.00Z\"\n }\n },\n \"severity\": {\n \"type\": \"Property\",\n \"value\": \"high\"\n },\n \"@context\": [\n \"https://schema.lab.fiware.org/ld/context\",\n \"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld\"\n ]\n};\nmsg.schemaUrl = \"https://smart-data-models.github.io/data-models/specs/Alert/alert-schema.json\";\nreturn msg;\n",
118+
"func": "msg.payload = {\n \"id\": \"urn:ngsi-ld:Alert:Alert:1\",\n \"type\": \"Alert\",\n \"createdAt\": \"2019-06-06T12:06:06\",\n \"modifiedAt\": \"2019-06-07T12:07:06\",\n \"category\": {\n \"type\": \"Property\",\n \"value\": \"traffic\"\n },\n \"subCategory\": {\n \"type\": \"Property\",\n \"value\": \"trafficJam\"\n },\n \"validTo\": {\n \"type\": \"Property\",\n \"value\": {\n \"@type\": \"DateTime\",\n \"@value\": \"2017-01-02T10:25:55.00Z\"\n }\n },\n \"description\": {\n \"type\": \"Property\",\n \"value\": \"The road is completely blocked for 3kms\"\n },\n \"location\": {\n \"type\": \"GeoProperty\",\n \"value\": {\n \"type\": \"Point\",\n \"coordinates\": [-3.712247222222222, 40.423852777777775]\n }\n },\n \"dateIssued\": {\n \"type\": \"Property\",\n \"value\": {\n \"@type\": \"DateTime\",\n \"@value\": \"2017-01-02T09:25:55.00Z\"\n }\n },\n \"alertSource\": {\n \"type\": \"Property\",\n \"value\": \"https://account.lab.fiware.org/users/8\"\n },\n \"validFrom\": {\n \"type\": \"Property\",\n \"value\": {\n \"@type\": \"DateTime\",\n \"@value\": \"2017-01-02T09:25:55.00Z\"\n }\n },\n \"severity\": {\n \"type\": \"Property\",\n \"value\": \"high\"\n },\n \"@context\": [\n \"https://schema.lab.fiware.org/ld/context\",\n \"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld\"\n ]\n};\nmsg.schemaUrl = \"https://fiware.github.io/data-models/specs/Alert/alert-schema.json\";\nreturn msg;\n",
119119
"outputs": 1,
120120
"noerr": 0,
121121
"x": 320,

0 commit comments

Comments
 (0)