node-red-contrib-mobius-flow-base 2.5.86-beta.116 → 2.5.86-beta.119

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -42,10 +42,18 @@ POSSIBILITY OF SUCH DAMAGE.
42
42
  <input type="checkbox" id="node-input-detailedOutput" style="display: inline-block; width: auto; vertical-align: top;">
43
43
  <label for="node-input-detailedOutput" style="width: 70%;"> Use detailed outputs</label>
44
44
  </div>
45
- <hr>
45
+ <hr>
46
46
  <div class="form-row">
47
- <label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
48
- <input type="text" id="node-input-name" placeholder="Name">
47
+ <label for="node-input-statusType" style="width: 125px;"><p><font color=##55aa88><i class="fa fa-square"></i></font> Status Display</p></label>
48
+ <select type="text" id="node-input-statusType" style="display: inline-block; width: 65%; vertical-align: right;">
49
+ <option value="timeSinceLastActive">Show time since last active</option>
50
+ <option value="lastUri">Show last URI</option>
51
+ <option value="lastValue">Show last Value</option>
52
+ </select>
53
+ </div>
54
+ <div class="form-row">
55
+ <label for="node-input-name" style="width: 125px;"><i class="fa fa-tag"></i> Name</label>
56
+ <input type="text" id="node-input-name" placeholder="Name" style="display: inline-block; width: 65%; vertical-align: right;">
49
57
  </div>
50
58
  </script>
51
59
 
@@ -54,6 +62,7 @@ POSSIBILITY OF SUCH DAMAGE.
54
62
  category: 'mobius',
55
63
  defaults: {
56
64
  name: {value:""},
65
+ statusType: {value:"timeSinceLastActive"},
57
66
  detailedOutput: {value:false},
58
67
  resource: {value:"", validate:function(v) {
59
68
  if(v === '') { return true; }
@@ -34,6 +34,7 @@ module.exports = function (RED) {
34
34
  this.resource = n.resource;
35
35
  this.priority = n.priority;
36
36
  this.serviceConn = RED.nodes.getNode(n.connection);
37
+ this.statusType = n.statusType;
37
38
  var node = this;
38
39
 
39
40
  if (node.serviceConn) {
@@ -338,7 +338,7 @@ module.exports = function (RED) {
338
338
  }
339
339
  node.users[mobiusNode.id].lastActiveTime = 0;
340
340
  node.users[mobiusNode.id].statusCheckLoop = setInterval(() => {
341
- if (node.connected) {
341
+ if (node.connected && node.users[mobiusNode.id].statusType !== undefined) {
342
342
  node.updateNodeStatus(mobiusNode);
343
343
  }
344
344
  }, 60000);
@@ -47,8 +47,15 @@ POSSIBILITY OF SUCH DAMAGE.
47
47
  </div>
48
48
  <hr>
49
49
  <div class="form-row">
50
- <label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
51
- <input type="text" id="node-input-name" placeholder="Name">
50
+ <label for="node-input-statusType" style="width: 125px;"><p><font color=##55aa88><i class="fa fa-square"></i></font> Status Display</p></label>
51
+ <select type="text" id="node-input-statusType" style="display: inline-block; width: 65%; vertical-align: right;">
52
+ <option value="timeSinceLastActive">Show time since last active</option>
53
+ <option value="lastUri">Show last URI</option>
54
+ </select>
55
+ </div>
56
+ <div class="form-row">
57
+ <label for="node-input-name" style="width: 125px;"><i class="fa fa-tag"></i> Name</label>
58
+ <input type="text" id="node-input-name" placeholder="Name" style="display: inline-block; width: 65%; vertical-align: right;">
52
59
  </div>
53
60
  </script>
54
61
 
@@ -58,6 +65,7 @@ POSSIBILITY OF SUCH DAMAGE.
58
65
  color: "#8abff5",
59
66
  defaults: {
60
67
  name: {value: ""},
68
+ statusType: {value:"timeSinceLastActive"},
61
69
  detailedOutput: {value:false},
62
70
  format: {value: "name", required: true},
63
71
  mobject: {value: "", validate:function(v) {
@@ -36,6 +36,7 @@ module.exports = function (RED) {
36
36
  this.format = n.format;
37
37
  this.mobject = n.mobject;
38
38
  this.serviceConn = RED.nodes.getNode(n.connection);
39
+ this.statusType = n.statusType;
39
40
  var node = this;
40
41
 
41
42
  if (node.serviceConn) {
@@ -40,8 +40,16 @@ POSSIBILITY OF SUCH DAMAGE.
40
40
  </div>
41
41
  <hr>
42
42
  <div class="form-row">
43
- <label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
44
- <input type="text" id="node-input-name" placeholder="Name">
43
+ <label for="node-input-statusType" style="width: 125px;"><p><font color=##55aa88><i class="fa fa-square"></i></font> Status Display</p></label>
44
+ <select type="text" id="node-input-statusType" style="display: inline-block; width: 65%; vertical-align: right;">
45
+ <option value="timeSinceLastActive">Show time since last active</option>
46
+ <option value="lastUri">Show last URI</option>
47
+ <option value="lastValue">Show last Value</option>
48
+ </select>
49
+ </div>
50
+ <div class="form-row">
51
+ <label for="node-input-name" style="width: 125px;"><i class="fa fa-tag"></i> Name</label>
52
+ <input type="text" id="node-input-name" placeholder="Name" style="display: inline-block; width: 65%; vertical-align: right;">
45
53
  </div>
46
54
  </script>
47
55
 
@@ -51,6 +59,7 @@ POSSIBILITY OF SUCH DAMAGE.
51
59
  color:"#8abff5",
52
60
  defaults: {
53
61
  name: {value:""},
62
+ statusType: {value:"timeSinceLastActive"},
54
63
  detailedOutput: {value:false},
55
64
  resource: {value:"", validate:function(v) {
56
65
  if(v === '') { return true; }
@@ -33,6 +33,7 @@ module.exports = function (RED) {
33
33
  this.detailedOutput = n.detailedOutput;
34
34
  this.resource = n.resource;
35
35
  this.serviceConn = RED.nodes.getNode(n.connection);
36
+ this.statusType = n.statusType;
36
37
  var node = this;
37
38
 
38
39
  if (node.serviceConn) {
@@ -40,8 +40,16 @@ POSSIBILITY OF SUCH DAMAGE.
40
40
  </div>
41
41
  <hr>
42
42
  <div class="form-row">
43
- <label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
44
- <input type="text" id="node-input-name" placeholder="Name">
43
+ <label for="node-input-statusType" style="width: 125px;"><p><font color=##55aa88><i class="fa fa-square"></i></font> Status Display</p></label>
44
+ <select type="text" id="node-input-statusType" style="display: inline-block; width: 65%; vertical-align: right;">
45
+ <option value="timeSinceLastActive">Show time since last active</option>
46
+ <option value="lastUri">Show last URI</option>
47
+ <option value="lastValue">Show last Value</option>
48
+ </select>
49
+ </div>
50
+ <div class="form-row">
51
+ <label for="node-input-name" style="width: 125px;"><i class="fa fa-tag"></i> Name</label>
52
+ <input type="text" id="node-input-name" placeholder="Name" style="display: inline-block; width: 65%; vertical-align: right;">
45
53
  </div>
46
54
  </script>
47
55
 
@@ -50,6 +58,7 @@ POSSIBILITY OF SUCH DAMAGE.
50
58
  category: 'mobius',
51
59
  defaults: {
52
60
  name: {value:""},
61
+ statusType: {value:"timeSinceLastActive"},
53
62
  detailedOutput: {value:false},
54
63
  resource: {value:"", required:true, validate:function(v) {
55
64
  let parts = v.split('/');
@@ -33,6 +33,7 @@ module.exports = function (RED) {
33
33
  this.detailedOutput = n.detailedOutput;
34
34
  this.resource = n.resource;
35
35
  this.serviceConn = RED.nodes.getNode(n.connection);
36
+ this.statusType = n.statusType;
36
37
  var node = this;
37
38
 
38
39
  if (node.serviceConn) {
@@ -44,8 +44,16 @@ POSSIBILITY OF SUCH DAMAGE.
44
44
  </div>
45
45
  <hr>
46
46
  <div class="form-row">
47
- <label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
48
- <input type="text" id="node-input-name" placeholder="Name">
47
+ <label for="node-input-statusType" style="width: 125px;"><p><font color=##55aa88><i class="fa fa-square"></i></font> Status Display</p></label>
48
+ <select type="text" id="node-input-statusType" style="display: inline-block; width: 65%; vertical-align: right;">
49
+ <option value="timeSinceLastActive">Show time since last active</option>
50
+ <option value="lastUri">Show last URI</option>
51
+ <option value="lastValue">Show last Value</option>
52
+ </select>
53
+ </div>
54
+ <div class="form-row">
55
+ <label for="node-input-name" style="width: 125px;"><i class="fa fa-tag"></i> Name</label>
56
+ <input type="text" id="node-input-name" placeholder="Name" style="display: inline-block; width: 65%; vertical-align: right;">
49
57
  </div>
50
58
  </script>
51
59
 
@@ -54,6 +62,7 @@ POSSIBILITY OF SUCH DAMAGE.
54
62
  category: 'mobius',
55
63
  defaults: {
56
64
  name: {value:""},
65
+ statusType: {value:"timeSinceLastActive"},
57
66
  detailedOutput: {value:false},
58
67
  resource: {value:"", validate:function(v) {
59
68
  if(v === '') { return true; }
@@ -34,6 +34,7 @@ module.exports = function (RED) {
34
34
  this.resource = n.resource;
35
35
  this.priority = n.priority;
36
36
  this.serviceConn = RED.nodes.getNode(n.connection);
37
+ this.statusType = n.statusType;
37
38
  var node = this;
38
39
 
39
40
  if (node.serviceConn) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-mobius-flow-base",
3
- "version": "2.5.86-beta.116",
3
+ "version": "2.5.86-beta.119",
4
4
  "description": "Node-RED base nodes for Mobius Flow",
5
5
  "main": "index.js",
6
6
  "types": "dist/index.d.ts",