You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,11 +17,13 @@ directly or programmatically.
17
17
18
18
<h3>Data models</h3>
19
19
20
-
The tutorials defines a series of data-models to be used within the `@context`. More information about the classes and attributes
21
-
used can be found in the following:
20
+
The tutorials defines a series of data-models to be used within the `@context`. More information about the classes and
21
+
attributes used can be found in the following:
22
22
23
-
- <imgsrc="https://json-ld.org/favicon.ico"align="center"height="25"> [Tutorial-specific Data Models](https://ngsi-ld-tutorials.readthedocs.io/en/latest/datamodels.html)
24
-
- <imgsrc="https://json-ld.org/favicon.ico"align="center"height="25"> [Smart Data Models](https://smartdatamodels.org)
| DEBUG | `tutorial:*` | Debug flag used for logging |
213
+
| WEB_APP_PORT | `3000` | Port used by web-app which displays the dummy device data |
214
+
| IOTA_HTTP_HOST | `iot-agent` | The hostname of the IoT Agent for JSON - see below |
215
+
| IOTA_HTTP_PORT | `7896` | The port that the IoT Agent for JSON will be listening on. `7896` is a common default for JSON over HTTP |
216
+
| DUMMY_DEVICES_PORT | `3001` | Port used by the dummy IoT devices to receive commands |
218
217
| DUMMY_DEVICES_API_KEY | `4jggokgpepnvsb2uv4s40d59ov` | Random security key used for JSON interactions - used to ensure the integrity of interactions between the devices and the IoT Agent |
219
-
| DUMMY_DEVICES_TRANSPORT | `HTTP` | The transport protocol used by the dummy IoT devices |
220
-
| DUMMY_DEVICES_PAYLOAD | `JSON` | The payload format used by the dummy IoT devices |
221
-
| IOTA_JSON_LD_CONTEXT | `http://context:3000/data-models/ngsi-context.jsonld` | The location of the `@context` file used to define the device data models |
218
+
| DUMMY_DEVICES_TRANSPORT | `HTTP` | The transport protocol used by the dummy IoT devices |
219
+
| DUMMY_DEVICES_PAYLOAD | `JSON` | The payload format used by the dummy IoT devices |
220
+
| IOTA_JSON_LD_CONTEXT | `http://context:3000/data-models/ngsi-context.jsonld` | The location of the `@context` file used to define the device data models |
222
221
223
222
The other `tutorial` container configuration values described in the YAML file are not used in this tutorial.
224
223
225
224
<h3>IoT Agent for JSON Configuration</h3>
226
225
227
-
The [IoT Agent for JSON](https://fiware-iotagent-json.readthedocs.io/en/latest/) can be instantiated within a
228
-
Docker container. An official Docker image is available from [Docker Hub](https://hub.docker.com/r/fiware/iotagent-json/)
226
+
The [IoT Agent for JSON](https://fiware-iotagent-json.readthedocs.io/en/latest/) can be instantiated within a Docker
227
+
container. An official Docker image is available from [Docker Hub](https://hub.docker.com/r/fiware/iotagent-json/)
229
228
tagged `fiware/iotagent-json`. The necessary configuration can be seen below:
230
229
231
230
```yaml
@@ -280,7 +279,7 @@ The `iot-agent` container is driven by environment variables as shown:
280
279
| IOTA_LOG_LEVEL | `DEBUG` | The log level of the IoT Agent |
281
280
| IOTA_TIMESTAMP | `true` | Whether to supply timestamp information with each measurement received from attached devices |
282
281
| IOTA_CB_NGSI_VERSION | `LD` | Whether to supply use NGSI-LD when sending updates for active attributes |
283
-
| IOTA_AUTOCAST | `true` | Ensure JSON number values are read as numbers not strings |
282
+
| IOTA_AUTOCAST | `true` | Ensure JSON number values are read as numbers not strings |
284
283
| IOTA_MONGO_HOST | `context-db` | The hostname of mongoDB - used for holding device information |
285
284
| IOTA_MONGO_PORT | `27017` | The port mongoDB is listening on |
286
285
| IOTA_MONGO_DB | `iotagentul` | The name of the database used in mongoDB |
@@ -301,10 +300,10 @@ technology which allows to different components isolated into their respective e
301
300
- To install Docker on Linux follow the instructions [here](https://docs.docker.com/install/)
302
301
303
302
**Docker Compose** is a tool for defining and running multi-container Docker applications. A
304
-
[YAML file](https://raw.githubusercontent.com/FIWARE/tutorials.IoT-Agent-JSON/NGSI-LD/docker-compose/orion-ld.yml) is used
305
-
configure the required services for the application. This means all container services can be brought up in a single
306
-
command. Docker Compose is installed by default as part of Docker for Windows and Docker for Mac, however Linux users
307
-
will need to follow the instructions found [here](https://docs.docker.com/compose/install/)
303
+
[YAML file](https://raw.githubusercontent.com/FIWARE/tutorials.IoT-Agent-JSON/NGSI-LD/docker-compose/orion-ld.yml) is
304
+
used configure the required services for the application. This means all container services can be brought up in a
305
+
single command. Docker Compose is installed by default as part of Docker for Windows and Docker for Mac, however Linux
306
+
users will need to follow the instructions found [here](https://docs.docker.com/compose/install/)
308
307
309
308
You can check your current **Docker** and **Docker Compose** versions using the following commands:
310
309
@@ -510,8 +509,7 @@ sending GET or POST requests to:
0 commit comments