node red flow to test resource consumtpion of agile components
-
-
Save doitdagi/604b30d7106924a82747834d22b3ffbd to your computer and use it in GitHub Desktop.
Agile Resource test
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
[{"id":"dd673a0.5cc3ec8","type":"sensorTag","z":"b9b3b7ef.198fa8","name":"","topic":"sensorTag","uuid":"","temperature":false,"humidity":false,"pressure":false,"magnetometer":false,"accelerometer":false,"gyroscope":false,"keys":false,"luxometer":false,"x":128,"y":240,"wires":[["84a0cc1e.482f7"]]},{"id":"645f07a6.e870e8","type":"debug","z":"b9b3b7ef.198fa8","name":"Logger","active":true,"console":"false","complete":"payload.myData.myInnerData.x","x":640,"y":151,"wires":[]},{"id":"84a0cc1e.482f7","type":"delay","z":"b9b3b7ef.198fa8","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"12","rateUnits":"minute","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":303,"y":314,"wires":[["2010d603.6514aa"]]},{"id":"2010d603.6514aa","type":"function","z":"b9b3b7ef.198fa8","name":"","func":"var d = new Date();\nvar n = d.getTime();\n\nvar json = msg.payload;\n\nvar temperature = msg.payload.ambient\n\nmsg.payload = {\n myData: {\n myTimestamp: n,\n myInnerData: {\n x: temperature\n }\n }\n}\nreturn msg;","outputs":1,"noerr":0,"x":481,"y":238,"wires":[["645f07a6.e870e8","d720f889.bbe798"]]},{"id":"d720f889.bbe798","type":"iot-datasource","z":"b9b3b7ef.198fa8","name":"Dashboard","tstampField":"myData.myTimestamp","dataField":"myData.myInnerData.x","disableDiscover":true,"x":643,"y":301,"wires":[[]]}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment