node-red-contrib-mobius-flow-base 2.5.86-beta.109 → 2.5.86-beta.111
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.
|
@@ -238,18 +238,13 @@ module.exports = function (RED) {
|
|
|
238
238
|
node.updateNodeStatus = function (mobiusNode) {
|
|
239
239
|
node.users[mobiusNode.id] = mobiusNode;
|
|
240
240
|
if (!node.users[mobiusNode.id].inError) {
|
|
241
|
-
console.log(`Node ID -> ${node.users[mobiusNode.id].id}`);
|
|
242
|
-
console.log(`Status Type -> ${node.users[mobiusNode.id].statusType}`);
|
|
243
241
|
switch (node.users[mobiusNode.id].statusType) {
|
|
244
242
|
case 'timeSinceLastActive':
|
|
245
|
-
console.log('A');
|
|
246
|
-
console.log('-');
|
|
247
243
|
node.users[mobiusNode.id].status(
|
|
248
244
|
node.buildLastActiveTimeStatus(node.users[mobiusNode.id].lastActiveTime)
|
|
249
245
|
);
|
|
246
|
+
break;
|
|
250
247
|
case 'lastUri':
|
|
251
|
-
console.log('B');
|
|
252
|
-
console.log('--');
|
|
253
248
|
const uri = node.users[mobiusNode.id].latestUri;
|
|
254
249
|
if (uri !== '' && uri !== undefined) {
|
|
255
250
|
node.users[mobiusNode.id].status({
|
|
@@ -258,6 +253,7 @@ module.exports = function (RED) {
|
|
|
258
253
|
text: uri,
|
|
259
254
|
});
|
|
260
255
|
}
|
|
256
|
+
break;
|
|
261
257
|
case 'lastValue':
|
|
262
258
|
const value = node.users[mobiusNode.id].latestValue;
|
|
263
259
|
if (value !== '' && value !== undefined) {
|
|
@@ -267,10 +263,11 @@ module.exports = function (RED) {
|
|
|
267
263
|
text: value,
|
|
268
264
|
});
|
|
269
265
|
}
|
|
266
|
+
break;
|
|
270
267
|
}
|
|
271
268
|
} else {
|
|
272
269
|
node.users[mobiusNode.id].status({
|
|
273
|
-
fill: '
|
|
270
|
+
fill: 'yellow',
|
|
274
271
|
shape: 'dot',
|
|
275
272
|
text: node.users[mobiusNode.id].latestErrMessage,
|
|
276
273
|
});
|
|
@@ -54,7 +54,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
|
|
54
54
|
</div>
|
|
55
55
|
<hr>
|
|
56
56
|
<div class="form-row">
|
|
57
|
-
<label for="node-input-statusType" style="width: 135px;"><i class="fa fa-square
|
|
57
|
+
<label for="node-input-statusType" style="width: 135px;"><p><font color=##55aa88><i class="fa fa-square"></i></font></p></i> Status Display</label>
|
|
58
58
|
<select type="text" id="node-input-statusType" style="display: inline-block; width: 287px; vertical-align: center;">
|
|
59
59
|
<option value="timeSinceLastActive">Show time since last active</option>
|
|
60
60
|
<option value="lastUri">Show last URI</option>
|