Releases: NubeIO/iot-engine
Release v0.3.2
Release version v0.3.2
Release v0.3.1
Bump v0.3.1
Release v0.3.0
Bump v0.3.0
Bump v0.2.1
To add correct library dependencies for able to write BACnet point
Bump v0.2.0
- Support Marc issue(blocking request) when discover
BACnet ObjectviaNodeRedworkflow - Try fallback to
stringif any exception during parsingBACnet objecttojson - Make BACnet Service can start as HTTP server
- Get rid of Bios Installer or some stuffs
Instruction
-
Install
javasudo apt update -y \ && sudo apt install openjdk-8-jre -y \ && sudo apt autoclean -y \ && sudo apt autoremove -y
-
Download binary into
/tmpsudo curl -L https://github.com/zero88/gh-release-downloader/releases/download/v1.1.1/ghrd -o /usr/local/bin/ghrd \ && sudo chmod +x /usr/local/bin/ghrd \ && sudo ln -s /usr/local/bin/ghrd /usr/bin/ghrd \ && sudo apt install jq -y
ghrd -a .*bacnet.* -x -t <token_if_repo_is_private> NubeIO/iot-engine -o /tmp
-
Register it as service by one liner:
sudo mkdir -p /app/ \ && u=$(whoami) \ && sudo chown -R $u:$u /app \ && unzip -d /app /tmp/nubeio-edge-connector-bacnet-0.2.0.zip \ && mv /app/nubeio-edge-connector-bacnet-0.2.0 /app/bacnet \ && sudo cp -rf /app/bacnet/conf/nubeio-bacnet.service /etc/systemd/system \ && sudo systemctl daemon-reload \ && sudo systemctl enable nubeio-bacnet.service \ && sudo systemctl restart nubeio-bacnet.service
-
Application will start at port:
8888 -
Verify service:
systemctl status nubeio-bacnet.service -
Verify port:
netstat -tupln | grep 8888 -
Verify service:
curl -i localhost:8888/gw/index?_pretty=true -
Any configuration can be modified at
/app/conf/bacnet.json. Example config -
Example API. Remember change it to
localhost:8888
Tweak config
Assume you install jar file in /app/bacnet.
-
Logging:
/app/bacnet/conf/logback.xml- Change log level to
info=>error:
sed -i 's/info/error/g' /app/bacnet/conf/logback.xml
- Change log level to
-
App config:
/app/bacnet/conf/bacnet.json- Change log level to
8888=>9999:
sed -i 's/"port": 8888/"port": 9999/g' /app/bacnet/conf/bacnet.json - Fixed Bacnet Device Id to
81234(normally it is random number from80000to90000)
jq --arg deviceId 81234 '.__app__.__bacnet__ += {deviceId: $deviceId}' < conf/bacnet.json > /tmp/bacnet.json && cp -rf /tmp/bacnet.json /app/bacnet/conf/bacnet.json
- Change log level to
-
Service:
/app/bacnet/conf/nubeio-bacnet.service- Change
memory usagefrom295Mto150Mb
sed -i 's/-XX:MaxRAM=295m -XX:MinRAMPercentage=50.0/-XX:MaxRAM=150m -XX:MinRAMPercentage=25.0/g' /app/bacnet/conf/nubeio-bacnet.service
- Change
All changes then require restart service.
sudo systemctl restart nubeio-bacnet.serviceIn case of update memory usage in conf, need to re-update service by
sudo cp -rf /app/bacnet/conf/nubeio-bacnet.service /etc/systemd/system \
&& sudo systemctl daemon-reload \
&& sudo systemctl enable nubeio-bacnet.service \
&& sudo systemctl restart nubeio-bacnet.serviceRemoved out SQL conditional restriction
SQL conditional query is removed out and it will be controlled by the PostgreSQL itself.
Site Field Edition
Boolean field icon_on_collapsed is added on site for UI support.
Password Issue Fix
Update password by parent descendants was not working.
Dynamic Layout Site
- Image life-cycle
- Adding fields on Site for dynamic layout support
- Dockerized backend
Migration
This project is migrated from pre-existing another project and did changes over here. And some of the deployments were done with that previous project, and this is the migrated version of that project.