New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-red-contrib-prib-functions

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-contrib-prib-functions - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

documentation/hostAvailable.JPG

11

package.json
{
"name": "node-red-contrib-prib-functions",
"version": "0.6.0",
"version": "0.7.0",
"description": "Node-RED added node functions.",

@@ -23,2 +23,4 @@ "dependencies": {},

"injector",
"host available",
"host status",
"load",

@@ -34,2 +36,3 @@ "load injector",

"translate",
"host available",
"transform"

@@ -41,6 +44,8 @@ ],

"dataAnalysis": "dataAnalysis/dataAnalysis.js",
"hostAvailable": "testing/hostAvailable.js",
"load-injector": "testing/load-injector.js",
"os": "nodejs/os.js",
"monitorflow": "monitor/monitorflow.js",
"spawnProcess": "spawnProcess/spawnProcess.js",
"load-injector": "testing/load-injector.js",
"test": "testing/test.js",
"monitorflow": "monitor/monitorflow.js",
"transform": "transform/transform.js"

@@ -47,0 +52,0 @@ }

@@ -11,2 +11,4 @@ # node-red-contrib-prib-functions

* Spawn Process
* Host Available
* node.js os metrics

@@ -118,4 +120,31 @@ ------------------------------------------------------------

------------------------------------------------------------
## Host Available
Test if host is available sending msg to up or down port so action can be taken.
Message only sent on state change or if message is sent which doesn't have topic refreshHostAvailable.
This topic forces a check rather than time check which can be set.
![Host Available](documentation/hostAvailable.JPG "Host Available")
Test example:
![Host Available example](documentation/hostAvailableTest.JPG "Host Available example")
------------------------------------------------------------
## os
The metrics from node.js os
![os](documentation/os.JPG "os")
Test example:
![os example](documentation/osTest.JPG "os example")
------------------------------------------------------------
# Install

@@ -135,2 +164,5 @@

0.7.0
* add Host Available
0.6.0

@@ -137,0 +169,0 @@ * add Spawn Process

[
{
"id": "6b920647.655458",
"type": "tab",
"label": "Spawn Process",
"disabled": false,
"info": ""
},
{
"id": "28ca4c20.a5ab74",
"type": "tab",
"label": "Test",
"disabled": false,
"info": ""
},
{
"id": "ec2abbe.c751f48",
"type": "tab",
"label": "os (nodejs)",
"disabled": false,
"info": "Calles to require('os') of node.js "
},
{
"id": "dc02dc92.d7af9",
"type": "tab",
"label": "Data Analysis",
"disabled": false,
"info": ""
},
{
"id": "d131d94a.914f68",

@@ -10,2 +38,1114 @@ "type": "tab",

{
"id": "c36e06d8.8e8608",
"type": "tab",
"label": "Load Injector",
"disabled": false,
"info": ""
},
{
"id": "1b1a01b.85535fe",
"type": "tab",
"label": "Monitor",
"disabled": false,
"info": ""
},
{
"id": "e44c66df.27c998",
"type": "tab",
"label": "Append",
"disabled": false,
"info": ""
},
{
"id": "e3bf9a6d.f0a408",
"type": "tab",
"label": "Host Available",
"disabled": false,
"info": ""
},
{
"id": "d827b9f.3c31348",
"type": "debug",
"z": "dc02dc92.d7af9",
"name": "max",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "result",
"targetType": "msg",
"x": 610,
"y": 40,
"wires": []
},
{
"id": "33f362eb.79afae",
"type": "inject",
"z": "dc02dc92.d7af9",
"name": "",
"topic": "error input",
"payload": "",
"payloadType": "date",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 160,
"y": 40,
"wires": [
[
"c617e924.a49238"
]
]
},
{
"id": "1786a010.2bfac",
"type": "Data Analysis",
"z": "dc02dc92.d7af9",
"name": "avg",
"action": "avg",
"x": 390,
"y": 100,
"wires": [
[
"f5cb69b1.14be68",
"d8bccff5.7118e"
]
]
},
{
"id": "91fd8be8.778f28",
"type": "inject",
"z": "dc02dc92.d7af9",
"name": "[1,2,3,4,5]",
"topic": "",
"payload": "[1,2,3,4,5]",
"payloadType": "json",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 120,
"y": 140,
"wires": [
[
"c617e924.a49238"
]
]
},
{
"id": "c2d04280.4ecc7",
"type": "inject",
"z": "dc02dc92.d7af9",
"name": "[]",
"topic": "",
"payload": "[]",
"payloadType": "json",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 110,
"y": 80,
"wires": [
[
"c617e924.a49238"
]
]
},
{
"id": "c79bc54b.7629a8",
"type": "inject",
"z": "dc02dc92.d7af9",
"name": "[1,2,3,4,5,6]",
"topic": "",
"payload": "[1,2,3,4,5,6]",
"payloadType": "json",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 130,
"y": 200,
"wires": [
[
"c617e924.a49238"
]
]
},
{
"id": "c617e924.a49238",
"type": "Data Analysis",
"z": "dc02dc92.d7af9",
"name": "max",
"action": "max",
"x": 390,
"y": 40,
"wires": [
[
"d827b9f.3c31348",
"1786a010.2bfac"
]
]
},
{
"id": "f5cb69b1.14be68",
"type": "debug",
"z": "dc02dc92.d7af9",
"name": "avg",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "result",
"targetType": "msg",
"x": 610,
"y": 100,
"wires": []
},
{
"id": "d8bccff5.7118e",
"type": "Data Analysis",
"z": "dc02dc92.d7af9",
"name": "min",
"action": "min",
"x": 390,
"y": 160,
"wires": [
[
"91775e65.6049a",
"eaf00d7a.c3f67"
]
]
},
{
"id": "91775e65.6049a",
"type": "Data Analysis",
"z": "dc02dc92.d7af9",
"name": "median",
"action": "median",
"x": 400,
"y": 220,
"wires": [
[
"83d3e382.f1651",
"a34cc523.41afa8"
]
]
},
{
"id": "83d3e382.f1651",
"type": "Data Analysis",
"z": "dc02dc92.d7af9",
"name": "range",
"action": "range",
"x": 390,
"y": 260,
"wires": [
[
"5598d96f.c11598",
"2d7d52ca.55ff6e"
]
]
},
{
"id": "5598d96f.c11598",
"type": "Data Analysis",
"z": "dc02dc92.d7af9",
"name": "sum",
"action": "sum",
"x": 390,
"y": 300,
"wires": [
[
"e91a04ce.6e8e58",
"fc82915f.589ec"
]
]
},
{
"id": "eaf00d7a.c3f67",
"type": "debug",
"z": "dc02dc92.d7af9",
"name": "min",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "result",
"targetType": "msg",
"x": 610,
"y": 160,
"wires": []
},
{
"id": "a34cc523.41afa8",
"type": "debug",
"z": "dc02dc92.d7af9",
"name": "median",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "result",
"targetType": "msg",
"x": 620,
"y": 220,
"wires": []
},
{
"id": "2d7d52ca.55ff6e",
"type": "debug",
"z": "dc02dc92.d7af9",
"name": "range",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "result",
"targetType": "msg",
"x": 610,
"y": 260,
"wires": []
},
{
"id": "e91a04ce.6e8e58",
"type": "debug",
"z": "dc02dc92.d7af9",
"name": "sum",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "result",
"targetType": "msg",
"x": 610,
"y": 300,
"wires": []
},
{
"id": "fc82915f.589ec",
"type": "Data Analysis",
"z": "dc02dc92.d7af9",
"name": "variance",
"action": "variance",
"x": 400,
"y": 340,
"wires": [
[
"2982a762.be97c8",
"b5a51e2c.9404d"
]
]
},
{
"id": "2982a762.be97c8",
"type": "Data Analysis",
"z": "dc02dc92.d7af9",
"name": "stdDev",
"action": "stdDev",
"x": 400,
"y": 380,
"wires": [
[
"e1e42881.656bd8",
"b5f9ccf8.bb356"
]
]
},
{
"id": "e1e42881.656bd8",
"type": "Data Analysis",
"z": "dc02dc92.d7af9",
"name": "skew",
"action": "skew",
"x": 390,
"y": 420,
"wires": [
[
"f1769de2.6327c",
"1274a91f.51ee37"
]
]
},
{
"id": "b5a51e2c.9404d",
"type": "debug",
"z": "dc02dc92.d7af9",
"name": "variance",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "result",
"targetType": "msg",
"x": 620,
"y": 340,
"wires": []
},
{
"id": "b5f9ccf8.bb356",
"type": "debug",
"z": "dc02dc92.d7af9",
"name": "stdDev",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "result",
"targetType": "msg",
"x": 620,
"y": 380,
"wires": []
},
{
"id": "f1769de2.6327c",
"type": "debug",
"z": "dc02dc92.d7af9",
"name": "skew",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "result",
"targetType": "msg",
"x": 610,
"y": 420,
"wires": []
},
{
"id": "1274a91f.51ee37",
"type": "Data Analysis",
"z": "dc02dc92.d7af9",
"name": "movingAvgCumulative",
"action": "movingAvgCumulative",
"term": "3",
"x": 440,
"y": 460,
"wires": [
[
"412c6a9c.c71e24",
"80c6bc48.f209b"
]
]
},
{
"id": "412c6a9c.c71e24",
"type": "debug",
"z": "dc02dc92.d7af9",
"name": "movingAvgCumulative",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "result",
"targetType": "msg",
"x": 680,
"y": 460,
"wires": []
},
{
"id": "6f8b3750.c57468",
"type": "debug",
"z": "dc02dc92.d7af9",
"name": "movingAvgSimple",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "result",
"targetType": "msg",
"x": 670,
"y": 500,
"wires": []
},
{
"id": "80c6bc48.f209b",
"type": "Data Analysis",
"z": "dc02dc92.d7af9",
"name": "movingAvgSimple",
"action": "movingAvgSimple",
"term": "3",
"x": 430,
"y": 500,
"wires": [
[
"6f8b3750.c57468",
"f9615e43.774bf"
]
]
},
{
"id": "5557efd1.21d32",
"type": "inject",
"z": "dc02dc92.d7af9",
"name": "[1]",
"topic": "",
"payload": "[1]",
"payloadType": "json",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 110,
"y": 260,
"wires": [
[
"c617e924.a49238"
]
]
},
{
"id": "e9adb07a.99ac5",
"type": "Data Analysis",
"z": "dc02dc92.d7af9",
"name": "movingAvgExponential",
"action": "movingAvgExponential",
"term": "0.5",
"x": 440,
"y": 580,
"wires": [
[
"b0656286.a900e",
"94ea21f2.be9ee"
]
]
},
{
"id": "f9615e43.774bf",
"type": "Data Analysis",
"z": "dc02dc92.d7af9",
"name": "movingAvgWeighted",
"action": "movingAvgWeighted",
"term": "3",
"x": 440,
"y": 540,
"wires": [
[
"e9adb07a.99ac5",
"f51b83da.3982"
]
]
},
{
"id": "f51b83da.3982",
"type": "debug",
"z": "dc02dc92.d7af9",
"name": "movingAvgWeighted",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "result",
"targetType": "msg",
"x": 680,
"y": 540,
"wires": []
},
{
"id": "b0656286.a900e",
"type": "debug",
"z": "dc02dc92.d7af9",
"name": "movingAvgExponential",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "result",
"targetType": "msg",
"x": 680,
"y": 580,
"wires": []
},
{
"id": "94ea21f2.be9ee",
"type": "Data Analysis",
"z": "dc02dc92.d7af9",
"name": "deltas",
"action": "deltas",
"term": "3",
"x": 390,
"y": 620,
"wires": [
[
"9ebcb5b5.5d0c28",
"4d1c48f7.0cc6c8"
]
]
},
{
"id": "9ebcb5b5.5d0c28",
"type": "debug",
"z": "dc02dc92.d7af9",
"name": "deltas",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "result",
"targetType": "msg",
"x": 630,
"y": 620,
"wires": []
},
{
"id": "764ab4bb.0ddbec",
"type": "inject",
"z": "dc02dc92.d7af9",
"name": "[8,4,5,3,2,1]",
"topic": "",
"payload": "[8,4,5,3,2,1]",
"payloadType": "json",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 130,
"y": 320,
"wires": [
[
"c617e924.a49238"
]
]
},
{
"id": "8b712934.2f0f98",
"type": "debug",
"z": "dc02dc92.d7af9",
"name": "deltaNormalised",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "result",
"targetType": "msg",
"x": 660,
"y": 660,
"wires": []
},
{
"id": "4d1c48f7.0cc6c8",
"type": "Data Analysis",
"z": "dc02dc92.d7af9",
"name": "deltaNormalised",
"action": "deltaNormalised",
"term": "3",
"x": 420,
"y": 660,
"wires": [
[
"8b712934.2f0f98",
"72860c84.e21b94"
]
]
},
{
"id": "a5379a35.561068",
"type": "debug",
"z": "dc02dc92.d7af9",
"name": "normalise",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "result",
"targetType": "msg",
"x": 640,
"y": 700,
"wires": []
},
{
"id": "959bde16.939b",
"type": "debug",
"z": "dc02dc92.d7af9",
"name": "standardization",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "result",
"targetType": "msg",
"x": 660,
"y": 740,
"wires": []
},
{
"id": "72860c84.e21b94",
"type": "Data Analysis",
"z": "dc02dc92.d7af9",
"name": "normalise",
"action": "normalize",
"term": "3",
"x": 400,
"y": 700,
"wires": [
[
"a5379a35.561068",
"9b1c3d1f.d2206"
]
]
},
{
"id": "9b1c3d1f.d2206",
"type": "Data Analysis",
"z": "dc02dc92.d7af9",
"name": "standardization",
"action": "standardize",
"term": "3",
"dataProperty": "",
"x": 420,
"y": 740,
"wires": [
[
"959bde16.939b"
]
]
},
{
"id": "518f05cf.2472ec",
"type": "test",
"z": "28ca4c20.a5ab74",
"name": "",
"topic": "",
"payload": "testdata",
"payloadType": "str",
"result": "testdata",
"resultType": "str",
"x": 340,
"y": 20,
"wires": [
[
"5d179b7b.ee43e4",
"1495216.b3aa5df"
],
[]
]
},
{
"id": "5d179b7b.ee43e4",
"type": "debug",
"z": "28ca4c20.a5ab74",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"x": 590,
"y": 20,
"wires": []
},
{
"id": "1495216.b3aa5df",
"type": "delay",
"z": "28ca4c20.a5ab74",
"name": "",
"pauseType": "delay",
"timeout": "5",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"x": 320,
"y": 100,
"wires": [
[
"518f05cf.2472ec"
]
]
},
{
"id": "d7ff99eb.0e4958",
"type": "delay",
"z": "28ca4c20.a5ab74",
"name": "",
"pauseType": "delay",
"timeout": "5",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"x": 320,
"y": 220,
"wires": [
[
"b581a1ac.f7689"
]
]
},
{
"id": "b581a1ac.f7689",
"type": "test",
"z": "28ca4c20.a5ab74",
"name": "",
"topic": "",
"payload": "testa",
"payloadType": "str",
"result": "testb",
"resultType": "str",
"x": 330,
"y": 140,
"wires": [
[
"d7ff99eb.0e4958"
],
[
"5d179b7b.ee43e4"
]
]
},
{
"id": "d1bd00c2.e9e28",
"type": "inject",
"z": "28ca4c20.a5ab74",
"name": "",
"topic": "",
"payload": "",
"payloadType": "date",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 120,
"y": 20,
"wires": [
[
"518f05cf.2472ec",
"b581a1ac.f7689",
"ef951fd.7aab4e",
"d1885806.f63d18",
"cd4ab264.5724b",
"accec44c.f68d18"
]
]
},
{
"id": "ef951fd.7aab4e",
"type": "test",
"z": "28ca4c20.a5ab74",
"name": "",
"topic": "",
"payload": "{\"a\":1,\"b\":\"two\"}",
"payloadType": "json",
"result": "{\"a\":1,\"b\":\"two\"}",
"resultType": "json",
"x": 340,
"y": 260,
"wires": [
[
"caeb1444.0bed98"
],
[]
]
},
{
"id": "caeb1444.0bed98",
"type": "delay",
"z": "28ca4c20.a5ab74",
"name": "",
"pauseType": "delay",
"timeout": "5",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"x": 340,
"y": 340,
"wires": [
[
"ef951fd.7aab4e"
]
]
},
{
"id": "d1885806.f63d18",
"type": "test",
"z": "28ca4c20.a5ab74",
"name": "",
"topic": "",
"payload": "{\"a\":1,\"b\":\"two\"}",
"payloadType": "str",
"result": "{\"a\":1,\"b\":\"three\"}",
"resultType": "str",
"x": 350,
"y": 380,
"wires": [
[
"9e01ab7b.7bd648"
],
[
"5d179b7b.ee43e4"
]
]
},
{
"id": "9e01ab7b.7bd648",
"type": "delay",
"z": "28ca4c20.a5ab74",
"name": "",
"pauseType": "delay",
"timeout": "5",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"x": 340,
"y": 460,
"wires": [
[
"d1885806.f63d18"
]
]
},
{
"id": "3d5db885.6ac558",
"type": "delay",
"z": "28ca4c20.a5ab74",
"name": "",
"pauseType": "delay",
"timeout": "5",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"x": 340,
"y": 580,
"wires": [
[
"cd4ab264.5724b"
]
]
},
{
"id": "cd4ab264.5724b",
"type": "test",
"z": "28ca4c20.a5ab74",
"name": "",
"topic": "",
"payload": "{\"a\":1,\"b\":[1,2,3,4]}",
"payloadType": "str",
"result": "{\"a\":1,\"b\":[1,2,3,4]}",
"resultType": "str",
"x": 350,
"y": 500,
"wires": [
[
"3d5db885.6ac558"
],
[]
]
},
{
"id": "5a260f08.74326",
"type": "Load Injector",
"z": "c36e06d8.8e8608",
"name": "",
"thinktimemin": "100",
"thinktimemax": "5000",
"runtime": "30",
"payload": "",
"payloadType": "date",
"x": 530,
"y": 140,
"wires": [
[
"868b9519.20a318"
]
]
},
{
"id": "868b9519.20a318",
"type": "function",
"z": "c36e06d8.8e8608",
"name": "Message count",
"func": "var count = context.get('count')||0;\ncontext.set('count',++count);\nnode.status({fill:\"green\",shape:\"ring\",text:\"count: \"+count});\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 760,
"y": 140,
"wires": [
[]
]
},
{
"id": "e809e514.8a1968",
"type": "append",
"z": "e44c66df.27c998",
"name": "append",
"files": [
{
"value": "./testData.txt",
"type": "require"
},
{
"value": "********",
"type": "text"
}
],
"x": 300,
"y": 140,
"wires": [
[
"5a70aa7.febd454"
]
]
},
{
"id": "8e5dc14b.24323",
"type": "inject",
"z": "e44c66df.27c998",
"name": "",
"topic": "",
"payload": "",
"payloadType": "str",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 110,
"y": 140,
"wires": [
[
"e809e514.8a1968"
]
]
},
{
"id": "5a70aa7.febd454",
"type": "debug",
"z": "e44c66df.27c998",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"x": 520,
"y": 140,
"wires": []
},
{
"id": "406d019c.becac",
"type": "Monitor Flow",
"z": "1b1a01b.85535fe",
"name": "",
"x": 370,
"y": 60,
"wires": [
[]
]
},
{
"id": "4a43c10c.d1709",
"type": "Load Injector",
"z": "1b1a01b.85535fe",
"name": "",
"thinktimemin": 1000,
"thinktimemax": 10000,
"runtime": 60,
"payload": "",
"payloadType": "date",
"x": 150,
"y": 60,
"wires": [
[
"406d019c.becac"
]
]
},
{
"id": "2b7661c3.80f6ce",
"type": "Data Analysis",
"z": "dc02dc92.d7af9",
"name": "",
"action": "min",
"term": "3",
"dataProperty": "msg.payload.data",
"x": 420,
"y": 800,
"wires": [
[
"29c0ea98.add2f6"
]
]
},
{
"id": "29c0ea98.add2f6",
"type": "test",
"z": "dc02dc92.d7af9",
"name": "",
"topic": "",
"payload": "{\"data\":[1,2,3]}",
"payloadType": "json",
"result": "1",
"resultType": "num",
"resultProperty": "msg.result",
"x": 150,
"y": 800,
"wires": [
[
"2b7661c3.80f6ce"
],
[]
]
},
{
"id": "accec44c.f68d18",
"type": "test",
"z": "28ca4c20.a5ab74",
"name": "",
"topic": "",
"payload": "",
"payloadType": "date",
"result": "",
"resultType": "date",
"resultProperty": "msg.testResult",
"x": 320,
"y": 640,
"wires": [
[
"9626703d.7b332"
],
[]
]
},
{
"id": "9626703d.7b332",
"type": "function",
"z": "28ca4c20.a5ab74",
"name": "",
"func": "msg.testResult=msg.payload\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 570,
"y": 640,
"wires": [
[
"accec44c.f68d18"
]
]
},
{
"id": "d16f6aac.17c398",

@@ -204,2 +1344,170 @@ "type": "transform",

{
"id": "db91b0ad.b61de",
"type": "debug",
"z": "6b920647.655458",
"name": "ok",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"x": 590,
"y": 60,
"wires": []
},
{
"id": "a95b1128.59d64",
"type": "inject",
"z": "6b920647.655458",
"name": "",
"topic": "start",
"payload": "",
"payloadType": "date",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 160,
"y": 120,
"wires": [
[
"9d6e2f02.616fb",
"b66f2ddf.2e5f",
"f4e534ab.6065c8",
"1e12318.261bfcf"
]
]
},
{
"id": "9d6e2f02.616fb",
"type": "Spawn Process",
"z": "6b920647.655458",
"name": "",
"process": "ls",
"os": "Linux",
"autoStart": "false",
"workingDirectory": "",
"arguments": "",
"x": 350,
"y": 120,
"wires": [
[
"db91b0ad.b61de"
],
[
"fcab13a.20bd4f"
],
[
"f955f3eb.42f37"
]
]
},
{
"id": "b66f2ddf.2e5f",
"type": "Spawn Process",
"z": "6b920647.655458",
"name": "",
"process": "ping",
"os": "Windows_NT",
"autoStart": "false",
"workingDirectory": "",
"arguments": "127.0.0.1",
"x": 350,
"y": 40,
"wires": [
[
"db91b0ad.b61de"
],
[
"fcab13a.20bd4f"
],
[
"f955f3eb.42f37"
]
]
},
{
"id": "f4e534ab.6065c8",
"type": "Spawn Process",
"z": "6b920647.655458",
"name": "",
"process": "failAsNotFound",
"os": "",
"autoStart": "true",
"workingDirectory": "",
"arguments": "",
"x": 360,
"y": 240,
"wires": [
[
"db91b0ad.b61de"
],
[
"fcab13a.20bd4f"
],
[
"f955f3eb.42f37"
]
]
},
{
"id": "fcab13a.20bd4f",
"type": "debug",
"z": "6b920647.655458",
"name": "error",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"x": 590,
"y": 160,
"wires": []
},
{
"id": "f955f3eb.42f37",
"type": "debug",
"z": "6b920647.655458",
"name": "exit",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"x": 590,
"y": 240,
"wires": []
},
{
"id": "1e12318.261bfcf",
"type": "Spawn Process",
"z": "6b920647.655458",
"name": "windows cmd.exe",
"process": "cmd.exe",
"os": "Windows_NT",
"autoStart": "true",
"workingDirectory": "../",
"arguments": "/c echo %cd% %ENV1% %ENV2aa%",
"env": {
"ENV1": "t1",
"ENV2aa": "t2"
},
"x": 360,
"y": 340,
"wires": [
[
"db91b0ad.b61de"
],
[
"fcab13a.20bd4f"
],
[
"f955f3eb.42f37"
]
]
},
{
"id": "363f9520.3297ea",

@@ -219,3 +1527,450 @@ "type": "transform",

]
},
{
"id": "b6966d43.48dad",
"type": "os",
"z": "ec2abbe.c751f48",
"name": "",
"property": "arch",
"x": 270,
"y": 40,
"wires": [
[
"fe2aff3d.3e8ae"
],
[]
]
},
{
"id": "fe2aff3d.3e8ae",
"type": "debug",
"z": "ec2abbe.c751f48",
"name": "os out",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"x": 590,
"y": 400,
"wires": []
},
{
"id": "ee7dc89e.5bdc78",
"type": "inject",
"z": "ec2abbe.c751f48",
"name": "",
"topic": "",
"payload": "",
"payloadType": "date",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 100,
"y": 320,
"wires": [
[
"b6966d43.48dad",
"4dde3509.5cdbac",
"a1a2cdcc.95591",
"cd75d822.b23348",
"a4063e0c.2f476",
"c7ac74fa.737f08",
"c1a9d7e0.ab7ae8",
"81fe605a.09e3f",
"38f770ca.40e65",
"d47a2d72.2026a",
"6a0d658a.aa087c",
"63da27da.0161e8",
"f1b1d278.a193e",
"915aec25.7a42d",
"19ba8c14.ceea54",
"1aa3c9c2.913db6",
"f676512b.62c67",
"6b18f8b5.b88128"
]
]
},
{
"id": "4dde3509.5cdbac",
"type": "os",
"z": "ec2abbe.c751f48",
"name": "",
"property": "EOL",
"x": 270,
"y": 80,
"wires": [
[
"fe2aff3d.3e8ae"
],
[]
]
},
{
"id": "a1a2cdcc.95591",
"type": "os",
"z": "ec2abbe.c751f48",
"name": "",
"property": "constants",
"x": 280,
"y": 120,
"wires": [
[
"fe2aff3d.3e8ae"
],
[]
]
},
{
"id": "cd75d822.b23348",
"type": "os",
"z": "ec2abbe.c751f48",
"name": "",
"property": "cpus",
"x": 270,
"y": 160,
"wires": [
[
"fe2aff3d.3e8ae"
],
[]
]
},
{
"id": "a4063e0c.2f476",
"type": "os",
"z": "ec2abbe.c751f48",
"name": "",
"property": "endianness",
"x": 290,
"y": 200,
"wires": [
[
"fe2aff3d.3e8ae"
],
[]
]
},
{
"id": "c7ac74fa.737f08",
"type": "os",
"z": "ec2abbe.c751f48",
"name": "",
"property": "freemem",
"x": 280,
"y": 240,
"wires": [
[
"fe2aff3d.3e8ae"
],
[]
]
},
{
"id": "c1a9d7e0.ab7ae8",
"type": "os",
"z": "ec2abbe.c751f48",
"name": "",
"property": "getPriority",
"x": 280,
"y": 280,
"wires": [
[
"fe2aff3d.3e8ae"
],
[]
]
},
{
"id": "81fe605a.09e3f",
"type": "os",
"z": "ec2abbe.c751f48",
"name": "",
"property": "homedir",
"x": 280,
"y": 320,
"wires": [
[
"fe2aff3d.3e8ae"
],
[]
]
},
{
"id": "38f770ca.40e65",
"type": "os",
"z": "ec2abbe.c751f48",
"name": "",
"property": "hostname",
"x": 280,
"y": 360,
"wires": [
[
"fe2aff3d.3e8ae"
],
[]
]
},
{
"id": "d47a2d72.2026a",
"type": "os",
"z": "ec2abbe.c751f48",
"name": "",
"property": "loadavg",
"x": 280,
"y": 400,
"wires": [
[
"fe2aff3d.3e8ae"
],
[]
]
},
{
"id": "6a0d658a.aa087c",
"type": "os",
"z": "ec2abbe.c751f48",
"name": "",
"property": "networkInterfaces",
"x": 310,
"y": 440,
"wires": [
[
"fe2aff3d.3e8ae"
],
[]
]
},
{
"id": "63da27da.0161e8",
"type": "os",
"z": "ec2abbe.c751f48",
"name": "",
"property": "release",
"x": 280,
"y": 480,
"wires": [
[
"fe2aff3d.3e8ae"
],
[]
]
},
{
"id": "f1b1d278.a193e",
"type": "os",
"z": "ec2abbe.c751f48",
"name": "",
"property": "setPriority",
"x": 280,
"y": 520,
"wires": [
[],
[
"a0b6d733.372e38"
]
]
},
{
"id": "915aec25.7a42d",
"type": "os",
"z": "ec2abbe.c751f48",
"name": "",
"property": "tmpdir",
"x": 270,
"y": 560,
"wires": [
[
"fe2aff3d.3e8ae"
],
[]
]
},
{
"id": "19ba8c14.ceea54",
"type": "os",
"z": "ec2abbe.c751f48",
"name": "",
"property": "totalmem",
"x": 280,
"y": 600,
"wires": [
[
"fe2aff3d.3e8ae"
],
[]
]
},
{
"id": "1aa3c9c2.913db6",
"type": "os",
"z": "ec2abbe.c751f48",
"name": "",
"property": "type",
"x": 270,
"y": 640,
"wires": [
[
"fe2aff3d.3e8ae"
],
[]
]
},
{
"id": "f676512b.62c67",
"type": "os",
"z": "ec2abbe.c751f48",
"name": "",
"property": "uptime",
"x": 270,
"y": 680,
"wires": [
[
"fe2aff3d.3e8ae"
],
[]
]
},
{
"id": "6b18f8b5.b88128",
"type": "os",
"z": "ec2abbe.c751f48",
"name": "",
"property": "userInfo",
"x": 280,
"y": 720,
"wires": [
[
"fe2aff3d.3e8ae"
],
[]
]
},
{
"id": "a0b6d733.372e38",
"type": "debug",
"z": "ec2abbe.c751f48",
"name": "error",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"x": 580,
"y": 480,
"wires": []
},
{
"id": "5e9cde59.1bffd",
"type": "Host Available",
"z": "e3bf9a6d.f0a408",
"name": "",
"host": "localhost",
"port": "9092",
"checkInterval": "60",
"x": 400,
"y": 60,
"wires": [
[
"6af0fdbe.2b8a54"
],
[
"1ab3e373.5ee33d"
]
]
},
{
"id": "65f71a6a.1a73c4",
"type": "Host Available",
"z": "e3bf9a6d.f0a408",
"name": "",
"host": "localhost",
"port": "1880",
"checkInterval": "",
"x": 380,
"y": 140,
"wires": [
[
"6af0fdbe.2b8a54"
],
[
"1ab3e373.5ee33d"
]
]
},
{
"id": "6af0fdbe.2b8a54",
"type": "debug",
"z": "e3bf9a6d.f0a408",
"name": "host ok",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"x": 620,
"y": 60,
"wires": []
},
{
"id": "1ab3e373.5ee33d",
"type": "debug",
"z": "e3bf9a6d.f0a408",
"name": "host down",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"x": 630,
"y": 140,
"wires": []
},
{
"id": "56826b02.f665d4",
"type": "inject",
"z": "e3bf9a6d.f0a408",
"name": "",
"topic": "",
"payload": "",
"payloadType": "date",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 100,
"y": 140,
"wires": [
[
"65f71a6a.1a73c4",
"5e9cde59.1bffd"
]
]
},
{
"id": "e851c639.4df1a8",
"type": "inject",
"z": "e3bf9a6d.f0a408",
"name": "refreshHostAvailable",
"topic": "refreshHostAvailable",
"payload": "",
"payloadType": "date",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 130,
"y": 60,
"wires": [
[
"65f71a6a.1a73c4",
"5e9cde59.1bffd"
]
]
}
]

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc