- Notifications
You must be signed in to change notification settings - Fork0
The Smart Operating Block Gateway. It's responsible to receive data from the room control units sensors and to send them to the Digital Twins Layer.
License
SmartOperatingBlock/operating-block-gateway
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Create an environment file with:
AZURE_DT_CLIENT_ID
: the id of the appAZURE_DT_CLIENT_SECRET
: the secret of the appAZURE_DT_TENANT_ID
: the id of the tenant
Due to a bug in the node-red-node-serialport library, it is not possible to execute the docker container directly as described in the followingissue
To run the microservice use the following docker command:
#!/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$ dockerexec 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"$ dockerexec 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
In order to simplify we provide a bash script called bootstrap.sh that executes all the instructions above automatically.
About
The Smart Operating Block Gateway. It's responsible to receive data from the room control units sensors and to send them to the Digital Twins Layer.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors4
Uh oh!
There was an error while loading.Please reload this page.