{ "blocks": [ { "_containsChildrenIds": [], "group": "basic", "id": "25cfc704-f958-d933-4802-124be719ab22", "declaredClass": "xcf.model.Command", "startup": true, "send": "helo", "name": "helo", "interval": "0", "flags": 2048, "waitForResponse": false, "icon": "fa-exclamation", "enabled": false, "shareTitle": "", "description": "No Description", "order": 0, "type": "added", "outlet": 0 }, { "_containsChildrenIds": [], "group": "conditionalProcess", "id": "f67584fe-c90c-5f68-6cfc-0636e75e6d04", "declaredClass": "xcf.model.Command", "startup": false, "send": "console.log('run echo ' + arguments[0]);\nreturn \"server echo : \" + arguments[0];", "name": "test", "interval": "0", "flags": 2048, "waitForResponse": false, "icon": "fa-exclamation", "enabled": true, "shareTitle": "", "description": "No Description", "order": 0, "type": "added", "outlet": 0 }, { "_containsChildrenIds": [], "group": "basic", "id": "e4529a32-12b8-b77d-7c51-ff547959d7ca", "declaredClass": "xcf.model.Command", "startup": true, "auto": true, "send": "ping", "name": "Loop", "interval": "3000", "flags": 2048, "waitForResponse": false, "icon": "fa-exclamation", "enabled": false, "shareTitle": "", "description": "No Description", "order": 0, "type": "added", "outlet": 0 }, { "_containsChildrenIds": [ "items" ], "group": "basic", "id": "fa8af735-8963-3f3f-7bfa-f27c22656cff", "declaredClass": "xcf.model.Command", "startup": true, "auto": true, "send": "var test=JSON.stringify({\n \"Meter\":{\n \"0\":parseInt(Math.random() * 100),\n \"1\":parseInt(Math.random() * 100),\n \"2\":parseInt(Math.random() * 100),\n \"3\":parseInt(Math.random() * 100),\n \"4\":parseInt(Math.random() * 100),\n \"5\":parseInt(Math.random() * 100),\n \"6\":parseInt(Math.random() * 100)\n }\n},null,2);\n\n//console.log('test ' + test);\n\nreturn test;", "name": "Meter", "interval": "2000", "flags": 2048, "waitForResponse": false, "icon": "fa-exclamation", "enabled": true, "shareTitle": "", "description": "No Description", "order": 0, "type": "added", "outlet": 0, "items": [ "9152f5aa-f6f5-8dd1-da60-062b4f163476" ] }, { "_containsChildrenIds": [], "parentId": "fa8af735-8963-3f3f-7bfa-f27c22656cff", "id": "9152f5aa-f6f5-8dd1-da60-062b4f163476", "declaredClass": "xblox.model.code.RunScript", "name": "Run Script", "method": "console.log('meter tick');", "args": "", "deferred": false, "icon": "fa-code", "outlet": 0, "enabled": true, "shareTitle": "", "order": 0, "type": "added", "description": "No Description" }, { "_containsChildrenIds": [ "items" ], "group": "basic", "id": "7fe621d6-fc40-c8e0-e5e0-d6bffa446caa", "items": [ "a031955e-1515-332c-0469-b64d7d1d821e" ], "declaredClass": "xcf.model.Command", "startup": true, "send": "", "name": "Init", "interval": "0", "flags": 2048, "icon": "fa-exclamation", "outlet": 0, "enabled": true, "shareTitle": "", "description": "No Description", "order": 0, "type": "added" }, { "_containsChildrenIds": [], "parentId": "7fe621d6-fc40-c8e0-e5e0-d6bffa446caa", "id": "a031955e-1515-332c-0469-b64d7d1d821e", "declaredClass": "xblox.model.code.RunScript", "name": "Run Script", "method": "console.log('--- start Loopback server init block ' + this.blockScope.id + ' | ' + + this.id);\n", "args": "", "deferred": false, "icon": "fa-code", "outlet": 0, "enabled": true, "shareTitle": "", "order": 0, "type": "added", "description": "No Description" } ], "variables": null }