-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(instance): new instance config fix(upgrade): upgrade to the new github state of bacstack from @biancoroyal/bacstack release docs(example): new example feat(errors): translating errors from enum to text fix(read): improved read and read multiple fix(write): improved write and multiple write
- Loading branch information
Showing
18 changed files
with
459 additions
and
195 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<!-- | ||
The MIT License | ||
Copyright (c) 2017 - Klaus Landsdorf (http://bianco-royal.de/) | ||
All rights reserved. | ||
node-red-contrib-bacnet | ||
--> | ||
|
||
<script type="text/javascript"> | ||
RED.nodes.registerType('BACnet-Device', { | ||
category: 'config', | ||
defaults: { | ||
name: {value: ""}, | ||
deviceAddress: {value: ''} | ||
}, | ||
label: function () { | ||
return this.name || "BACnet Device"; | ||
} | ||
}); | ||
</script> | ||
|
||
<script type="text/x-red" data-template-name="BACnet-Device"> | ||
<div class="form-row"> | ||
<label for="node-config-input-name"><i class="icon-tag"></i> <span data-i18n="node-red:common.label.name"></span></label> | ||
<input type="text" id="node-config-input-name" placeholder=""> | ||
</div> | ||
<div class="form-row"> | ||
<label for="node-config-input-deviceAddress"><i class="icon-tag"></i> <span data-i18n="bacnet-contrib.label.deviceAddress"></span></label> | ||
<input type="text" id="node-config-input-deviceAddress" placeholder="127.0.0.1"> | ||
</div> | ||
</script> | ||
|
||
<script type="text/x-red" data-help-name="BACnet-Device"> | ||
<h2>BACnet Device node</h2> | ||
|
||
<h3>BETA</h3> | ||
<a href="https://fh1ch.github.io/node-bacstack/" target="_blank">API Docs</a> | ||
|
||
The device to address via BACnet. | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
The MIT License | ||
Copyright (c) 2017 - Klaus Landsdorf (http://bianco-royal.de/) | ||
All rights reserved. | ||
node-red-contrib-bacnet | ||
*/ | ||
'use strict' | ||
|
||
module.exports = function (RED) { | ||
function BACnetDevice (config) { | ||
RED.nodes.createNode(this, config) | ||
this.name = config.name | ||
this.deviceAddress = config.deviceAddress || '127.0.0.1' | ||
} | ||
|
||
RED.nodes.registerType('BACnet-Device', BACnetDevice) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<!-- | ||
The MIT License | ||
Copyright (c) 2017 - Klaus Landsdorf (http://bianco-royal.de/) | ||
All rights reserved. | ||
node-red-contrib-bacnet | ||
--> | ||
|
||
<script type="text/javascript"> | ||
RED.nodes.registerType('BACnet-Instance', { | ||
category: 'config', | ||
defaults: { | ||
name: {value: ""}, | ||
instanceAddress: {value: 0} | ||
}, | ||
label: function () { | ||
return this.name || "BACnet Instance"; | ||
} | ||
}); | ||
</script> | ||
|
||
<script type="text/x-red" data-template-name="BACnet-Instance"> | ||
<div class="form-row"> | ||
<label for="node-config-input-name"><i class="icon-tag"></i> <span data-i18n="node-red:common.label.name"></span></label> | ||
<input type="text" id="node-config-input-name" placeholder=""> | ||
</div> | ||
<div class="form-row"> | ||
<label for="node-config-input-instanceAddress"><i class="icon-tag"></i> <span data-i18n="bacnet-contrib.label.instanceAddress"></span></label> | ||
<input type="text" id="node-config-input-instanceAddress" placeholder="0"> | ||
</div> | ||
</script> | ||
|
||
<script type="text/x-red" data-help-name="BACnet-Instance"> | ||
<h2>BACnet Instance node</h2> | ||
|
||
<h3>BETA</h3> | ||
<a href="https://fh1ch.github.io/node-bacstack/" target="_blank">API Docs</a> | ||
|
||
The Instance to address via BACnet. | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
The MIT License | ||
Copyright (c) 2017 - Klaus Landsdorf (http://bianco-royal.de/) | ||
All rights reserved. | ||
node-red-contrib-bacnet | ||
*/ | ||
'use strict' | ||
|
||
module.exports = function (RED) { | ||
function BACnetInstance (config) { | ||
RED.nodes.createNode(this, config) | ||
this.name = config.name | ||
this.instanceAddress = parseInt(config.instanceAddress) || 0 | ||
} | ||
|
||
RED.nodes.registerType('BACnet-Instance', BACnetInstance) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.