Skip to content

Commit 39cc912

Browse files
committed
Switch to JSON IoT Agent
1 parent 72d687c commit 39cc912

7 files changed

Lines changed: 5 additions & 12 deletions

‎.gitpod.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ports:
2020
port: 4041
2121
onOpen: ignore
2222
- name: IoT Agent (South Port)
23-
description: Ultralight HTTP measures
23+
description: JSON HTTP measures
2424
port: 7896
2525
onOpen: ignore
2626
- name: MongoDB

‎FIWARE Querying Time Series Data (Mongo-DB).postman_collection.json‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎README.ja.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ Enabler の組み合わせを使用して、履歴コンテキスト・データ
136136
このチュートリアルの目的のために、一連のダミー IoT デバイスが作成され、Context
137137
Broker に接続されます。使用しているアーキテクチャとプロトコルの詳細は
138138
、[IoT Sensors チュートリアル](https://github.com/FIWARE/tutorials.IoT-Sensors/tree/NGSI-v2)に
139-
あります。各デバイスの状態は、次の UltraLight デバイス・モニタの Web ページで確
139+
あります。各デバイスの状態は、次の JSON デバイス・モニタの Web ページで確
140140
認できます : `http://localhost:3000/device/monitor`
141141

142142
![FIWARE Monitor](https://fiware.github.io/tutorials.Short-Term-History/img/device-monitor.png)

‎docker-compose/cygnus-sth-comet.yml‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ services:
9494
- IOTA_DEFAULT_RESOURCE=/iot/json
9595
- IOTA_AMQP_DISABLED=true
9696
- IOTA_MQTT_DISABLED=true
97-
healthcheck:
98-
interval: 5s
9997

10098

10199
# Tutorial acts as a series of dummy IoT Sensors over HTTP
@@ -127,7 +125,6 @@ services:
127125
- "WEB_APP_PORT=${TUTORIAL_APP_PORT}" # Port used by the content provider proxy and web-app for viewing data
128126
- "IOTA_HTTP_HOST=iot-agent"
129127
- "IOTA_HTTP_PORT=${IOTA_SOUTH_PORT}"
130-
- "IOTA_DEFAULT_RESOURCE=/iot/json"
131128
- "DUMMY_DEVICES_PORT=${TUTORIAL_DUMMY_DEVICE_PORT}" # Port used by the dummy IOT devices to receive commands
132129
- "DUMMY_DEVICES_TRANSPORT=HTTP" # Default transport used by dummy Io devices
133130
- "DUMMY_DEVICES_PAYLOAD=JSON"

‎docker-compose/sth-comet.yml‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ services:
8787
- IOTA_DEFAULT_RESOURCE=/iot/json
8888
- IOTA_AMQP_DISABLED=true
8989
- IOTA_MQTT_DISABLED=true
90-
healthcheck:
91-
interval: 5s
9290

9391

9492
# Tutorial acts as a series of dummy IoT Sensors over HTTP
@@ -120,7 +118,6 @@ services:
120118
- "WEB_APP_PORT=${TUTORIAL_APP_PORT}" # Port used by the content provider proxy and web-app for viewing data
121119
- "IOTA_HTTP_HOST=iot-agent"
122120
- "IOTA_HTTP_PORT=${IOTA_SOUTH_PORT}"
123-
- "IOTA_DEFAULT_RESOURCE=/iot/json"
124121
- "DUMMY_DEVICES_PORT=${TUTORIAL_DUMMY_DEVICE_PORT}" # Port used by the dummy IOT devices to receive commands
125122
- "DUMMY_DEVICES_TRANSPORT=HTTP" # Default transport used by dummy Io devices
126123
- "DUMMY_DEVICES_PAYLOAD=JSON"

‎provision-devices‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ printf "⏳ Provisioning IoT devices "
1414

1515

1616
#
17-
# Create a service groups for all UltraLight IoT devices
17+
# Create a service groups for all JSON IoT devices
1818
#
1919

2020
curl -s -o /dev/null -X POST \

‎services‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ waitForOrion () {
105105

106106
waitForIoTAgent () {
107107
echo -e "\n⏳ Waiting for \033[1;36mIoT-Agent\033[0m to be available\n"
108-
while ! [ `docker inspect --format='{{.State.Health.Status}}' fiware-iot-agent` == "healthy" ]
109-
108+
while [ `curl -s -o /dev/null -w %{http_code} 'http://localhost:4041/version'` != "200" ]
110109
do
111110
echo -e "IoT Agent HTTP state: " `curl -s -o /dev/null -w %{http_code} 'http://localhost:4041/version'` " (waiting for 200)"
112111
sleep 1

0 commit comments

Comments
 (0)