Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
biancode committed Apr 15, 2024
2 parents 86138dd + 27f3f81 commit dfd8650
Show file tree
Hide file tree
Showing 22 changed files with 100 additions and 74 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
node: [12, 14, 16, 18]
node: [14, 16, 18, 20]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand Down
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# [0.3.0](https://github.com/BiancoRoyal/node-red-contrib-bacnet/compare/v0.2.7...v0.3.0) (2024-04-15)



## [0.2.7](https://github.com/BiancoRoyal/node-red-contrib-bacnet/compare/v0.2.6...v0.2.7) (2022-09-25)


### Bug Fixes

* Node-RED PLUS changed to PLUS for Node-RED ([bf86f55](https://github.com/BiancoRoyal/node-red-contrib-bacnet/commit/bf86f55dc3521915ec16b8969618fe20ef8ec31d))



## [0.2.6](https://github.com/BiancoRoyal/node-red-contrib-bacnet/compare/v0.2.5...v0.2.6) (2022-07-29)


Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
![Platform Node-RED](http://b.repl.ca/v1/Platform-Node--RED-red.png)
![Node-RED BACnet](http://b.repl.ca/v1/Contribution-BACnet-blue.png)
[![Repository GitHub](http://b.repl.ca/v1/Repository-GitHub-orange.png)](https://github.com/BiancoRoyal/node-red-contrib-bacnet)
![Platform Node-RED](https://img.shields.io/badge/Platform-Node--RED-red.png)
![Node-RED BACnet](https://img.shields.io/badge/Contribution-BACnet-blue.png)
[![Repository GitHub](https://img.shields.io/badge/Repository-GitHub-orange.png)](https://github.com/BiancoRoyal/node-red-contrib-bacnet)
[![NPM download](https://img.shields.io/npm/dm/node-red-contrib-bacnet.svg)](http://www.npm-stats.com/~packages/node-red-contrib-bacnet)
[![Quality Travis CI](http://b.repl.ca/v1/Quality-Travis_CI-green.png)](https://travis-ci.org/BiancoRoyal/node-red-contrib-bacnet)
[![Build Status](https://travis-ci.org/BiancoRoyal/node-red-contrib-bacnet.svg?branch=master)](https://travis-ci.org/BiancoRoyal/node-red-contrib-bacnet)
[![Quality Travis CI](https://img.shields.io/badge/Quality-Travis_CI-green.png)](https://travis-ci.org/BiancoRoyal/node-red-contrib-bacnet)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/6cbeb40ab5604b3ab99e6badc9469e8a)](https://www.codacy.com/gh/BiancoRoyal/node-red-contrib-bacnet?utm_source=github.com&utm_medium=referral&utm_content=BiancoRoyal/node-red-contrib-bacnet&utm_campaign=Badge_Grade)
[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/BiancoRoyal/node-red-contrib-bacnet)

Expand All @@ -19,7 +18,7 @@ For an international area, [Iniationware][6] has provided the [PLUS for Node-RED

### IIoT Webseite Deutschland für Node-RED

Für einen deutschsprachigen Bereich hat [Iniationware][6] die Webseite [PLUS for Node-RED Germany][7] bereitgestellt.
Für einen deutschsprachigen Bereich hat [Iniationware][9] die Webseite [PLUS for Node-RED Germany][7] bereitgestellt.


## Install
Expand Down Expand Up @@ -56,9 +55,10 @@ I'd like to give special thanks to [fh1ch][2] and [Apollon77][4] for their work

[1]:https://github.com/sponsors/biancode
[2]:https://github.com/fh1ch
[3]:https://noderedplus.de/
[3]:https://plus4nodered.com/
[4]:https://github.com/Apollon77
[5]:https://github.com/BiancoRoyal
[6]:https://github.com/Iniationware
[7]:https://www.noderedplus.de/de/
[8]:https://www.noderedplus.de/
[6]:https://iniationware.com/
[7]:https://www.p4nr.com/de/
[8]:https://www.p4nr.com/
[9]:https://iniationware.de/
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
The MIT License
Copyright (c) 2017,2018,2019,2020,2021,2022 Klaus Landsdorf (http://node-red.plus/)
Copyright (c) 2017,2018,2019,2020,2021,2022,2023,2024 Klaus Landsdorf (http://plus4nodered.com/)
All rights reserved.
node-red-contrib-bacnet
*/
Expand Down
20 changes: 10 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "node-red-contrib-bacnet",
"version": "0.2.7",
"version": "0.3.0",
"private": false,
"description": "The BACnet toolbox package for Node-RED.",
"description": "The BACnet toolbox package for Node-RED from the P4NR B2B Community.",
"repository": {
"type": "git",
"url": "git+https://github.com/BiancoRoyal/node-red-contrib-bacnet.git"
Expand All @@ -19,13 +19,13 @@
"fieldbus",
"biancoroyal"
],
"author": "Klaus Landsdorf <[email protected]> (https://bianco-royal.space/)",
"author": "P4NR Support <[email protected]> (https://plus4nodered.com/)",
"contributors": [
{
"name": "Node-RED PLUS <[email protected]> (https://noderedplus.de/)"
"name": "P4NR B2B Community <[email protected]> (https://p4nr.com/)"
},
{
"name": "Iniationware GmbH <github@iniationware.com> (https://iniationware.com/)"
"name": "Iniationware GmbH <team@iniationware.com> (https://iniationware.com/)"
},
{
"name": "Ingo Fischer (Gameforge)"
Expand All @@ -52,7 +52,7 @@
"engines": {
"node": ">=14"
},
"homepage": "https://noderedplus.de/",
"homepage": "https://p4nr.com/",
"scripts": {
"test": "standard --fix && mocha test --recursive --reporter dot --timeout 5000",
"test-with-coverage": "istanbul cover _mocha --report lcovonly -- --recursive --timeout 5000 -R spec && cat ./coverage/lcov.info | codacy-coverage --token $CODACY_COVERAGE_TOKEN && rm -rf ./coverage",
Expand Down
2 changes: 1 addition & 1 deletion src/bacnet-client.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
The MIT License
Copyright (c) 2017,2018,2019,2020,2021,2022 Klaus Landsdorf (http://node-red.plus/)
Copyright (c) 2017,2018,2019,2020,2021,2022,2023,2024 Klaus Landsdorf (http://plus4nodered.com/)
All rights reserved.
node-red-contrib-bacnet
-->
Expand Down
8 changes: 4 additions & 4 deletions src/bacnet-client.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
The MIT License
Copyright (c) 2017,2018,2019,2020,2021,2022 Klaus Landsdorf (http://node-red.plus/)
Copyright (c) 2017,2018,2019,2020,2021,2022,2023,2024 Klaus Landsdorf (http://plus4nodered.com/)
All rights reserved.
node-red-contrib-bacnet
*/
Expand Down Expand Up @@ -72,9 +72,9 @@ module.exports = function (RED) {
node.whoIsExplicit = function (lowLimit, highLimit, deviceIPAddress, cb) {
node.devices = []
const options = {
lowLimit: lowLimit,
highLimit: highLimit,
deviceIPAddress: deviceIPAddress
lowLimit,
highLimit,
deviceIPAddress
}
node.client.whoIs(options)
setTimeout(cb, 3000)
Expand Down
13 changes: 5 additions & 8 deletions src/bacnet-command.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
The MIT License
Copyright (c) 2017,2018,2019,2020,2021,2022 Klaus Landsdorf (http://node-red.plus/)
Copyright (c) 2017,2018,2019,2020,2021,2022,2023,2024 Klaus Landsdorf (http://plus4nodered.com/)
All rights reserved.
node-red-contrib-bacnet
-->
Expand All @@ -23,7 +23,6 @@
server: {type: "BACnet-Client", required:true}
},
credentials: {
username: {type: "text"},
password: {type: "password"}
},
inputs: 1,
Expand Down Expand Up @@ -60,8 +59,6 @@
let commandTimeSync = $('#commandTimeSync')
let commandWhoIsExplicit = $('#commandWhoIsExplicit')



let enableDisableLookupField = $("#node-lookup-enableDisable")
let enableDisableField = $("#node-input-enableDisable")

Expand Down Expand Up @@ -135,11 +132,11 @@
source: node.lookupItems,
minLength: 0,
focus: function (event, ui) {
enableDisableField.val(ui.item.value);
enableDisableField.val(parseInt(ui.item.value) || 0);
return false;
},
select: function (event, ui) {
enableDisableField.val(ui.item.value)
enableDisableField.val(parseInt(ui.item.value) || 0)
return false;
},
close: function (event, ui) {
Expand All @@ -163,11 +160,11 @@
source: node.lookupItems,
minLength: 0,
focus: function (event, ui) {
deviceSateField.val(ui.item.value);
deviceSateField.val(parseInt(ui.item.value) || 0);
return false;
},
select: function (event, ui) {
deviceSateField.val(ui.item.value)
deviceSateField.val(parseInt(ui.item.value) || 0)
return false;
},
close: function (event, ui) {
Expand Down
8 changes: 6 additions & 2 deletions src/bacnet-command.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
The MIT License
Copyright (c) 2017,2018,2019,2020,2021,2022 Klaus Landsdorf (http://node-red.plus/)
Copyright (c) 2017,2018,2019,2020,2021,2022,2023,2024 Klaus Landsdorf (http://plus4nodered.com/)
All rights reserved.
node-red-contrib-bacnet
*/
Expand Down Expand Up @@ -138,7 +138,11 @@ module.exports = function (RED) {
})
}

RED.nodes.registerType('BACnet-Command', BACnetCommand)
RED.nodes.registerType('BACnet-Command', BACnetCommand, {
credentials: {
password: { type: 'password' }
}
})

RED.httpAdmin.get('/bacnet/BacnetEnableDisable', RED.auth.needsPermission('bacnet.CMD.read'), function (req, res) {
const typeList = BACnet.enum.EnableDisable
Expand Down
2 changes: 1 addition & 1 deletion src/bacnet-device.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
The MIT License
Copyright (c) 2017,2018,2019,2020,2021,2022 Klaus Landsdorf (http://node-red.plus/)
Copyright (c) 2017,2018,2019,2020,2021,2022,2023,2024 Klaus Landsdorf (http://plus4nodered.com/)
All rights reserved.
node-red-contrib-bacnet
-->
Expand Down
2 changes: 1 addition & 1 deletion src/bacnet-device.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
The MIT License
Copyright (c) 2017,2018,2019,2020,2021,2022 Klaus Landsdorf (http://node-red.plus/)
Copyright (c) 2017,2018,2019,2020,2021,2022,2023,2024 Klaus Landsdorf (http://plus4nodered.com/)
All rights reserved.
node-red-contrib-bacnet
*/
Expand Down
2 changes: 1 addition & 1 deletion src/bacnet-instance.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
The MIT License
Copyright (c) 2017,2018,2019,2020,2021,2022 Klaus Landsdorf (http://node-red.plus/)
Copyright (c) 2017,2018,2019,2020,2021,2022,2023,2024 Klaus Landsdorf (http://plus4nodered.com/)
All rights reserved.
node-red-contrib-bacnet
-->
Expand Down
2 changes: 1 addition & 1 deletion src/bacnet-instance.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
The MIT License
Copyright (c) 2017,2018,2019,2020,2021,2022 Klaus Landsdorf (http://node-red.plus/)
Copyright (c) 2017,2018,2019,2020,2021,2022,2023,2024 Klaus Landsdorf (http://plus4nodered.com/)
All rights reserved.
node-red-contrib-bacnet
*/
Expand Down
29 changes: 20 additions & 9 deletions src/bacnet-read.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
The MIT License
Copyright (c) 2017,2018,2019,2020,2021,2022 Klaus Landsdorf (http://node-red.plus/)
Copyright (c) 2017,2018,2019,2020,2021,2022,2023,2024 Klaus Landsdorf (http://plus4nodered.com/)
All rights reserved.
node-red-contrib-bacnet
-->
Expand Down Expand Up @@ -62,11 +62,11 @@
source: node.lookupItems,
minLength: 0,
focus: function (event, ui) {
objectTypeField.val(ui.item.value);
objectTypeField.val(parseInt(ui.item.value) || 0);
return false;
},
select: function (event, ui) {
objectTypeField.val(ui.item.value)
objectTypeField.val(parseInt(ui.item.value) || 0)
return false;
},
close: function (event, ui) {
Expand All @@ -93,11 +93,11 @@
source: node.lookupItems,
minLength: 0,
focus: function (event, ui) {
datatypeField.val(ui.item.value);
datatypeField.val(parseInt(ui.item.value) || 0);
return false;
},
select: function (event, ui) {
datatypeField.val(ui.item.value)
datatypeField.val(parseInt(ui.item.value) || 0)
return false;
},
close: function (event, ui) {
Expand Down Expand Up @@ -175,10 +175,21 @@ <h4>Input</h4>

<p>Example of msg.payload.requestArray:</p>
<pre>
const requestArray = [{
objectId: {type: 8, instance: 4194303},
properties: [{id: 8}]
}]
{
"requestArray": [
{
"objectId": {
"type": 8,
"instance": 3457166
},
"properties": [
{
"id": 8
}
]
}
]
}
</pre>

<pre>
Expand Down
2 changes: 1 addition & 1 deletion src/bacnet-read.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
The MIT License
Copyright (c) 2017,2018,2019,2020,2021,2022 Klaus Landsdorf (http://node-red.plus/)
Copyright (c) 2017,2018,2019,2020,2021,2022,2023,2024 Klaus Landsdorf (http://plus4nodered.com/)
All rights reserved.
node-red-contrib-bacnet
*/
Expand Down
Loading

0 comments on commit dfd8650

Please sign in to comment.