{
	"id": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
	"name": "Fiware EMTECH Hackathon",
	"description": "",
	"order": [],
	"folders": [
		{
			"id": "0d591b6b-0da6-48df-4d93-9b368a8bb46d",
			"name": "CEP API (Cepheus)",
			"description": "",
			"order": [
				"92a527bb-5cb2-8b6a-fd0c-2982a77a5dd7",
				"1bbaebfc-55e8-9a9c-2eaa-b395f4dc8fef",
				"6b77e90d-cf26-a671-a38b-7584c3b6fc88",
				"4a751617-dc5e-6a77-85c2-a2a66c20627f",
				"7ff11738-6d43-4b2d-b965-5c143b998b13"
			],
			"owner": 0,
			"collectionId": "1b6af9a6-b0de-f812-b464-1f37a5435d60"
		},
		{
			"id": "7af3780d-4569-aa25-4cfe-b7f3919851eb",
			"name": "Data API (Orion Context Broker)",
			"description": "",
			"order": [
				"80fc5aee-49c0-4984-c302-6b15f6ac235d",
				"bc5ea832-254e-89ca-7b0f-205aa487a4e8",
				"d1aad8bd-08e4-6599-8030-5093f46e316e",
				"8d948522-a78f-3e12-c5d5-5099ae2baea6",
				"e8477dfb-03c1-8597-b1ea-934c439a50b2",
				"8c271b22-1b2b-75f1-9b07-a774d67ecc35",
				"9f3e90b0-776f-d380-01db-e84a0c4edd6c",
				"760ffc0b-6f34-45af-e9ca-c3f7fe73fd53",
				"3bdc17c5-251e-2d6e-a37a-a6eb27f3ca56",
				"995412fe-c753-5ce3-3260-fecede5fcceb"
			],
			"owner": 0,
			"collectionId": "6e42a4aa-5b61-f6fb-dafd-8aa8c06f2fd7"
		},
		{
			"id": "9d08bff9-be31-53de-f1b7-fdb47dd7222e",
			"name": "Device API (IoT Agent)",
			"description": "",
			"order": [
				"d73e94ea-33c3-b8c2-7d99-00924d4a71f4",
				"9ba53c23-93dc-c113-50d7-bb80a73dbdcb",
				"c41bc4f3-485d-bc25-09ce-be472f34b4b1",
				"170ad402-ab32-75cf-680b-d7231fa90bce"
			],
			"owner": 0,
			"collectionId": "41385a1f-4543-2d95-6714-cf2268f7dd1e"
		},
		{
			"id": "666319f1-27b9-aea1-1a1b-c9a5ca148411",
			"name": "Historical Data (Comet STH)",
			"description": "",
			"order": [
				"77c8601e-a1d8-b541-d474-33b5f039dcb7",
				"b4892516-251f-7786-09ca-91ae2f758a5a",
				"8bb2d8aa-bb7a-2607-7496-26ead49fe106",
				"6f3aaa2b-ff13-fafa-7998-145c08fcc9e2"
			],
			"owner": 0,
			"collectionId": "6b4ea652-00c1-46b0-7fd5-3ef801bbf1ad"
		},
		{
			"id": "9ce67329-dcc8-ad9e-0aa1-c6f2aae8166b",
			"name": "Lora Agent Api",
			"description": "",
			"order": [
				"78f397c8-0936-e2f6-cc3c-68385040182c",
				"8f12a3a4-4fd4-721d-0c6c-fdcd1f80ced3",
				"2a516fe7-4ae6-319d-5411-d2f473f8de99"
			],
			"owner": 0,
			"collectionId": "2559653c-f20e-f1dd-9d8d-832043188863"
		},
		{
			"id": "12ffe9bd-226f-6600-dd79-5c0d58843a0b",
			"name": "MQTT Tutorial ",
			"description": "This section shows how to use the MQTT protocol.",
			"order": [
				"afca01b6-b091-84c6-61a7-c449683b215a",
				"6b15d739-2df3-6ba0-0b64-5a9466ba18d7",
				"e49c2914-5d7d-6503-5302-52a6fe2ac8c8",
				"9483afe3-ce65-7dc9-3b26-f0eff0f7566a",
				"6b212db8-1289-7972-6015-286fd421374d",
				"048f35b5-9307-25c8-1463-deef2a4d786b",
				"3d3cebff-326a-e679-2bdc-3ff0253172a5",
				"9925fa65-5f87-3ae5-06ae-82f8186683dc"
			],
			"owner": 0,
			"collectionId": "6e42a4aa-5b61-f6fb-dafd-8aa8c06f2fd7"
		},
		{
			"id": "0b144a90-6cec-69eb-e2f1-86b1847d40c4",
			"name": "UL20 Tutorial",
			"description": "This section shows how to use the UL20 protocol.",
			"order": [
				"0b722633-5f10-4362-da43-2d5367b660ac",
				"0b9d0c97-b614-b80e-1c1b-a83dfff10dd6",
				"64a3f7e0-ddef-fae3-1c98-1e5694d26694",
				"ae70aeb8-930d-eda7-f036-3c95081c34b3",
				"5fd71028-fb8e-ef75-277a-944dd1f28ac8",
				"e3d3a064-81a5-ff06-5c3e-dccd0776b573",
				"22b877c9-77eb-e9ee-b941-a0490855fe9f"
			],
			"owner": 0,
			"collectionId": "6e42a4aa-5b61-f6fb-dafd-8aa8c06f2fd7"
		}
	],
	"timestamp": 1448290001482,
	"owner": 0,
	"public": false,
	"hasRequests": true,
	"requests": [
		{
			"id": "048f35b5-9307-25c8-1463-deef2a4d786b",
			"headers": "",
			"url": "",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "GET",
			"data": [],
			"dataMode": "params",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1449225912869,
			"name": "Step 4 - Subscribe to command from device",
			"description": "For subscribing to topics with the MQTT protocol you can use : mosquitto_sub\n\nThe exemple below subscribe to the SET topic (for turn on/off the led)\n\nmosquitto_sub -h \"hackathon.villatolosa.com\" -t \"TOKEN/myEdison-mqtt/cmd/SET\" -u \"TOKEN\"\n \n- parameter `h`: Specify the host to connect to. Defaults to localhost.\n- parameter `t`: The MQTT topic to subscribe to\n- parameter `u`: Provide a username to be used for authenticating with the broker.\n\nFor more information, please read [Moquitto man](http://mosquitto.org/man/mosquitto_sub-1.html)\n",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"folder": "12ffe9bd-226f-6600-dd79-5c0d58843a0b"
		},
		{
			"id": "0b722633-5f10-4362-da43-2d5367b660ac",
			"headers": "Fiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\nContent-Type: application/json\nX-Auth-Token: {{TOKEN}}\n",
			"url": "http://{{HOST}}/ul/iot/devices",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "POST",
			"data": [],
			"dataMode": "raw",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1449576054708,
			"name": "Step 0 - Register a UL20 device",
			"description": "First a device must be registered to the IoT Agent (provisioning).\n\nThe IoT Agent supports multiples IoT protocols (MQTT, UL20, CoAP, Sigfox, Lora, etc...).\n\nEach device must be associated to a protocol and a `device_id` and mapped to an NGSI Entity (defined by an `entity_name` and `entity_type`) with their associated attributes and commands.\n\n* Attributes are used by the devices sensors to send data to the cloud.\n* Commands are used to control the devices from the cloud.\n\nSupported protocols:\n\n* `PDI-IoTA-UltraLight`: the UL20 protocol\n* `PDI-IoTA-MQTT-UltraLight`: the MQTT protocol\n\nThe request should return a `201 Created` HTTP response code on a successful operation.\n\n",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"rawModeData": "{\n  \"devices\": [\n    {\n      \"device_id\": \"myEdison\",\n      \"entity_name\": \"myEdison\",\n      \"entity_type\": \"edison\",\n      \"protocol\": \"PDI-IoTA-UltraLight\",\n      \"attributes\": [\n        {\n          \"object_id\": \"l\",\n          \"name\": \"lux\",\n          \"type\": \"string\"\n        },\n        {\n          \"object_id\": \"p\",\n          \"name\": \"button\",\n          \"type\": \"string\"\n        }\n      ],\n      \"commands\": [\n        {\n          \"name\": \"SET\",\n          \"type\": \"command\",\n          \"value\": \"myEdison@ledr|%s\"\n        }\n      ]\n    }\n  ]\n}\n",
			"folder": "0b144a90-6cec-69eb-e2f1-86b1847d40c4"
		},
		{
			"id": "0b9d0c97-b614-b80e-1c1b-a83dfff10dd6",
			"headers": "",
			"url": "http://{{HOST}}/ul/iot/d?i=myEdison&k={{TOKEN}}",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "POST",
			"data": [],
			"dataMode": "raw",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1448382594576,
			"name": "Step 1 - Send data from device",
			"description": "This request simulates a device sending data to Fiware to the UL Agent\nusing the **UL20** protocol (a compact HTTP based protocol exposed on port `:8080` the `/iot/d` path).\n\nUL Agent expects `/iot/d` requests with :\n\n - parameter `i`: the device ID, **mandatory**.\n - parameter `k`: an access token (same as you API key), **mandatory**.\n - parameter `t`: an ISO8601 timestamp (eg. `2015-07-04T09:10:55.137641Z`), optional.\n                  If no timestamp is provided, the current date of the server is used.\n - parameter `getCmd`: ask for pending commands, optional.\n\nUL20 body format follows this convention:\n\n - key are are separated from values using `|`\n - each key/value pairs are separated using `#`\n - if a value contains several values, use `/` as separator\n \nFor more information, please read [UL20 protocol](https://github.com/telefonicaid/fiware-IoTAgent-Cplusplus/blob/develop/doc/UL20_protocol.md)\n",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"folder": "0b144a90-6cec-69eb-e2f1-86b1847d40c4",
			"rawModeData": "l|44.2#p|1"
		},
		{
			"id": "170ad402-ab32-75cf-680b-d7231fa90bce",
			"headers": "Fiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\nX-Auth-Token: {{TOKEN}}\n",
			"url": "http://{{HOST}}/ul/iot/devices/myEdison-mqtt",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "DELETE",
			"data": [],
			"dataMode": "params",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1449581403589,
			"name": "Device API - Delete device",
			"description": "",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"folder": "9d08bff9-be31-53de-f1b7-fdb47dd7222e"
		},
		{
			"id": "1bbaebfc-55e8-9a9c-2eaa-b395f4dc8fef",
			"headers": "Accept: application/json\nContent-Type: application/json\nFiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\nX-Auth-Token: {{TOKEN}}\n",
			"url": "http://{{HOST}}/cb/v1/contextSubscriptions",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "POST",
			"data": [],
			"dataMode": "raw",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1449651654346,
			"name": "CEP API - Add subscription Room1 ",
			"description": "To allow Cepheus CEP to collect data on a device, you must add \na subscription from CEP to Orion.\n\nThis is done using a **NGSI** `subscribeContext` request.",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"folder": "0d591b6b-0da6-48df-4d93-9b368a8bb46d",
			"rawModeData": "{\n  \"entities\": [\n    {\n      \"id\": \"Room1\",\n      \"type\": \"Room\",\n      \"isPattern\": \"false\"\n    }\n  ],\n  \"reference\": \"http://{{HOST}}/cep/notify\",\n  \"duration\": \"P1D\",\n  \"notifyConditions\": [\n    {\n      \"type\": \"ONCHANGE\",\n      \"condValues\": [\n        \"temperature\"\n      ]\n    }\n  ],\n  \"throttling\": \"PT5S\"\n}"
		},
		{
			"id": "22b877c9-77eb-e9ee-b941-a0490855fe9f",
			"headers": "",
			"url": "http://{{HOST}}/ul/iot/d?i=myEdison&k={{TOKEN}}",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "POST",
			"data": [],
			"dataMode": "raw",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1449679703635,
			"name": "Step 5 - ACK command",
			"description": "Upon receptions of a command, devices must notify back that\nthe device could (or not) execute the command.\n\nThis is done by sending back a `POST` request with a **UL20** payload\ncontaining:\n\n- a key composed of the device ID, the `@` character and the command\n- a value corresponding to the status : `OK`\n \nFor more information, please read [UL20 protocol](https://github.com/telefonicaid/fiware-IoTAgent-Cplusplus/blob/develop/doc/UL20_protocol.md) and [commands](https://github.com/telefonicaid/fiware-IoTAgent-Cplusplus/blob/develop/doc/commands.md).\n",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"rawModeData": "myEdison@ledr|OK",
			"folder": "0b144a90-6cec-69eb-e2f1-86b1847d40c4"
		},
		{
			"id": "2a516fe7-4ae6-319d-5411-d2f473f8de99",
			"headers": "Content-Type: application/json\nFiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\nAccept: application/json\nX-Auth-Token: {{TOKEN}}\n",
			"url": " http://{{HOST}}/cb/v1/contextEntities/type/tracker/id/{{LORA1}}",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "PUT",
			"data": [],
			"dataMode": "raw",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1449673977810,
			"name": "Lora Agent -  Change tracking mode",
			"description": "Depending on the tracking mode, the tracker consumes more or less battery.\nIt can be interesting to change the tracking mode.\n\nFor this, you need to send a request to the Orion Context Broker to change the mode.\n\nTo send a tracking command to a LoRa device, simply update the attribute `SET_tracking` of \nthe Context Entity associated to the device `{{tracker_id}}` on the\nOrion Context Broker.\n\nThe value can be either:\n\n* `SLEEP`: no tracking\n* `SLOWTRACK`: the tracker send 1 position request every one hour\n* `FASTTRACK`: the tracker send 1 position request every 10 min\n* `MOTIONTRACK`: motion tracking\n\nThe request must be of type `PUT` and contain a body (JSON or XML)\nformatted as defined by the **NGSI** protocol.\n\nAs previously, the path is:\n\n- `/cb` path points to the Orion Context Broker (CB).\n- `/v1` refers to the first version of the NGSI protocol used by Orion CB.\n- `/contextEntities/type/tracker/id/{{tracker_id}}` point to the ID of the tracker\n\nSee [LoRa Agent documentation](http://emtech-hackathon.readthedocs.org/en/latest/loraagent_api/index.html) for more details.\n",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"responses": [],
			"rawModeData": "{\n  \"attributes\": [\n    {\n      \"name\": \"SET_tracking\",\n      \"type\": \"string\",\n      \"value\": \"FASTTRACK\"\n    }\n  ]\n}",
			"folder": "9ce67329-dcc8-ad9e-0aa1-c6f2aae8166b"
		},
		{
			"id": "3bdc17c5-251e-2d6e-a37a-a6eb27f3ca56",
			"headers": "Accept: application/json\nContent-Type: application/json\nFiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\nX-Auth-Token: {{TOKEN}}\n",
			"url": "http://{{HOST}}/cb/v1/contextSubscriptions",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "POST",
			"data": [],
			"dataMode": "raw",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": "{}",
			"time": 1449052818452,
			"name": "Data API - Add subscription",
			"description": "To allow other FIWARE compontents to interact with entities, like Comet STH (Short Term Historic) to gather historic data, you can add a subscription from STH to Orion.",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"folder": "7af3780d-4569-aa25-4cfe-b7f3919851eb",
			"rawModeData": "{\n  \"entities\": [\n    {\n      \"id\": \"Room1\",\n      \"type\": \"Room\",\n      \"isPattern\": \"false\"\n    }\n  ],\n  \"reference\": \"http://hackathon.villatolosa.com/sth/notify\",\n  \"duration\": \"P1D\",\n  \"notifyConditions\": [\n    {\n      \"type\": \"ONCHANGE\",\n      \"condValues\": [\n        \"temperature\"\n      ]\n    }\n  ],\n  \"throttling\": \"PT5S\"\n}"
		},
		{
			"id": "3d3cebff-326a-e679-2bdc-3ff0253172a5",
			"headers": "",
			"url": "",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "POST",
			"data": [],
			"dataMode": "params",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1449575651457,
			"name": "Step 5 - Send ACK command from device",
			"description": "Upon receptions of a command, devices must notify back that\nthe device could (or not) execute the command.\n\nThis is done by publishing a message to the ack topic.\nWith the MQTT protocol you can use : mosquitto_pub\n\ntopic : <api-key>/<device-id>/cmdexe/<cmd-name>\n\npayload : cmdid|<cmdid-value>#result|<result-value>\n\n\nExemple : \n\nFirst, admit that we received a message after subscirbing to the SET topic :\n\ncmdid|8d0e68ca-4d69-415a-9b34-f7acb31723f1#myEdison-mqtt@SET|on\n\nmosquitto_pub -h \"hackathon.villatolosa.com\" -t \"TOKEN/myEdison-mqtt/cmdexe/SET\" -m \"cmdid|8d0e68ca-4d69-415a-9b34-f7acb31723f1#result|on\" -u \"TOKEN\"\n \n- parameter `h`: Specify the host to connect to. Defaults to localhost.\n- parameter `t`: The MQTT topic on which to publish the message.\n- parameter `m`: Send a single message from the command line.\n- parameter `u`: Provide a username to be used for authenticating with the broker.\n\nFor more information, please read [Moquitto man](http://mosquitto.org/man/mosquitto_pub-1.html)\n",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"folder": "12ffe9bd-226f-6600-dd79-5c0d58843a0b"
		},
		{
			"id": "4a751617-dc5e-6a77-85c2-a2a66c20627f",
			"headers": "Accept: application/json\nFiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\nX-Auth-Token: {{TOKEN}}\n",
			"url": " http://{{HOST}}/cb/v1/contextEntities/Floor1",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "GET",
			"data": [],
			"dataMode": "params",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1449651828486,
			"name": "Data API - Get entity Floor1",
			"description": "Floor1 is a nex entity created by the statement of CEP.\n\n`\"INSERT INTO Floor SELECT floor as id, avg(temperature) as temperature FROM Room.win:time(10 min) GROUP BY floor OUTPUT LAST EVERY 10 sec\"`\n\nFloor1 is an average of room1's temperatures during 10 minutes.",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"folder": "0d591b6b-0da6-48df-4d93-9b368a8bb46d"
		},
		{
			"id": "5fd71028-fb8e-ef75-277a-944dd1f28ac8",
			"headers": "Content-Type: application/json\nAccept: application/json\nFiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\nX-Auth-Token: {{TOKEN}}\n",
			"url": " http://{{HOST}}/cb/v1/contextEntities/type/edison/id/myEdison",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "PUT",
			"data": [],
			"dataMode": "raw",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1449652687322,
			"name": "Step 3  - Send command OFF",
			"description": "To send a command `SET` to a device, update the attribute `SET`\nto  value `off` of the Context Entity associated to the device\n`myEdison` on the Orion Context Broker.\n\nThe request must be of type `PUT` and contain a body (JSON or XML)\nformatted as defined by the **NGSI** protocol.\n\nAs previously, the path is:\n\n- `/cb` path points to the Orion Context Broker (CB).\n- `/v1` refers to the first version of the NGSI protocol used by Orion CB.\n- `/contextEntities/type/edison/id/myEdison` points to the myEdison Context Entity.\n\nAccess to Orion CB requires several HTTP headers:\n\n- `Fiware-Service: smartcity`: used for tenant isolation\n- `Fiware-ServicePath: /teamX`: used to isolate multiples devices/services sharing the same IDs.\n- `X-Auth-Token: XXXXXXX`: authorization token\n- `Accept: application/json`: format for the response\n- `Content-Type: application/json`: format of the request\n\nFor more information, please read [UL20 protocol](https://github.com/telefonicaid/fiware-IoTAgent-Cplusplus/blob/develop/doc/UL20_protocol.md) and [commands](https://github.com/telefonicaid/fiware-IoTAgent-Cplusplus/blob/develop/doc/commands.md).\n",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"rawModeData": "{\n  \"attributes\": [\n    {\n      \"name\": \"SET\",\n      \"type\": \"command\",\n      \"value\": \"off\"\n    }\n  ]\n}",
			"folder": "0b144a90-6cec-69eb-e2f1-86b1847d40c4"
		},
		{
			"id": "64a3f7e0-ddef-fae3-1c98-1e5694d26694",
			"headers": "Accept: application/json\nFiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\nX-Auth-Token: {{TOKEN}}\n",
			"url": "http://{{HOST}}/cb/v1/contextEntities/myEdison",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "GET",
			"data": [],
			"dataMode": "params",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": "{}",
			"time": 1448355532912,
			"name": "Step 2  - Access data from Orion",
			"description": "The lastest values associated to a device can be retrieved from Orion by using the **NGSI** protocol.\n\nHere is an explanation of the request path:\n\n- `/cb` path points to the Orion Context Broker (CB).\n- `/v1` refers to the first version of the NGSI protocol used by Orion CB.\n- `/contextEntities` gives access to all data of a Context Entity.\n- `/myEdison` ID of the Context Entity associated to the edison device.\n\nAccess to Orion CB requires several HTTP headers:\n\n- `Fiware-Service: smartcity`: used for tenant isolation\n- `Fiware-ServicePath: /teamX`: used to isolate multiples devices/services sharing the same IDs.\n- `X-Auth-Token: XXXXXXX`: authorization token\n- `Accept: application/json`: format for the response\n",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"rawModeData": null,
			"descriptionFormat": null,
			"folder": "0b144a90-6cec-69eb-e2f1-86b1847d40c4"
		},
		{
			"id": "6b15d739-2df3-6ba0-0b64-5a9466ba18d7",
			"headers": "",
			"url": "",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "POST",
			"data": [],
			"dataMode": "params",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1449575961863,
			"name": "Step 1 - Send data from device",
			"description": "For publishing simple messages with the MQTT protocol you can use : mosquitto_pub\n\nThe exemple below publish the lum value 123 to his topic. \n\nmosquitto_pub -h \"hackathon.villatolosa.com\" -t \"TOKEN/myEdison-mqtt/lux\" -m \"123\" -u \"TOKEN\"\n \n- parameter `h`: Specify the host to connect to. Defaults to localhost.\n- parameter `t`: The MQTT topic on which to publish the message.\n- parameter `m`: Send a single message from the command line.\n- parameter `u`: Provide a username to be used for authenticating with the broker.\n\nFor more information, please read [Moquitto man](http://mosquitto.org/man/mosquitto_pub-1.html)\n",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"folder": "12ffe9bd-226f-6600-dd79-5c0d58843a0b"
		},
		{
			"id": "6b212db8-1289-7972-6015-286fd421374d",
			"headers": "Content-Type: application/json\nAccept: application/json\nFiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\nX-Auth-Token: {{TOKEN}}\n",
			"url": "http://{{HOST}}/cb/v1/contextEntities/type/edison-mqtt/id/myEdison-mqtt",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "PUT",
			"data": [],
			"dataMode": "raw",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1449589595439,
			"name": "Step 3  - Send command OFF from Orion",
			"description": "To send a command `SET` to a device, you need to simply update the attribute `SET` to  value `off`\nof the entity associated to the device `myEdison-mqtt` on the\nOrion Context Broker.\n\nThe request must be of type `PUT` and contain a body (JSON or XML)\nformatted as defined by the **NGSI** protocol.\n\nAs previously, the path is:\n\n- `/cb` path points to the Orion Context Broker (CB).\n- `/v1` refers to the first version of the NGSI protocol used by Orion CB.\n- `/contextEntities/myEdison-mqtt` point to the device\n\nAccess to Orion CB requires several HTTP headers:\n\n- `Fiware-Service: smartcity`: used for tenant isolation\n- `Fiware-ServicePath: /teamX`: used to isolate multiples devices/services sharing the same IDs.\n- `X-Auth-Token: XXXXXXX`: authorization token\n- `Accept: application/json`: format for the response\n- `Content-Type: application/json`: format of the request\n\nFor more information, please read [UL20 protocol](https://github.com/telefonicaid/fiware-IoTAgent-Cplusplus/blob/develop/doc/UL20_protocol.md) and [commands](https://github.com/telefonicaid/fiware-IoTAgent-Cplusplus/blob/develop/doc/commands.md).\n",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"rawModeData": "{\n    \"attributes\": [\n        {\n            \"name\": \"SET\",\n            \"type\": \"command\",\n            \"value\": \"off\"\n        }\n    ]\n}\n",
			"folder": "12ffe9bd-226f-6600-dd79-5c0d58843a0b"
		},
		{
			"id": "6b77e90d-cf26-a671-a38b-7584c3b6fc88",
			"headers": "Accept: application/json\nContent-Type: application/json\nFiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\nX-Auth-Token: {{TOKEN}}\n",
			"url": "http://{{HOST}}/cb/v1/contextSubscriptions",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "POST",
			"data": [],
			"dataMode": "raw",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1449679014459,
			"name": "CEP API - Add subscription Trackers",
			"description": "To allow Cepheus CEP to collect data on a device, you must add \na subscription from CEP to Orion.\n\nThis is done using a **NGSI** `subscribeContext` request.",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"rawModeData": "{\n  \"entities\": [\n    {\n      \"id\": \".*\",\n      \"type\": \"tracker\",\n      \"isPattern\": \"true\"\n    }\n  ],\n  \"reference\": \"http://{{HOST}}/cep/notify\",\n  \"duration\": \"P1D\",\n  \"notifyConditions\": [\n    {\n      \"type\": \"ONCHANGE\",\n      \"condValues\": [\n        \"position\"\n      ]\n    }\n  ],\n  \"throttling\": \"PT5S\"\n}",
			"folder": "0d591b6b-0da6-48df-4d93-9b368a8bb46d"
		},
		{
			"id": "6f3aaa2b-ff13-fafa-7998-145c08fcc9e2",
			"headers": "Accept: application/json\nFiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\nX-Auth-Token: {{TOKEN}}\n",
			"url": " http://{{HOST}}/sth/type/room/id/room1/attributes/temperature?aggrMethod=max&aggrPeriod=month",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "GET",
			"data": [],
			"dataMode": "params",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1449149206818,
			"name": "Historical API - Get Room1 Temperature Max",
			"description": "give the max of the last 10 temperatures of Room1",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"folder": "666319f1-27b9-aea1-1a1b-c9a5ca148411"
		},
		{
			"id": "760ffc0b-6f34-45af-e9ca-c3f7fe73fd53",
			"headers": "Accept: application/json\nFiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\nX-Auth-Token: {{TOKEN}}\n",
			"url": " http://{{HOST}}/cb/v1/contextEntities/Room1/attributes/pressure",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "DELETE",
			"data": [],
			"dataMode": "raw",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1449580909346,
			"name": "Data API  - Delete a single attribute",
			"description": "",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"rawModeData": "",
			"folder": "7af3780d-4569-aa25-4cfe-b7f3919851eb"
		},
		{
			"id": "77c8601e-a1d8-b541-d474-33b5f039dcb7",
			"headers": "Accept: application/json\nContent-Type: application/json\nFiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\nX-Auth-Token: {{TOKEN}}\n",
			"url": "http://{{HOST}}/cb/v1/contextSubscriptions",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "POST",
			"data": [],
			"dataMode": "raw",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1449143592916,
			"name": "Historical API - Add subscription Lora Tracker",
			"description": "To allow Comet STH (Short Term Historic) to gather historic data\non a device, you must add a subscription from STH to Orion.\n\nThis is done using a **NGSI** `subscribeContext` request.",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"rawModeData": "{\n  \"entities\": [\n    {\n      \"id\": \"20635F0012000011\",\n      \"type\": \"tracker\",\n      \"isPattern\": \"false\"\n    }\n  ],\n  \"reference\": \"http://hackathon.villatolosa.com/sth/notify\",\n  \"duration\": \"P1D\",\n  \"notifyConditions\": [\n    {\n      \"type\": \"ONCHANGE\",\n      \"condValues\": [\n        \"temperature\"\n      ]\n    }\n  ],\n  \"throttling\": \"PT5S\"\n}",
			"folder": "666319f1-27b9-aea1-1a1b-c9a5ca148411"
		},
		{
			"id": "78f397c8-0936-e2f6-cc3c-68385040182c",
			"headers": "Content-Type: application/json\nFiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\nAccept: application/json\nX-Auth-Token: {{TOKEN}}\n",
			"url": " http://{{HOST}}/cb/v1/contextEntities/type/tracker/id/{{LORA1}}",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "POST",
			"data": [],
			"dataMode": "raw",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1449674333194,
			"name": "Lora Agent - Simulate a tracker",
			"description": "To simulate the data send by the Lora Agent to Orion Context Broker, you can send this request.\n\nYou just must modify the Id with you tracker id.\n\nSee [LoRa Agent documentation](http://emtech-hackathon.readthedocs.org/en/latest/loraagent_api/index.html) for more details.",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"responses": [],
			"rawModeData": "{\n  \"attributes\": [\n    {\n      \"name\": \"temperature\",\n      \"type\": \"double\",\n      \"value\": \"25.5\"\n    },\n    {\n      \"name\": \"mode\",\n      \"type\": \"string\",\n      \"value\": \"POSITION\"\n    },\n    {\n      \"name\": \"tracking\",\n      \"type\": \"string\",\n      \"value\": \"SLOWTRACK\"\n    },\n    {\n      \"name\": \"battery\",\n      \"type\": \"long\",\n      \"value\": \"0.75\"\n    },\n    {\n      \"name\": \"position\",\n      \"type\": \"coords\",\n      \"value\": \"45.5, -10.5\",\n      \"metadatas\": [\n        {\n          \"name\": \"location\",\n          \"type\": \"string\",\n          \"value\": \"WGS84\"\n        }\n      ]\n    }\n  ]\n}",
			"folder": "9ce67329-dcc8-ad9e-0aa1-c6f2aae8166b"
		},
		{
			"id": "7ff11738-6d43-4b2d-b965-5c143b998b13",
			"headers": "Accept: application/json\nFiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\nX-Auth-Token: {{TOKEN}}\n",
			"url": " http://{{HOST}}/cb/v1/contextEntities/Fence1",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "GET",
			"data": [],
			"dataMode": "params",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1449679389372,
			"name": "Data API - Get entity Fence1",
			"description": "Fence1 of Alert type is a new entity created by the statement of CEP.\n\nFence1 is an alert triggered  when the tracker enters the area \nor when the tracker exits the area.\n",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"folder": "0d591b6b-0da6-48df-4d93-9b368a8bb46d"
		},
		{
			"id": "80fc5aee-49c0-4984-c302-6b15f6ac235d",
			"headers": "Accept: application/json\nFiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\nX-Auth-Token: {{TOKEN}}\n",
			"url": " http://{{HOST}}/cb/v1/contextEntities",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "GET",
			"data": [],
			"dataMode": "params",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1448644094142,
			"name": "Data API - Get all entities",
			"description": "",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"folder": "7af3780d-4569-aa25-4cfe-b7f3919851eb"
		},
		{
			"id": "8bb2d8aa-bb7a-2607-7496-26ead49fe106",
			"headers": "Accept: application/json\nFiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\nX-Auth-Token: {{TOKEN}}\n",
			"url": " http://{{HOST}}/sth/type/room/id/room1/attributes/temperature?lastN=10",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "GET",
			"data": [],
			"dataMode": "params",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1449062765820,
			"name": "Historical API - Get Tracker Temperature aggregated",
			"description": "give the last 10 temperatures of Tracker",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"folder": "666319f1-27b9-aea1-1a1b-c9a5ca148411"
		},
		{
			"id": "8c271b22-1b2b-75f1-9b07-a774d67ecc35",
			"headers": "Accept: application/json\nFiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\nX-Auth-Token: {{TOKEN}}\nContent-Type: application/json\n",
			"url": " http://{{HOST}}/cb/v1/contextEntities/Room1/attributes/pressure",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "PUT",
			"data": [],
			"dataMode": "raw",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1449580854998,
			"name": "Data API  - Update a single attribute",
			"description": "",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"rawModeData": "{\n    \"value\" : \"763\"\n}",
			"folder": "7af3780d-4569-aa25-4cfe-b7f3919851eb"
		},
		{
			"id": "8d948522-a78f-3e12-c5d5-5099ae2baea6",
			"headers": "Accept: application/json\nFiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\nX-Auth-Token: {{TOKEN}}\n",
			"url": " http://{{HOST}}/cb/v1/contextEntities/Room1/attributes/pressure",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "GET",
			"data": [],
			"dataMode": "params",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1448644029408,
			"name": "Data API - Get a single attribute",
			"description": "",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"folder": "7af3780d-4569-aa25-4cfe-b7f3919851eb"
		},
		{
			"id": "8f12a3a4-4fd4-721d-0c6c-fdcd1f80ced3",
			"headers": "Content-Type: application/json\nFiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\nAccept: application/json\nX-Auth-Token: {{TOKEN}}\n",
			"url": " http://{{HOST}}/cb/v1/contextEntities/type/tracker/id/{{LORA1}}",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "GET",
			"data": [],
			"dataMode": "params",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1449673951309,
			"name": "Lora Agent - Access to tracker's data",
			"description": "The LoRa Agent will automaticaly publish on the Orion Context Broker\ndata sent by the tracker.\n\nEach tracker will have a corresponding Context Entity with:\n\n * entity type set to `tracker`\n * entity id set to the tracker internal ID\n * `battery`, `position`, `mode` and `tracking`.\n\nSee [LoRa Agent documentation](http://emtech-hackathon.readthedocs.org/en/latest/loraagent_api/index.html) for more details.",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"responses": [],
			"folder": "9ce67329-dcc8-ad9e-0aa1-c6f2aae8166b"
		},
		{
			"id": "92a527bb-5cb2-8b6a-fd0c-2982a77a5dd7",
			"headers": "X-Auth-Token: {{TOKEN}}\nAccept: application/json\nContent-Type: application/json\nFiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\n",
			"url": "http://{{HOST}}/cep/v1/admin/config",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "POST",
			"data": [],
			"dataMode": "raw",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1449737603848,
			"name": "CEP API - Add configuration",
			"description": "To allow to configure the entities and the statements of the CEP.\nThe configuration a simple JSON object containing the complete \ndescription of the behavior of the CEP engine \n(a set of EPL statements) and the mapping between the NGSI Context\nEntities and CEP Events.\n\nIn this example, we configure :\n\n- two incoming events **Room1** and **tracker**. For the tracker we use only the time and position attributes\n\n- two outgoing events **Floor1** and **Fence1** with the url of the broker for the notification. **Floor1** contains the temperatures average. **Fence1** is an Alert that is triggered when the tracker enters in the polygon or when the tracker exits the polygon.\n\n- somes statements : the first computes the average of floor's rooms and the others are used for the geofencing computes.\n\n\n    ",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"responses": [],
			"rawModeData": "{\n  \"host\":\"http://{{HOST}}/cep\",\n  \"in\":[\n    {\n      \"id\":\"Room.*\",\n      \"type\":\"Room\",\n      \"isPattern\": true,\n      \"attributes\":[\n        { \"name\":\"temperature\", \"type\":\"double\" },\n        { \"name\":\"floor\", \"type\":\"string\" }\n      ]\n    },\n    {\n        \"id\":\".*\",\n        \"type\":\"tracker\",\n        \"isPattern\": true,\n        \"attributes\":[\n           { \"name\":\"time\", \"type\":\"date\" },\n           { \"name\":\"position\", \"type\":\"geo:point\" }\n        ]\n    }\n  ],\n  \"out\":[\n    {\n      \"id\":\"Floor1\",\n      \"type\":\"Floor\",\n      \"attributes\":[\n        { \"name\":\"temperature\", \"type\":\"double\" }\n      ],\n      \"brokers\": [\n        { \"url\":\"http://{{HOST}}/cb\",\n          \"serviceName\": \"{{Fiware-Service}}\",\n          \"servicePath\": \"{{Fiware-ServicePath}}\",\n          \"authToken\": \"{{TOKEN}}\"\n        }\n      ]\n    },\n    {\n        \"id\":\"Fence1\",\n        \"type\":\"Alert\",\n        \"attributes\":[\n            { \"name\":\"time\", \"type\":\"date\" },\n            { \"name\":\"position\", \"type\":\"geo:point\" },\n            { \"name\":\"inside\", \"type\":\"boolean\" }\n        ],\n      \"brokers\": [\n        { \"url\":\"http://{{HOST}}/cb\",\n          \"serviceName\": \"{{Fiware-Service}}\",\n          \"servicePath\": \"{{Fiware-ServicePath}}\",\n          \"authToken\": \"{{TOKEN}}\"\n        }\n      ]\n    }\n  ],\n  \"statements\":[\n    \"INSERT INTO Floor SELECT floor as id, avg(temperature) as temperature FROM Room.win:time(10 min) GROUP BY floor OUTPUT LAST EVERY 10 sec\",\n    \"CREATE VARIABLE Geometry fence = polygon({point(43.59432, 1.44934), point(43.59508, 1.45156), point(43.5949, 1.45191), point(43.59352, 1.45014), point(43.59432, 1.44934)})\",\n    \"CREATE WINDOW TrackerState.std:unique(id) as Alert\",\n    \"INSERT INTO TrackerInside SELECT *, fence.contains(position) as inside FROM tracker\",\n    \"INSERT INTO FenceCross SELECT a.* FROM pattern [ every a=TrackerInside -> (timer:interval(4 sec) and not TrackerInside(id=a.id, inside!=a.inside)) ]\",\n    \"ON FenceCross fc MERGE TrackerState ts WHERE fc.id = ts.id WHEN NOT MATCHED THEN INSERT SELECT id, time, position, inside WHEN MATCHED AND fc.inside != ts.inside THEN UPDATE SET inside = fc.inside\",\n    \"INSERT INTO Alert SELECT * FROM TrackerState\"\n  ]\n}"
		},
		{
			"id": "9483afe3-ce65-7dc9-3b26-f0eff0f7566a",
			"headers": "Content-Type: application/json\nAccept: application/json\nFiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\nX-Auth-Token: {{TOKEN}}\n",
			"url": "http://{{HOST}}/cb/v1/contextEntities/type/edison-mqtt/id/myEdison-mqtt",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "PUT",
			"data": [],
			"dataMode": "raw",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1449589599483,
			"name": "Step 3  - Send command ON from Orion",
			"description": "To send a command `SET` to a device, you need to simply update the attribute `SET` to  value `on`\nof the entity associated to the device `myEdison-mqtt` on the\nOrion Context Broker.\n\nThe request must be of type `PUT` and contain a body (JSON or XML)\nformatted as defined by the **NGSI** protocol.\n\nAs previously, the path is:\n\n- `/cb` path points to the Orion Context Broker (CB).\n- `/v1` refers to the first version of the NGSI protocol used by Orion CB.\n- `/contextEntities/myEdison-mqtt` point to the device\n\nAccess to Orion CB requires several HTTP headers:\n\n- `Fiware-Service: smartcity`: used for tenant isolation\n- `Fiware-ServicePath: /teamX`: used to isolate multiples devices/services sharing the same IDs.\n- `X-Auth-Token: XXXXXXX`: authorization token\n- `Accept: application/json`: format for the response\n- `Content-Type: application/json`: format of the request\n\nFor more information, please read [UL20 protocol](https://github.com/telefonicaid/fiware-IoTAgent-Cplusplus/blob/develop/doc/UL20_protocol.md) and [commands](https://github.com/telefonicaid/fiware-IoTAgent-Cplusplus/blob/develop/doc/commands.md).\n",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"rawModeData": "{\n    \"attributes\": [\n        {\n            \"name\": \"SET\",\n            \"type\": \"command\",\n            \"value\": \"on\"\n        }\n    ]\n}\n",
			"folder": "12ffe9bd-226f-6600-dd79-5c0d58843a0b"
		},
		{
			"id": "9925fa65-5f87-3ae5-06ae-82f8186683dc",
			"headers": "Accept: application/json\nFiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\nX-Auth-Token: {{TOKEN}}\n",
			"url": "http://{{HOST}}/cb/v1/contextEntities/myEdison-mqtt",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "GET",
			"data": [],
			"dataMode": "params",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1449575945561,
			"name": "Step 6  - Get command status from Orion",
			"description": "The lastest command status can be retrieved from Orion by using the **NGSI** protocol.\n\nHere is an explanation of the request path:\n\n- `/cb` path points to the Orion Context Broker (CB).\n- `/v1` refers to the first version of the NGSI protocol used by Orion CB.\n- `/contextEntities` gives access to all data of a Context Entity.\n- `/myEdison-mqtt` ID of the Context Entity associated to the edison device.\n- `/attributes/SET_status` access the `SET_status` attribute to get the status of the `SET` command.\n\nAccess to Orion CB requires several HTTP headers:\n\n- `Fiware-Service: smartcity`: used for tenant isolation\n- `Fiware-ServicePath: /teamX`: used to isolate multiples devices/services sharing the same IDs.\n- `X-Auth-Token: XXXXXXX`: authorization token\n- `Accept: application/json`: format for the response\n",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"folder": "12ffe9bd-226f-6600-dd79-5c0d58843a0b"
		},
		{
			"id": "995412fe-c753-5ce3-3260-fecede5fcceb",
			"headers": "Accept: application/json\nFiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\nX-Auth-Token: {{TOKEN}}\n",
			"url": "http://{{HOST}}/cb/v1/contextSubscriptions/{{SUBSCRIPTION_ID}}",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "DELETE",
			"data": [],
			"dataMode": "raw",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1448645289696,
			"name": "Data API - Delete subscription",
			"description": "To remove **NGSI** `subscribeContext` request.",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"rawModeData": "",
			"folder": "7af3780d-4569-aa25-4cfe-b7f3919851eb"
		},
		{
			"id": "9ba53c23-93dc-c113-50d7-bb80a73dbdcb",
			"headers": "Fiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\nContent-Type: application/json\nX-Auth-Token: {{TOKEN}}\n",
			"url": "http://{{HOST}}/ul/iot/devices",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "POST",
			"data": [],
			"dataMode": "raw",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1449586457234,
			"name": "Device API - Register a device",
			"description": "",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"rawModeData": "{\n  \"devices\": [\n    {\n      \"device_id\": \"myEdison-mqtt\",\n      \"entity_name\": \"myEdison-mqtt\",\n      \"entity_type\": \"edison-mqtt\",\n      \"protocol\": \"PDI-IoTA-MQTT-UltraLight\",\n      \"attributes\": [\n        {\n          \"object_id\": \"l\",\n          \"name\": \"lux\",\n          \"type\": \"string\"\n        },\n        {\n          \"object_id\": \"p\",\n          \"name\": \"button\",\n          \"type\": \"string\"\n        }\n      ],\n      \"commands\": [\n        {\n          \"name\": \"SET\",\n          \"type\": \"command\",\n          \"value\": \"myEdison-mqtt@ledr|%s\"\n        }\n      ]\n    }\n  ]\n}\n",
			"folder": "9d08bff9-be31-53de-f1b7-fdb47dd7222e"
		},
		{
			"id": "9f3e90b0-776f-d380-01db-e84a0c4edd6c",
			"headers": "Accept: application/json\nFiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\nX-Auth-Token: {{TOKEN}}\n",
			"url": " http://{{HOST}}/cb/v1/contextEntities/Room1",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "DELETE",
			"data": [],
			"dataMode": "raw",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1448644811063,
			"name": "Data API  - Delete entity",
			"description": "",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"rawModeData": "",
			"folder": "7af3780d-4569-aa25-4cfe-b7f3919851eb"
		},
		{
			"id": "ae70aeb8-930d-eda7-f036-3c95081c34b3",
			"headers": "Content-Type: application/json\nAccept: application/json\nFiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\nX-Auth-Token: {{TOKEN}}\n",
			"url": " http://{{HOST}}/cb/v1/contextEntities/type/edison/id/myEdison",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "PUT",
			"data": [],
			"dataMode": "raw",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1449589591097,
			"name": "Step 3  - Send command ON",
			"description": "To send a command `SET` to a device, update the attribute `SET`\nto  value `on` of the Context Entity associated to the device\n`myEdison` on the Orion Context Broker.\n\nThe request must be of type `PUT` and contain a body (JSON or XML)\nformatted as defined by the **NGSI** protocol.\n\nAs previously, the path is:\n\n- `/cb` path points to the Orion Context Broker (CB).\n- `/v1` refers to the first version of the NGSI protocol used by Orion CB.\n- `/contextEntities/type/edison/id/myEdison` points to the myEdison Context Entity.\n\nAccess to Orion CB requires several HTTP headers:\n\n- `Fiware-Service: smartcity`: used for tenant isolation\n- `Fiware-ServicePath: /teamX`: used to isolate multiples devices/services sharing the same IDs.\n- `X-Auth-Token: XXXXXXX`: authorization token\n- `Accept: application/json`: format for the response\n- `Content-Type: application/json`: format of the request\n\nFor more information, please read [UL20 protocol](https://github.com/telefonicaid/fiware-IoTAgent-Cplusplus/blob/develop/doc/UL20_protocol.md) and [commands](https://github.com/telefonicaid/fiware-IoTAgent-Cplusplus/blob/develop/doc/commands.md).\n",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"rawModeData": "{\n  \"attributes\": [\n    {\n      \"name\": \"SET\",\n      \"type\": \"command\",\n      \"value\": \"on\"\n    }\n  ]\n}",
			"folder": "0b144a90-6cec-69eb-e2f1-86b1847d40c4"
		},
		{
			"id": "afca01b6-b091-84c6-61a7-c449683b215a",
			"headers": "Fiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\nContent-Type: application/json\nX-Auth-Token: {{TOKEN}}\n",
			"url": "http://{{HOST}}/ul/iot/devices",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "POST",
			"data": [],
			"dataMode": "raw",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1449574940818,
			"name": "Step 0 - Register a MQTTdevice",
			"description": "First a device must be registered to the IoT Agent (provisioning).\n\nThe IoT Agent supports multiples IoT protocols (MQTT, UL20, CoAP, Sigfox, Lora, etc...).\n\nEach device must be associated to a protocol and a `device_id` and mapped to an NGSI Entity (defined by an `entity_name` and `entity_type`) with their associated attributes and commands.\n\n* Attributes are used by the devices sensors to send data to the cloud.\n* Commands are used to control the devices from the cloud.\n\nSupported protocols:\n\n* `PDI-IoTA-UltraLight`: the UL20 protocol\n* `PDI-IoTA-MQTT-UltraLight`: the MQTT protocol\n\nThe request should return a `201 Created` HTTP response code on a successful operation.\n\n",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"rawModeData": "{\n  \"devices\": [\n    {\n      \"device_id\": \"myEdison-mqtt\",\n      \"entity_name\": \"myEdison-mqtt\",\n      \"entity_type\": \"edison-mqtt\",\n      \"protocol\": \"PDI-IoTA-MQTT-UltraLight\",\n      \"attributes\": [\n        {\n          \"object_id\": \"l\",\n          \"name\": \"lux\",\n          \"type\": \"string\"\n        },\n        {\n          \"object_id\": \"p\",\n          \"name\": \"button\",\n          \"type\": \"string\"\n        }\n      ],\n      \"commands\": [\n        {\n          \"name\": \"SET\",\n          \"type\": \"command\",\n          \"value\": \"myEdison-mqtt@ledr|%s\"\n        }\n      ]\n    }\n  ]\n}\n",
			"folder": "12ffe9bd-226f-6600-dd79-5c0d58843a0b"
		},
		{
			"id": "b4892516-251f-7786-09ca-91ae2f758a5a",
			"headers": "Accept: application/json\nFiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\nX-Auth-Token: {{TOKEN}}\n",
			"url": " http://{{HOST}}/sth/type/room/id/room1/attributes/temperature?lastN=10",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "GET",
			"data": [],
			"dataMode": "params",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1449062765820,
			"name": "Historical API - Get Room1 Temperature aggregated",
			"description": "give the last 10 temperatures of Room1",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"folder": "666319f1-27b9-aea1-1a1b-c9a5ca148411"
		},
		{
			"id": "bc5ea832-254e-89ca-7b0f-205aa487a4e8",
			"headers": "Accept: application/json\nContent-Type: application/json\nFiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\nX-Auth-Token: {{TOKEN}}\n",
			"url": "http://{{HOST}}/cb/v1/contextEntities",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "POST",
			"data": [],
			"dataMode": "raw",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1448643828415,
			"name": "Data API - Add a new Entity",
			"description": "",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"rawModeData": "{\n  \"id\": \"Room1\",\n  \"type\": \"Room\",\n  \"attributes\" : [\n    {\n      \"name\" : \"temperature\",\n      \"type\" : \"float\",\n      \"value\" : \"23\"\n    },\n    {\n      \"name\" : \"pressure\",\n      \"type\" : \"integer\",\n      \"value\" : \"720\"\n    }\n  ]\n}",
			"folder": "7af3780d-4569-aa25-4cfe-b7f3919851eb"
		},
		{
			"id": "c41bc4f3-485d-bc25-09ce-be472f34b4b1",
			"headers": "Fiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\nX-Auth-Token: {{TOKEN}}\n",
			"url": "http://{{HOST}}/ul/iot/devices/myEdison-mqtt",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "GET",
			"data": [],
			"dataMode": "params",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1449583391653,
			"name": "Device API - Get device detail",
			"description": "",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"folder": "9d08bff9-be31-53de-f1b7-fdb47dd7222e"
		},
		{
			"id": "d1aad8bd-08e4-6599-8030-5093f46e316e",
			"headers": "Accept: application/json\nFiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\nX-Auth-Token: {{TOKEN}}\n",
			"url": " http://{{HOST}}/cb/v1/contextEntities/Room1",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "GET",
			"data": [],
			"dataMode": "params",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1448644055247,
			"name": "Data API - Get entity",
			"description": "",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"folder": "7af3780d-4569-aa25-4cfe-b7f3919851eb"
		},
		{
			"id": "d73e94ea-33c3-b8c2-7d99-00924d4a71f4",
			"headers": "Fiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\nX-Auth-Token: {{TOKEN}}\n",
			"url": "http://{{HOST}}/ul/iot/devices",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "GET",
			"data": [],
			"dataMode": "params",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1448643454428,
			"name": "Device API - Get all Devices",
			"description": "",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"folder": "9d08bff9-be31-53de-f1b7-fdb47dd7222e"
		},
		{
			"id": "e3d3a064-81a5-ff06-5c3e-dccd0776b573",
			"headers": "",
			"url": "http://{{HOST}}/ul/iot/d?i=myEdison&k={{TOKEN}}",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "GET",
			"data": [],
			"dataMode": "params",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1449679722353,
			"name": "Step 4 - Poll command",
			"description": "When using the **UL** protocol, a device must frequently\npoll the UL Agent to check for commands to execute.\n\nThe device can either:\n\n * send data (see Step 1) and add the `cmdGet` parameter\n * get the commands by making a `GET` request.\n\n**Note:** you must be quick to call this request just after the Step 3,\nif not the UL Agent will report to Orion Context Broker that\nthe command could not be delivered.\n\nFor more information, please read [UL20 protocol](https://github.com/telefonicaid/fiware-IoTAgent-Cplusplus/blob/develop/doc/UL20_protocol.md) and [commands](https://github.com/telefonicaid/fiware-IoTAgent-Cplusplus/blob/develop/doc/commands.md).\n",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"folder": "0b144a90-6cec-69eb-e2f1-86b1847d40c4"
		},
		{
			"id": "e49c2914-5d7d-6503-5302-52a6fe2ac8c8",
			"headers": "Accept: application/json\nFiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\nX-Auth-Token: {{TOKEN}}\n",
			"url": "http://{{HOST}}/cb/v1/contextEntities/myEdison-mqtt",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "GET",
			"data": [],
			"dataMode": "params",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1449652712434,
			"name": "Step 2  - Access data from Orion",
			"description": "The lastest values associated to a device can be retrieved from Orion by using the **NGSI** protocol.\n\nHere is an explanation of the request path:\n\n- `/cb` path points to the Orion Context Broker (CB).\n- `/v1` refers to the first version of the NGSI protocol used by Orion CB.\n- `/contextEntities` gives access to all data of a Context Entity.\n- `/myEdison-mqtt` ID of the Context Entity associated to the edison device.\n\nAccess to Orion CB requires several HTTP headers:\n\n- `Fiware-Service: smartcity`: used for tenant isolation\n- `Fiware-ServicePath: /teamX`: used to isolate multiples devices/services sharing the same IDs.\n- `X-Auth-Token: XXXXXXX`: authorization token\n- `Accept: application/json`: format for the response\n",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"folder": "12ffe9bd-226f-6600-dd79-5c0d58843a0b"
		},
		{
			"id": "e8477dfb-03c1-8597-b1ea-934c439a50b2",
			"headers": "Accept: application/json\nFiware-Service: {{Fiware-Service}}\nFiware-ServicePath: {{Fiware-ServicePath}}\nX-Auth-Token: {{TOKEN}}\nContent-Type: application/json\n",
			"url": " http://{{HOST}}/cb/v1/contextEntities/Room1",
			"preRequestScript": "",
			"pathVariables": {},
			"method": "PUT",
			"data": [],
			"dataMode": "raw",
			"version": 2,
			"tests": "",
			"currentHelper": "normal",
			"helperAttributes": {},
			"time": 1448644855572,
			"name": "Data API  - Update attributes",
			"description": "",
			"collectionId": "17e37628-bbc2-d9dd-3e9d-11666f0e90cd",
			"rawModeData": "{\n  \"attributes\" : [\n    {\n      \"name\" : \"temperature\",\n      \"type\" : \"float\",\n      \"value\" : \"26.5\"\n    },\n    {\n      \"name\" : \"pressure\",\n      \"type\" : \"integer\",\n      \"value\" : \"763\"\n    }\n  ]\n}",
			"folder": "7af3780d-4569-aa25-4cfe-b7f3919851eb"
		}
	]
}