From c5fa4a0fd34418e6d8df8346987463f496387554 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 21 Mar 2023 22:19:40 +0000 Subject: [PATCH 01/13] chore(deps): update dependency semantic-release-preconfigured-conventional-commits to v1.1.19 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c41576a..3678989 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "devDependencies": { - "semantic-release-preconfigured-conventional-commits": "1.1.17" + "semantic-release-preconfigured-conventional-commits": "1.1.19" }, "engines": { "node": "18.15" From bded9cbb4d177a6cb3d39e4db35d9b3f264c0902 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 26 Mar 2023 05:22:16 +0000 Subject: [PATCH 02/13] chore(deps): update dependency semantic-release-preconfigured-conventional-commits to v1.1.20 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3678989..609fbc4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "devDependencies": { - "semantic-release-preconfigured-conventional-commits": "1.1.19" + "semantic-release-preconfigured-conventional-commits": "1.1.20" }, "engines": { "node": "18.15" From 6d0b3acc999313d0222bf4e29ec9cd21267ed918 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 28 Mar 2023 05:24:57 +0000 Subject: [PATCH 03/13] chore(deps): update dependency semantic-release-preconfigured-conventional-commits to v1.1.21 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 609fbc4..1208a20 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "devDependencies": { - "semantic-release-preconfigured-conventional-commits": "1.1.20" + "semantic-release-preconfigured-conventional-commits": "1.1.21" }, "engines": { "node": "18.15" From 532d908cc54743e407238f8a543f7f110fa775d4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 28 Mar 2023 05:26:27 +0000 Subject: [PATCH 04/13] chore(deps): update dependency semantic-release-preconfigured-conventional-commits to v1.1.22 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1208a20..865e944 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "devDependencies": { - "semantic-release-preconfigured-conventional-commits": "1.1.21" + "semantic-release-preconfigured-conventional-commits": "1.1.22" }, "engines": { "node": "18.15" From 9e4d1894a9c899f86a6f26806da50273d41d708c Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 5 Apr 2023 17:14:56 +0000 Subject: [PATCH 05/13] chore(deps): update dependency semantic-release-preconfigured-conventional-commits to v1.1.23 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 865e944..b92f70c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "devDependencies": { - "semantic-release-preconfigured-conventional-commits": "1.1.22" + "semantic-release-preconfigured-conventional-commits": "1.1.23" }, "engines": { "node": "18.15" From 4294995be0a357c28b146acce9e937ae1d83ed17 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 11 Apr 2023 18:16:02 +0000 Subject: [PATCH 06/13] chore(deps): update dependency semantic-release-preconfigured-conventional-commits to v1.1.24 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b92f70c..1e92005 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "devDependencies": { - "semantic-release-preconfigured-conventional-commits": "1.1.23" + "semantic-release-preconfigured-conventional-commits": "1.1.24" }, "engines": { "node": "18.15" From 4bf676c1c620cb771b54e7ca988c4f32b6fdeb32 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 14 Apr 2023 02:42:09 +0000 Subject: [PATCH 07/13] chore(deps): update node.js to 18.16 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1e92005..eca470e 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,6 @@ "semantic-release-preconfigured-conventional-commits": "1.1.24" }, "engines": { - "node": "18.15" + "node": "18.16" } } From 7148e4f0898afc4a781f5cdedcc50e4f7bc43f3d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 14 Apr 2023 06:58:57 +0000 Subject: [PATCH 08/13] chore(deps): update dependency semantic-release-preconfigured-conventional-commits to v1.1.25 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index eca470e..4551b82 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "devDependencies": { - "semantic-release-preconfigured-conventional-commits": "1.1.24" + "semantic-release-preconfigured-conventional-commits": "1.1.25" }, "engines": { "node": "18.16" From d99643dcd6ba306bce73634f166b4cb94964b68f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 3 May 2023 02:25:44 +0000 Subject: [PATCH 09/13] chore(deps): update dependency semantic-release-preconfigured-conventional-commits to v1.1.26 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4551b82..a15eeb6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "devDependencies": { - "semantic-release-preconfigured-conventional-commits": "1.1.25" + "semantic-release-preconfigured-conventional-commits": "1.1.26" }, "engines": { "node": "18.16" From dd98bc1b514f34b74cce4b772c3736731e45083d Mon Sep 17 00:00:00 2001 From: "andrea.giulianelli" Date: Mon, 29 May 2023 15:34:52 +0200 Subject: [PATCH 10/13] chore: add utility files --- data/configFiles/resetFiles.sh | 6 ++++++ start.sh | 8 ++++++++ 2 files changed, 14 insertions(+) create mode 100755 data/configFiles/resetFiles.sh create mode 100755 start.sh diff --git a/data/configFiles/resetFiles.sh b/data/configFiles/resetFiles.sh new file mode 100755 index 0000000..058bb87 --- /dev/null +++ b/data/configFiles/resetFiles.sh @@ -0,0 +1,6 @@ +rm token.json +rm arduino_room_mapping.json +rm actuator_room_mapping.json +touch token.json +touch arduino_room_mapping.json +touch actuator_room_mapping.json diff --git a/start.sh b/start.sh new file mode 100755 index 0000000..0a4db66 --- /dev/null +++ b/start.sh @@ -0,0 +1,8 @@ +#!/bin/bash +docker rm operating-block-gateway +docker rm operating-block-gateway-rebuilded +docker run -d --rm --name operating-block-gateway --device /dev/ttyUSB0:/dev/ttyUSB0 -v ./data:/data -p 1880:1880 -e NODE_RED_ENABLE_SAFE_MODE=true nodered/node-red +docker exec operating-block-gateway /bin/sh -c "cd /data; npm install node-red-contrib-https; npm install node-red-node-serialport; npm install node-red-contrib-semaphore" +docker exec operating-block-gateway /bin/sh -c "cd /data; npm rebuild --build-from-source" +docker stop operating-block-gateway +docker run -p 1880:1880 -v ./data:/data --device /dev/ttyUSB0:/dev/ttyUSB0 --group-add dialout --env-file .env --name operating-block-gateway-rebuilded nodered/node-red From 015667021dcdf718af769e8bfb2fe3e0c4867c3b Mon Sep 17 00:00:00 2001 From: "andrea.giulianelli" Date: Mon, 29 May 2023 15:36:55 +0200 Subject: [PATCH 11/13] fix: correct flow concurrency in reading and writing of files --- data/flows.json | 306 +++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 250 insertions(+), 56 deletions(-) diff --git a/data/flows.json b/data/flows.json index d9b7728..9281958 100644 --- a/data/flows.json +++ b/data/flows.json @@ -132,6 +132,24 @@ "addchar": "", "responsetimeout": "10000" }, + { + "id": "791ec7d75a1a4b22", + "type": "semaphore-config", + "name": "room", + "capacity": "1" + }, + { + "id": "180b2c2683969dc1", + "type": "semaphore-config", + "name": "", + "capacity": "1" + }, + { + "id": "79c828b03c9c24ca", + "type": "semaphore-config", + "name": "actuator", + "capacity": "1" + }, { "id": "20a8eea9561054e5", "type": "function", @@ -176,7 +194,7 @@ "type": "function", "z": "09012e75c72a4968", "name": "UpdateTemperature", - "func": "msg.payload = [\n {\n \"op\": \"add\",\n \"path\": \"/temperature\",\n \"value\": parseFloat(msg.temperature_value)\n }\n]\n\nmsg.url = \"https://digital-twin-layer.api.neu.digitaltwins.azure.net/digitaltwins/\"+ msg.room_id +\"?api-version=2020-10-31\"\nmsg.method = \"patch\"\n\nreturn msg; ", + "func": "msg.payload = [\n {\n \"op\": \"add\",\n \"path\": \"/temperature\",\n \"value\": parseFloat(msg.temperature_value)\n }\n]\n\nmsg.url = \"https://digital-twin-layer.api.neu.digitaltwins.azure.net/digitaltwins/\"+ msg.room_id +\"?api-version=2023-02-27-preview\"\nmsg.method = \"patch\"\n\nreturn msg; ", "outputs": 1, "noerr": 0, "initialize": "", @@ -214,13 +232,13 @@ "type": "function", "z": "09012e75c72a4968", "name": "UpdateActuatorState", - "func": "let jsonData = JSON.parse(msg.payload);\n\nmsg.payload = [\n {\n \"op\": \"add\",\n \"path\": \"/intensity_percentage\",\n \"value\": msg.intensity_percentage\n },\n {\n \"op\": \"add\",\n \"path\": \"/power_state\",\n \"value\": msg.state\n },\n {\n \"op\": \"add\",\n \"path\": \"/type\",\n \"value\": jsonData[msg.actuator_id][\"type\"]\n }\n]\n\nmsg.url = \"https://digital-twin-layer.api.neu.digitaltwins.azure.net/digitaltwins/\" + msg.actuator_id + \"?api-version=2020-10-31\"\nmsg.method = \"patch\"\n\nreturn msg; \n", + "func": "let jsonData = JSON.parse(msg.payload);\n\nmsg.payload = [\n {\n \"op\": \"add\",\n \"path\": \"/intensity_percentage\",\n \"value\": msg.intensity_percentage\n },\n {\n \"op\": \"add\",\n \"path\": \"/power_state\",\n \"value\": msg.state\n },\n {\n \"op\": \"add\",\n \"path\": \"/type\",\n \"value\": jsonData[msg.actuator_id][\"type\"]\n }\n]\n\nmsg.url = \"https://digital-twin-layer.api.neu.digitaltwins.azure.net/digitaltwins/\" + msg.actuator_id + \"?api-version=2023-02-27-preview\"\nmsg.method = \"patch\"\n\nreturn msg; \n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], - "x": 1500, + "x": 1860, "y": 700, "wires": [ [ @@ -258,7 +276,7 @@ "initialize": "", "finalize": "", "libs": [], - "x": 1510, + "x": 1450, "y": 1120, "wires": [ [ @@ -281,7 +299,7 @@ "y": 700, "wires": [ [ - "0cec540c56ea23b3" + "6db82f271ea4f2b5" ] ] }, @@ -412,7 +430,7 @@ "initialize": "", "finalize": "", "libs": [], - "x": 960, + "x": 990, "y": 1000, "wires": [ [ @@ -450,11 +468,11 @@ "initialize": "", "finalize": "", "libs": [], - "x": 940, + "x": 730, "y": 1120, "wires": [ [ - "f6e56c9200cdd690" + "42abe5ceec9cb282" ] ] }, @@ -467,7 +485,7 @@ "method": "post", "upload": false, "swaggerDoc": "", - "x": 130, + "x": 90, "y": 1300, "wires": [ [ @@ -475,23 +493,6 @@ ] ] }, - { - "id": "3e879afc64077b51", - "type": "debug", - "z": "09012e75c72a4968", - "name": "response", - "active": true, - "tosidebar": true, - "console": false, - "tostatus": false, - "complete": "payload", - "targetType": "msg", - "statusVal": "", - "statusType": "auto", - "x": 3540, - "y": 780, - "wires": [] - }, { "id": "5c6d578149de144a", "type": "file", @@ -503,11 +504,11 @@ "createDir": false, "overwriteFile": "true", "encoding": "utf8", - "x": 1800, + "x": 1700, "y": 1120, "wires": [ [ - "1a6d9092c128a0bd" + "6043d884856924e5" ] ] }, @@ -542,11 +543,11 @@ "sendError": false, "encoding": "utf8", "allProps": false, - "x": 680, + "x": 730, "y": 1300, "wires": [ [ - "1107f97b9aa49722" + "4cadd432c4275bcf" ] ] }, @@ -561,11 +562,11 @@ "initialize": "", "finalize": "", "libs": [], - "x": 390, + "x": 300, "y": 1300, "wires": [ [ - "8b23d4b6fc9ad1ef" + "d58bb8c70feab022" ] ] }, @@ -580,11 +581,11 @@ "initialize": "", "finalize": "", "libs": [], - "x": 980, + "x": 1200, "y": 1300, "wires": [ [ - "19b43e1a0fb43f50" + "b091a6ca8e4cf197" ] ] }, @@ -600,11 +601,11 @@ "sendError": false, "encoding": "utf8", "allProps": false, - "x": 1270, + "x": 1640, "y": 1300, "wires": [ [ - "0bcfc84520ddafb2" + "d4e5b06fb8d61cd3" ] ] }, @@ -619,7 +620,7 @@ "initialize": "", "finalize": "", "libs": [], - "x": 1500, + "x": 2120, "y": 1300, "wires": [ [ @@ -644,7 +645,7 @@ "checkall": "true", "repair": false, "outputs": 1, - "x": 1890, + "x": 2550, "y": 1300, "wires": [ [ @@ -683,7 +684,7 @@ "finalize": "", "libs": [], "x": 1770, - "y": 180, + "y": 200, "wires": [ [ "4c9a183fe7d56c66" @@ -877,7 +878,7 @@ "type": "function", "z": "09012e75c72a4968", "name": "UpdateHumidity", - "func": "let jsonData = JSON.parse(msg.payload);\n\nmsg.payload = [\n {\n \"op\": \"add\",\n \"path\": \"/humidity\",\n \"value\": parseFloat(msg.humidity_percentage)\n }\n]\n\nmsg.url = \"https://digital-twin-layer.api.neu.digitaltwins.azure.net/digitaltwins/\" + msg.room_id + \"?api-version=2020-10-31\"\nmsg.method = \"patch\"\n\nreturn msg; \n\n", + "func": "\nmsg.payload = [\n {\n \"op\": \"add\",\n \"path\": \"/humidity\",\n \"value\": parseFloat(msg.humidity_percentage)\n }\n]\n\nmsg.url = \"https://digital-twin-layer.api.neu.digitaltwins.azure.net/digitaltwins/\" + msg.room_id + \"?api-version=2023-02-27-preview\"\nmsg.method = \"patch\"\n\nreturn msg; \n\n", "outputs": 1, "noerr": 0, "initialize": "", @@ -896,7 +897,7 @@ "type": "function", "z": "09012e75c72a4968", "name": "UpdateLuminosity", - "func": "let jsonData = JSON.parse(msg.payload);\n\nmsg.payload = [\n {\n \"op\": \"add\",\n \"path\": \"/luminosity\",\n \"value\": parseFloat(msg.luminosity_value)\n }\n]\n\nmsg.url = \"https://digital-twin-layer.api.neu.digitaltwins.azure.net/digitaltwins/\" + msg.room_id + \"?api-version=2020-10-31\"\nmsg.method = \"patch\"\n\nreturn msg; \n", + "func": "\nmsg.payload = [\n {\n \"op\": \"add\",\n \"path\": \"/luminosity\",\n \"value\": parseFloat(msg.luminosity_value)\n }\n]\n\nmsg.url = \"https://digital-twin-layer.api.neu.digitaltwins.azure.net/digitaltwins/\" + msg.room_id + \"?api-version=2023-02-27-preview\"\nmsg.method = \"patch\"\n\nreturn msg; \n", "outputs": 1, "noerr": 0, "initialize": "", @@ -915,7 +916,7 @@ "type": "function", "z": "09012e75c72a4968", "name": "UpdatePersonInside", - "func": "let jsonData = JSON.parse(msg.payload);\n\nmsg.payload = [\n {\n \"op\": \"add\",\n \"path\": \"/presence_inside\",\n \"value\": msg.person_inside\n }\n]\n\nmsg.url = \"https://digital-twin-layer.api.neu.digitaltwins.azure.net/digitaltwins/\" + msg.room_id + \"?api-version=2020-10-31\"\nmsg.method = \"patch\"\n\nreturn msg; \n", + "func": "\nmsg.payload = [\n {\n \"op\": \"add\",\n \"path\": \"/presence_inside\",\n \"value\": msg.person_inside\n }\n]\n\nmsg.url = \"https://digital-twin-layer.api.neu.digitaltwins.azure.net/digitaltwins/\" + msg.room_id + \"?api-version=2023-02-27-preview\"\nmsg.method = \"patch\"\n\nreturn msg; \n", "outputs": 1, "noerr": 0, "initialize": "", @@ -959,11 +960,11 @@ "initialize": "", "finalize": "", "libs": [], - "x": 1010, + "x": 810, "y": 1180, "wires": [ [ - "3dd49201b59cb7f9" + "40f0a07093025a0f" ] ] }, @@ -981,7 +982,9 @@ "x": 1870, "y": 1180, "wires": [ - [] + [ + "78df5571fbe092a5" + ] ] }, { @@ -995,7 +998,7 @@ "initialize": "", "finalize": "", "libs": [], - "x": 1690, + "x": 2350, "y": 1300, "wires": [ [ @@ -1015,7 +1018,7 @@ "sendError": false, "encoding": "utf8", "allProps": false, - "x": 1220, + "x": 1190, "y": 1120, "wires": [ [ @@ -1210,7 +1213,8 @@ "y": 180, "wires": [ [ - "1453612b8d0a384b" + "1453612b8d0a384b", + "ef9e572b7ecb3f6b" ] ] }, @@ -1283,7 +1287,7 @@ "initialize": "", "finalize": "", "libs": [], - "x": 2070, + "x": 2150, "y": 1120, "wires": [ [ @@ -1296,7 +1300,7 @@ "type": "function", "z": "09012e75c72a4968", "name": "createRelationshipWithRoom", - "func": "let relID = msg.room_id + \"-\" + msg.actuator_id\nmsg.url = \"https://digital-twin-layer.api.neu.digitaltwins.azure.net/digitaltwins/\" + msg.room_id + \"/relationships/\" + relID + \"?api-version=2020-10-31\"\nmsg.method = \"put\"\nmsg.payload = \n {\n \"$targetId\": msg.actuator_id,\n \"$relationshipName\": \"rel_has_actuator\"\n }\n\n\n\nreturn msg\n", + "func": "let relID = msg.room_id + \"-\" + msg.actuator_id\nmsg.url = \"https://digital-twin-layer.api.neu.digitaltwins.azure.net/digitaltwins/\" + msg.room_id + \"/relationships/\" + relID + \"?api-version=2023-02-27-preview\"\nmsg.method = \"put\"\nmsg.payload = \n {\n \"$targetId\": msg.actuator_id,\n \"$relationshipName\": \"rel_has_actuator\"\n }\n\n\n\nreturn msg\n", "outputs": 1, "noerr": 0, "initialize": "", @@ -1345,7 +1349,7 @@ "z": "09012e75c72a4968", "name": "", "serial": "94b8abb47e4cb1f2", - "x": 2090, + "x": 2690, "y": 1300, "wires": [] }, @@ -1430,7 +1434,7 @@ "type": "function", "z": "09012e75c72a4968", "name": "setPatientOnOperatingTable", - "func": "let patient_id = msg.payload[\"value\"][0][\"$dtId\"]\n\nmsg.payload = [\n {\n \"op\": \"add\",\n \"path\": \"/is_on_operating_table\",\n \"value\": true\n }\n]\n\nmsg.url = \"https://digital-twin-layer.api.neu.digitaltwins.azure.net/digitaltwins/\" + patient_id + \"?api-version=2020-10-31\"\nmsg.method = \"patch\"\nreturn msg;", + "func": "let patient_id = msg.payload[\"value\"][0][\"$dtId\"]\n\nmsg.payload = [\n {\n \"op\": \"add\",\n \"path\": \"/is_on_operating_table\",\n \"value\": true\n }\n]\n\nmsg.url = \"https://digital-twin-layer.api.neu.digitaltwins.azure.net/digitaltwins/\" + patient_id + \"?api-version=2023-02-27-preview\"\nmsg.method = \"patch\"\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", @@ -1671,11 +1675,12 @@ "type": "subflow:70865c1f352e8a0c", "z": "09012e75c72a4968", "name": "", - "x": 3370, + "x": 3490, "y": 780, "wires": [ [ - "3e879afc64077b51" + "3e879afc64077b51", + "e2b6b538afd2a18f" ] ] }, @@ -1691,11 +1696,11 @@ "sendError": false, "encoding": "utf8", "allProps": false, - "x": 1230, + "x": 1370, "y": 700, "wires": [ [ - "c4db83d867cd1492" + "31383764f8c72806" ] ] }, @@ -1791,5 +1796,194 @@ "3f215909208d5fb3" ] ] + }, + { + "id": "3e879afc64077b51", + "type": "debug", + "z": "09012e75c72a4968", + "name": "response", + "active": true, + "tosidebar": true, + "console": false, + "tostatus": false, + "complete": "payload", + "targetType": "msg", + "statusVal": "", + "statusType": "auto", + "x": 3680, + "y": 780, + "wires": [] + }, + { + "id": "42abe5ceec9cb282", + "type": "semaphore-take", + "z": "09012e75c72a4968", + "config": "79c828b03c9c24ca", + "name": "", + "x": 960, + "y": 1120, + "wires": [ + [ + "f6e56c9200cdd690" + ] + ] + }, + { + "id": "6043d884856924e5", + "type": "semaphore-leave", + "z": "09012e75c72a4968", + "config": "79c828b03c9c24ca", + "name": "", + "x": 1950, + "y": 1120, + "wires": [ + [ + "1a6d9092c128a0bd" + ] + ] + }, + { + "id": "6db82f271ea4f2b5", + "type": "semaphore-take", + "z": "09012e75c72a4968", + "config": "79c828b03c9c24ca", + "name": "", + "x": 1140, + "y": 700, + "wires": [ + [ + "0cec540c56ea23b3" + ] + ] + }, + { + "id": "31383764f8c72806", + "type": "semaphore-leave", + "z": "09012e75c72a4968", + "config": "79c828b03c9c24ca", + "name": "", + "x": 1630, + "y": 700, + "wires": [ + [ + "c4db83d867cd1492" + ] + ] + }, + { + "id": "40f0a07093025a0f", + "type": "semaphore-take", + "z": "09012e75c72a4968", + "config": "791ec7d75a1a4b22", + "name": "", + "x": 1100, + "y": 1180, + "wires": [ + [ + "3dd49201b59cb7f9" + ] + ] + }, + { + "id": "78df5571fbe092a5", + "type": "semaphore-leave", + "z": "09012e75c72a4968", + "config": "791ec7d75a1a4b22", + "name": "", + "x": 2130, + "y": 1180, + "wires": [ + [] + ] + }, + { + "id": "d58bb8c70feab022", + "type": "semaphore-take", + "z": "09012e75c72a4968", + "config": "79c828b03c9c24ca", + "name": "", + "x": 500, + "y": 1300, + "wires": [ + [ + "8b23d4b6fc9ad1ef" + ] + ] + }, + { + "id": "4cadd432c4275bcf", + "type": "semaphore-leave", + "z": "09012e75c72a4968", + "config": "79c828b03c9c24ca", + "name": "", + "x": 970, + "y": 1300, + "wires": [ + [ + "1107f97b9aa49722" + ] + ] + }, + { + "id": "b091a6ca8e4cf197", + "type": "semaphore-take", + "z": "09012e75c72a4968", + "config": "791ec7d75a1a4b22", + "name": "", + "x": 1420, + "y": 1300, + "wires": [ + [ + "19b43e1a0fb43f50" + ] + ] + }, + { + "id": "d4e5b06fb8d61cd3", + "type": "semaphore-leave", + "z": "09012e75c72a4968", + "config": "791ec7d75a1a4b22", + "name": "", + "x": 1870, + "y": 1300, + "wires": [ + [ + "0bcfc84520ddafb2" + ] + ] + }, + { + "id": "ef9e572b7ecb3f6b", + "type": "debug", + "z": "09012e75c72a4968", + "name": "debug 1", + "active": true, + "tosidebar": true, + "console": false, + "tostatus": false, + "complete": "payload", + "targetType": "msg", + "statusVal": "", + "statusType": "auto", + "x": 1600, + "y": 80, + "wires": [] + }, + { + "id": "e2b6b538afd2a18f", + "type": "debug", + "z": "09012e75c72a4968", + "name": "debug 2", + "active": false, + "tosidebar": true, + "console": false, + "tostatus": false, + "complete": "url", + "targetType": "msg", + "statusVal": "", + "statusType": "auto", + "x": 3640, + "y": 680, + "wires": [] } ] \ No newline at end of file From 29f0bbe28090439097aa27c420fa88b695c7671e Mon Sep 17 00:00:00 2001 From: "andrea.giulianelli" Date: Mon, 29 May 2023 15:37:53 +0200 Subject: [PATCH 12/13] chore: update README with new dependencies --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 563d915..01a55e0 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ To run the microservice use the following docker command: $ docker rm operating-block-gateway $ docker rm operating-block-gateway-rebuilded $ docker run -d --rm --name operating-block-gateway --device /dev/ttyUSB0:/dev/ttyUSB0 -v ./data:/data -p 1880:1880 -e NODE_RED_ENABLE_SAFE_MODE=true nodered/node-red -$ docker exec operating-block-gateway /bin/sh -c "cd /data; npm install node-red-contrib-https; npm install node-red-node-serialport" +$ docker exec operating-block-gateway /bin/sh -c "cd /data; npm install node-red-contrib-https; npm install node-red-node-serialport; npm install node-red-contrib-semaphore" $ docker exec operating-block-gateway /bin/sh -c "cd /data; npm rebuild --build-from-source" $ docker stop operating-block-gateway $ docker run -p 1880:1880 -v ./data:/data --device /dev/ttyUSB0:/dev/ttyUSB0 --group-add dialout --env-file .env --name operating-block-gateway-rebuilded nodered/node-red From e6484f4a8a9cc774321aec46e34bd36629c398d1 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Mon, 29 May 2023 13:38:27 +0000 Subject: [PATCH 13/13] chore(release)!: [skip ci] 1.1.1 released --- CHANGELOG.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b71c49..f0295de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,29 @@ +## [1.1.1](https://github.com/SmartOperatingBlock/operating-block-gateway/compare/1.1.0...1.1.1) (2023-05-29) + + +### Bug Fixes + +* correct flow concurrency in reading and writing of files ([0156670](https://github.com/SmartOperatingBlock/operating-block-gateway/commit/015667021dcdf718af769e8bfb2fe3e0c4867c3b)) + + +### Dependency updates + +* **deps:** update dependency semantic-release-preconfigured-conventional-commits to v1.1.19 ([c5fa4a0](https://github.com/SmartOperatingBlock/operating-block-gateway/commit/c5fa4a0fd34418e6d8df8346987463f496387554)) +* **deps:** update dependency semantic-release-preconfigured-conventional-commits to v1.1.20 ([bded9cb](https://github.com/SmartOperatingBlock/operating-block-gateway/commit/bded9cbb4d177a6cb3d39e4db35d9b3f264c0902)) +* **deps:** update dependency semantic-release-preconfigured-conventional-commits to v1.1.21 ([6d0b3ac](https://github.com/SmartOperatingBlock/operating-block-gateway/commit/6d0b3acc999313d0222bf4e29ec9cd21267ed918)) +* **deps:** update dependency semantic-release-preconfigured-conventional-commits to v1.1.22 ([532d908](https://github.com/SmartOperatingBlock/operating-block-gateway/commit/532d908cc54743e407238f8a543f7f110fa775d4)) +* **deps:** update dependency semantic-release-preconfigured-conventional-commits to v1.1.23 ([9e4d189](https://github.com/SmartOperatingBlock/operating-block-gateway/commit/9e4d1894a9c899f86a6f26806da50273d41d708c)) +* **deps:** update dependency semantic-release-preconfigured-conventional-commits to v1.1.24 ([4294995](https://github.com/SmartOperatingBlock/operating-block-gateway/commit/4294995be0a357c28b146acce9e937ae1d83ed17)) +* **deps:** update dependency semantic-release-preconfigured-conventional-commits to v1.1.25 ([7148e4f](https://github.com/SmartOperatingBlock/operating-block-gateway/commit/7148e4f0898afc4a781f5cdedcc50e4f7bc43f3d)) +* **deps:** update dependency semantic-release-preconfigured-conventional-commits to v1.1.26 ([d99643d](https://github.com/SmartOperatingBlock/operating-block-gateway/commit/d99643dcd6ba306bce73634f166b4cb94964b68f)) +* **deps:** update node.js to 18.16 ([4bf676c](https://github.com/SmartOperatingBlock/operating-block-gateway/commit/4bf676c1c620cb771b54e7ca988c4f32b6fdeb32)) + + +### General maintenance + +* add utility files ([dd98bc1](https://github.com/SmartOperatingBlock/operating-block-gateway/commit/dd98bc1b514f34b74cce4b772c3736731e45083d)) +* update README with new dependencies ([29f0bbe](https://github.com/SmartOperatingBlock/operating-block-gateway/commit/29f0bbe28090439097aa27c420fa88b695c7671e)) + ## [1.1.0](https://github.com/SmartOperatingBlock/operating-block-gateway/compare/1.0.0...1.1.0) (2023-03-21)