Modified basis valuable suggestions
[{"id":"edfd6a3c692f533d","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"f8face871cc3fb51","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false},{"id":"ca280579e665cfb2","type":"ui_base","theme":{"name":"theme-light","lightTheme":{"default":"#0094CE","baseColor":"#0094CE","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":true,"reset":false},"darkTheme":{"default":"#097479","baseColor":"#097479","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":false},"customTheme":{"name":"Untitled Theme 1","default":"#4B7930","baseColor":"#4B7930","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"},"themeState":{"base-color":{"default":"#0094CE","value":"#0094CE","edited":false},"page-titlebar-backgroundColor":{"value":"#0094CE","edited":false},"page-backgroundColor":{"value":"#fafafa","edited":false},"page-sidebar-backgroundColor":{"value":"#ffffff","edited":false},"group-textColor":{"value":"#1bbfff","edited":false},"group-borderColor":{"value":"#ffffff","edited":false},"group-backgroundColor":{"value":"#ffffff","edited":false},"widget-textColor":{"value":"#111111","edited":false},"widget-backgroundColor":{"value":"#0094ce","edited":false},"widget-borderColor":{"value":"#ffffff","edited":false},"base-font":{"value":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"}},"angularTheme":{"primary":"indigo","accents":"blue","warn":"red","background":"grey","palette":"light"}},"site":{"name":"Node-RED Dashboard","hideToolbar":"false","allowSwipe":"false","lockMenu":"false","allowTempTheme":"true","dateFormat":"DD/MM/YYYY","sizes":{"sx":48,"sy":48,"gx":6,"gy":6,"cx":6,"cy":6,"px":0,"py":0}}},{"id":"ca65dcc6d8df936b","type":"ui_group","name":"STOPWATCH","tab":"f8face871cc3fb51","order":1,"disp":true,"width":12,"collapse":false,"className":""},{"id":"c9e0e015edb2fd50","type":"ui_text","z":"edfd6a3c692f533d","group":"ca65dcc6d8df936b","order":2,"width":4,"height":2,"name":"","label":"CLOCK TIME","format":"{{msg.payload}}","layout":"row-spread","className":"","x":840,"y":40,"wires":[]},{"id":"94a5cb308833be84","type":"inject","z":"edfd6a3c692f533d","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"1","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":370,"y":20,"wires":[["35e05835b25f6f57"]]},{"id":"57f3db457894f003","type":"ui_button","z":"edfd6a3c692f533d","name":"START","group":"ca65dcc6d8df936b","order":1,"width":6,"height":2,"passthru":false,"label":"START - {{payload1}}","tooltip":"","color":"","bgcolor":"{{bc}}","className":"","icon":"","payload":"true","payloadType":"bool","topic":"topic","topicType":"msg","x":500,"y":280,"wires":[["f6bff32755a482bb","d541b1aec45006a1","d554bebf951df2b6","b8e6a617f40ee671","412f1b51c219f334"]]},{"id":"29baaa9d24836a5f","type":"ui_button","z":"edfd6a3c692f533d","name":"Stop","group":"ca65dcc6d8df936b","order":12,"width":6,"height":2,"passthru":false,"label":"STOP-{{payload2}}","tooltip":"","color":"","bgcolor":"{{bc}}","className":"","icon":"","payload":"true","payloadType":"bool","topic":"topic","topicType":"msg","x":510,"y":460,"wires":[["183b8e00c321d838","35cda6cbbdd56ee6","4294084f0423568a","a306151f5cf13734"]]},{"id":"5ca739d840d11369","type":"ui_button","z":"edfd6a3c692f533d","name":"","group":"ca65dcc6d8df936b","order":15,"width":12,"height":2,"passthru":false,"label":"RESET","tooltip":"","color":"black","bgcolor":"{{bc}}","className":"","icon":"","payload":"true","payloadType":"bool","topic":"topic","topicType":"msg","x":500,"y":660,"wires":[["50f4c0591e6ffd01","a173a39dc534f575","0c09e9f88e95ffce","193fab9221449987"]]},{"id":"f6bff32755a482bb","type":"change","z":"edfd6a3c692f533d","name":"Store Start","rules":[{"t":"set","p":"timestart","pt":"flow","to":"time","tot":"flow"},{"t":"set","p":"payload","pt":"msg","to":"timestart","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":710,"y":280,"wires":[["d0e208ce3fc8e097","41a0d97d9e660b7a"]]},{"id":"35e05835b25f6f57","type":"change","z":"edfd6a3c692f533d","name":"","rules":[{"t":"set","p":"time","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":40,"wires":[["2f0d7a6467252c56"]]},{"id":"1bac5780936d3e06","type":"moment","z":"edfd6a3c692f533d","name":"","topic":"mtime","input":"timestart","inputType":"flow","inTz":"Asia/Calcutta","adjAmount":0,"adjType":"days","adjDir":"add","format":"HH:mm:ss.SS","locale":"en-GB","output":"payload1","outputType":"msg","outTz":"Asia/Calcutta","x":985,"y":280,"wires":[["57f3db457894f003"]],"l":false},{"id":"2f0d7a6467252c56","type":"moment","z":"edfd6a3c692f533d","name":"","topic":"","input":"time","inputType":"flow","inTz":"Asia/Calcutta","adjAmount":0,"adjType":"days","adjDir":"add","format":"HH:mm:ss.SS","locale":"en-GB","output":"payload","outputType":"msg","outTz":"Asia/Calcutta","x":715,"y":40,"wires":[["c9e0e015edb2fd50"]],"l":false},{"id":"183b8e00c321d838","type":"change","z":"edfd6a3c692f533d","name":"Store Stop and Complete","rules":[{"t":"set","p":"timestop","pt":"flow","to":"time","tot":"flow"},{"t":"set","p":"payload","pt":"msg","to":"timestop","tot":"flow"},{"t":"set","p":"complete","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":460,"wires":[["074285ad14308558","41a0d97d9e660b7a"]]},{"id":"125bed499fe0d1ed","type":"moment","z":"edfd6a3c692f533d","name":"","topic":"mtime","input":"timestop","inputType":"flow","inTz":"Asia/Calcutta","adjAmount":0,"adjType":"days","adjDir":"add","format":"HH:mm:ss.SS","locale":"en-GB","output":"payload2","outputType":"msg","outTz":"Asia/Calcutta","x":985,"y":500,"wires":[["29baaa9d24836a5f"]],"l":false},{"id":"cd423c12a28db767","type":"change","z":"edfd6a3c692f533d","name":"Disable","rules":[{"t":"set","p":"enabled","pt":"msg","to":"false","tot":"bool"},{"t":"set","p":"bc","pt":"msg","to":"grey","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":300,"wires":[["57f3db457894f003"]]},{"id":"d0e208ce3fc8e097","type":"change","z":"edfd6a3c692f533d","name":"","rules":[{"t":"set","p":"enabled","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":915,"y":280,"wires":[["1bac5780936d3e06"]],"l":false},{"id":"074285ad14308558","type":"change","z":"edfd6a3c692f533d","name":"","rules":[{"t":"set","p":"enabled","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":915,"y":500,"wires":[["125bed499fe0d1ed"]],"l":false},{"id":"2ccb9db746413277","type":"ui_text","z":"edfd6a3c692f533d","group":"ca65dcc6d8df936b","order":13,"width":4,"height":2,"name":"TIMER","label":"","format":"{{payload3}}","layout":"row-spread","className":"","x":1340,"y":380,"wires":[]},{"id":"41a0d97d9e660b7a","type":"join","z":"edfd6a3c692f533d","name":"","mode":"custom","build":"array","property":"payload","propertyType":"msg","key":"mtime","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":970,"y":380,"wires":[["917f2b6a92dc49a7"]]},{"id":"917f2b6a92dc49a7","type":"function","z":"edfd6a3c692f533d","name":"Calculate Difference","func":"msg.payload3 = ((msg.payload[1])- (msg.payload[0]))/1000\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1140,"y":380,"wires":[["2ccb9db746413277"]]},{"id":"5c5d6285d095527f","type":"change","z":"edfd6a3c692f533d","name":"Enable","rules":[{"t":"set","p":"enabled","pt":"msg","to":"true","tot":"bool"},{"t":"set","p":"bc","pt":"msg","to":"green","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":260,"wires":[["57f3db457894f003"]]},{"id":"8526dba5da367452","type":"link in","z":"edfd6a3c692f533d","name":"START-ENABLE","links":["50f4c0591e6ffd01","cffe4d68049656fb"],"x":195,"y":260,"wires":[["5c5d6285d095527f"]]},{"id":"09da662407b97343","type":"link in","z":"edfd6a3c692f533d","name":"START-DISABLE","links":["35cda6cbbdd56ee6","d554bebf951df2b6","c7b0fd669e2da138","3c1618af921e69ad"],"x":195,"y":300,"wires":[["cd423c12a28db767"]]},{"id":"50f4c0591e6ffd01","type":"link out","z":"edfd6a3c692f533d","name":"START-ENABLE","mode":"link","links":["d4f53398c7a95ed4","8526dba5da367452"],"x":730,"y":620,"wires":[],"l":true},{"id":"35cda6cbbdd56ee6","type":"link out","z":"edfd6a3c692f533d","name":"START-DISABLE","mode":"link","links":["b6798771b2480161","09da662407b97343"],"x":730,"y":500,"wires":[],"l":true},{"id":"f265843f97b891c3","type":"link in","z":"edfd6a3c692f533d","name":"STOP-ENABLE","links":["d541b1aec45006a1"],"x":195,"y":440,"wires":[["e529b700443daa88"]]},{"id":"e60dc03fa6cea6f7","type":"link in","z":"edfd6a3c692f533d","name":"STOP-DISABLE","links":["193fab9221449987","50520a2d6d099a75","a306151f5cf13734"],"x":195,"y":480,"wires":[["27a246201714d341"]]},{"id":"d541b1aec45006a1","type":"link out","z":"edfd6a3c692f533d","name":"STOP-ENABLE","mode":"link","links":["687aac3202c3d01e","f265843f97b891c3","9b6bfaee90a15052","cff1bed176ceb3a4","e5e5b60bd87b0c16","d2af4b5d08ab036a","25c0601634a6a43d","4ed6f9c052c42362"],"x":720,"y":240,"wires":[],"l":true},{"id":"d554bebf951df2b6","type":"link out","z":"edfd6a3c692f533d","name":"START-DISABLE","mode":"link","links":["b6798771b2480161","09da662407b97343"],"x":730,"y":320,"wires":[],"l":true},{"id":"b8f34614fff46864","type":"link in","z":"edfd6a3c692f533d","name":"RESET-DISABLE","links":["0c09e9f88e95ffce","7b354be09bc64be0","b8e6a617f40ee671"],"x":195,"y":640,"wires":[["a12552525fcf5cff"]]},{"id":"b8e6a617f40ee671","type":"link out","z":"edfd6a3c692f533d","name":"RESET-DISABLE","mode":"link","links":["bbd5c5ddc3e51802","b8f34614fff46864","2a81b9812903d397"],"x":730,"y":360,"wires":[],"l":true},{"id":"a8c83a101886a398","type":"link in","z":"edfd6a3c692f533d","name":"MSG RESET","links":["96c25ce7cf47c98f","4568f84fec70a37a"],"x":290,"y":220,"wires":[["57f3db457894f003"]],"l":true},{"id":"80542a32738acfc2","type":"link in","z":"edfd6a3c692f533d","name":"MSG RESET","links":["96c25ce7cf47c98f","4568f84fec70a37a"],"x":290,"y":400,"wires":[["29baaa9d24836a5f"]],"l":true},{"id":"47dfae61214431a4","type":"link in","z":"edfd6a3c692f533d","name":"MSG RESET","links":["96c25ce7cf47c98f","4568f84fec70a37a"],"x":1170,"y":340,"wires":[["2ccb9db746413277"]],"l":true},{"id":"4568f84fec70a37a","type":"link out","z":"edfd6a3c692f533d","name":"MSG RESET","mode":"link","links":["5f6d68dcb56e40b9","a8c83a101886a398","80542a32738acfc2","47dfae61214431a4","ae3a9973b6b13478","147392374e28e8b5","1e5afe62ea10b2ce","3859ad37218c3164","a0bf1ec8fdb9f496","8d2b9d782292b236","7bc664b643ea63c8","e89e0258d4315841","02a3757a4a249f11","1d2e5b0c36252312","807b138041d23b3a","e05df8321866035c","a70594948d97a09d","e783c82d81789174","8ac277bef7393691"],"x":830,"y":660,"wires":[],"l":true},{"id":"a173a39dc534f575","type":"change","z":"edfd6a3c692f533d","name":"Reset","rules":[{"t":"set","p":"payload1","pt":"msg","to":"","tot":"str"},{"t":"set","p":"payload2","pt":"msg","to":"","tot":"str"},{"t":"set","p":"payload3","pt":"msg","to":"","tot":"str"},{"t":"set","p":"reset","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":690,"y":660,"wires":[["4568f84fec70a37a"]]},{"id":"55790672147edeac","type":"link in","z":"edfd6a3c692f533d","name":"RESET-ENABLE","links":["4294084f0423568a","f008b5a8b6659791","48c82150ebd3ceae"],"x":195,"y":680,"wires":[["49c8bbb6114b31a0"]]},{"id":"4294084f0423568a","type":"link out","z":"edfd6a3c692f533d","name":"RESET-ENABLE","mode":"link","links":["11fe48e57d7a667b","55790672147edeac"],"x":730,"y":420,"wires":[],"l":true},{"id":"0c09e9f88e95ffce","type":"link out","z":"edfd6a3c692f533d","name":"RESET-DISABLE","mode":"link","links":["bbd5c5ddc3e51802","b8f34614fff46864"],"x":730,"y":700,"wires":[],"l":true},{"id":"193fab9221449987","type":"link out","z":"edfd6a3c692f533d","name":"STOP-DISABLE","mode":"link","links":["d7df037f1e38f059","e60dc03fa6cea6f7","aa1ec3573cc52cdc","17d75a3daad80407","c44a21a39096f868","8dd574964dc63bb8","4ee18aebd3544878","3e85d8a729855cf4","5d36a8b536b402e7","cfdabd83dfcff5db","a783800e8aef5aaa","ae7a52c5a0ef4b20","accaa781582dce66"],"x":720,"y":740,"wires":[],"l":true},{"id":"a9f106a3c5e24928","type":"inject","z":"edfd6a3c692f533d","name":"Initialize","props":[{"p":"enabled","v":"true","vt":"bool"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","x":820,"y":160,"wires":[["cffe4d68049656fb","50520a2d6d099a75","7b354be09bc64be0"]]},{"id":"cffe4d68049656fb","type":"link out","z":"edfd6a3c692f533d","name":"START-ENABLE","mode":"link","links":["d4f53398c7a95ed4","8526dba5da367452"],"x":1010,"y":120,"wires":[],"l":true},{"id":"50520a2d6d099a75","type":"link out","z":"edfd6a3c692f533d","name":"STOP-DISABLE","mode":"link","links":["d7df037f1e38f059","e60dc03fa6cea6f7","aa1ec3573cc52cdc","17d75a3daad80407","c44a21a39096f868","8dd574964dc63bb8","4ee18aebd3544878","3e85d8a729855cf4","5d36a8b536b402e7","cfdabd83dfcff5db","a783800e8aef5aaa","ae7a52c5a0ef4b20","accaa781582dce66"],"x":1000,"y":160,"wires":[],"l":true},{"id":"7b354be09bc64be0","type":"link out","z":"edfd6a3c692f533d","name":"RESET-DISABLE","mode":"link","links":["bbd5c5ddc3e51802","b8f34614fff46864","2a81b9812903d397"],"x":1010,"y":200,"wires":[],"l":true},{"id":"a306151f5cf13734","type":"link out","z":"edfd6a3c692f533d","name":"STOP-DISABLE","mode":"link","links":["d7df037f1e38f059","e60dc03fa6cea6f7"],"x":720,"y":540,"wires":[],"l":true},{"id":"27a246201714d341","type":"change","z":"edfd6a3c692f533d","name":"Disable","rules":[{"t":"set","p":"enabled","pt":"msg","to":"false","tot":"bool"},{"t":"set","p":"bc","pt":"msg","to":"grey","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":480,"wires":[["29baaa9d24836a5f"]]},{"id":"e529b700443daa88","type":"change","z":"edfd6a3c692f533d","name":"Enable","rules":[{"t":"set","p":"enabled","pt":"msg","to":"true","tot":"bool"},{"t":"set","p":"bc","pt":"msg","to":"red","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":440,"wires":[["29baaa9d24836a5f"]]},{"id":"a12552525fcf5cff","type":"change","z":"edfd6a3c692f533d","name":"Enable","rules":[{"t":"set","p":"enabled","pt":"msg","to":"false","tot":"bool"},{"t":"set","p":"bc","pt":"msg","to":"grey","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":640,"wires":[["5ca739d840d11369"]]},{"id":"49c8bbb6114b31a0","type":"change","z":"edfd6a3c692f533d","name":"Disable","rules":[{"t":"set","p":"enabled","pt":"msg","to":"true","tot":"bool"},{"t":"set","p":"bc","pt":"msg","to":"yellow","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":680,"wires":[["5ca739d840d11369"]]},{"id":"39b65076998d4bad","type":"ui_button","z":"edfd6a3c692f533d","name":"Lap1","group":"ca65dcc6d8df936b","order":4,"width":3,"height":2,"passthru":false,"label":"LAP - {{payload2}}","tooltip":"","color":"","bgcolor":"{{bc}}","className":"","icon":"","payload":"true","payloadType":"bool","topic":"topic","topicType":"msg","x":510,"y":920,"wires":[["056b1199a1259186","8f68c7e4136ccb78","c49f1478e53587d5"]]},{"id":"056b1199a1259186","type":"change","z":"edfd6a3c692f533d","name":"Store Stop and Complete","rules":[{"t":"set","p":"timestop","pt":"flow","to":"time","tot":"flow"},{"t":"set","p":"payload","pt":"msg","to":"timestop","tot":"flow"},{"t":"set","p":"complete","pt":"msg","to":"true","tot":"bool"},{"t":"set","p":"payload1","pt":"msg","to":"timestart","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":920,"wires":[["6f3f6a21eed2d872","44dc95282223e916"]]},{"id":"81aff905ae5e659b","type":"ui_text","z":"edfd6a3c692f533d","group":"ca65dcc6d8df936b","order":8,"width":3,"height":2,"name":"LAP1","label":"","format":"{{payload3}}","layout":"row-spread","className":"","x":1330,"y":960,"wires":[]},{"id":"7c8f27300e86d5bf","type":"moment","z":"edfd6a3c692f533d","name":"","topic":"mtime","input":"timestop","inputType":"flow","inTz":"Asia/Calcutta","adjAmount":0,"adjType":"days","adjDir":"add","format":"HH:mm:ss.SS","locale":"en-GB","output":"payload2","outputType":"msg","outTz":"Asia/Calcutta","x":985,"y":960,"wires":[["81aff905ae5e659b","39b65076998d4bad"]],"l":false},{"id":"6f3f6a21eed2d872","type":"change","z":"edfd6a3c692f533d","name":"","rules":[{"t":"set","p":"enabled","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":915,"y":960,"wires":[["7c8f27300e86d5bf"]],"l":false},{"id":"9b6bfaee90a15052","type":"link in","z":"edfd6a3c692f533d","name":"STOP-ENABLE","links":["d541b1aec45006a1"],"x":195,"y":900,"wires":[["4b23d0ed8e0ed22d"]]},{"id":"aa1ec3573cc52cdc","type":"link in","z":"edfd6a3c692f533d","name":"STOP-DISABLE","links":["193fab9221449987","50520a2d6d099a75","c49f1478e53587d5","7c1deb92c1107048","1d2caa0c3df5ca23","76234823e74dfe02","91833b27bc2de3ce","e6c4dcc8846674ff"],"x":195,"y":940,"wires":[["24abab7d9d662c74"]]},{"id":"ae3a9973b6b13478","type":"link in","z":"edfd6a3c692f533d","name":"MSG RESET","links":["96c25ce7cf47c98f","4568f84fec70a37a"],"x":1190,"y":880,"wires":[["81aff905ae5e659b"]],"l":true},{"id":"c49f1478e53587d5","type":"link out","z":"edfd6a3c692f533d","name":"STOP-DISABLE","mode":"link","links":["d7df037f1e38f059","aa1ec3573cc52cdc","a783800e8aef5aaa","ae7a52c5a0ef4b20","accaa781582dce66"],"x":720,"y":960,"wires":[],"l":true},{"id":"24abab7d9d662c74","type":"change","z":"edfd6a3c692f533d","name":"Disable","rules":[{"t":"set","p":"enabled","pt":"msg","to":"false","tot":"bool"},{"t":"set","p":"bc","pt":"msg","to":"grey","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":940,"wires":[["39b65076998d4bad"]]},{"id":"4b23d0ed8e0ed22d","type":"change","z":"edfd6a3c692f533d","name":"Enable","rules":[{"t":"set","p":"enabled","pt":"msg","to":"true","tot":"bool"},{"t":"set","p":"bc","pt":"msg","to":"blue","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":900,"wires":[["39b65076998d4bad"]]},{"id":"44dc95282223e916","type":"function","z":"edfd6a3c692f533d","name":"Calculate Difference","func":"msg.payload3 = (msg.payload- msg.payload1)/1000\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1000,"y":920,"wires":[["81aff905ae5e659b"]]},{"id":"147392374e28e8b5","type":"link in","z":"edfd6a3c692f533d","name":"MSG RESET","links":["96c25ce7cf47c98f","4568f84fec70a37a"],"x":290,"y":860,"wires":[["39b65076998d4bad"]],"l":true},{"id":"f2708d1350ba58c0","type":"change","z":"edfd6a3c692f533d","name":"Store Stop and Complete","rules":[{"t":"set","p":"timestop","pt":"flow","to":"time","tot":"flow"},{"t":"set","p":"payload","pt":"msg","to":"timestop","tot":"flow"},{"t":"set","p":"complete","pt":"msg","to":"true","tot":"bool"},{"t":"set","p":"payload1","pt":"msg","to":"timestart","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":1160,"wires":[["ae681547c398b82f","de0ba913516c5c83"]]},{"id":"cc74cefb6710ddd6","type":"ui_button","z":"edfd6a3c692f533d","name":"Lap2","group":"ca65dcc6d8df936b","order":5,"width":3,"height":2,"passthru":false,"label":"LAP - {{payload2}}","tooltip":"","color":"","bgcolor":"{{bc}}","className":"","icon":"","payload":"true","payloadType":"bool","topic":"topic","topicType":"msg","x":510,"y":1160,"wires":[["f2708d1350ba58c0","1d2caa0c3df5ca23","2855488f1f26b415"]]},{"id":"ae681547c398b82f","type":"change","z":"edfd6a3c692f533d","name":"","rules":[{"t":"set","p":"enabled","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":915,"y":1200,"wires":[["6b89cd9923737998"]],"l":false},{"id":"de0ba913516c5c83","type":"function","z":"edfd6a3c692f533d","name":"Calculate Difference","func":"msg.payload3 = (msg.payload- msg.payload1)/1000\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1000,"y":1160,"wires":[["c649ebc561adf60a"]]},{"id":"f841ec9e8ab1bc4a","type":"change","z":"edfd6a3c692f533d","name":"Disable","rules":[{"t":"set","p":"enabled","pt":"msg","to":"false","tot":"bool"},{"t":"set","p":"bc","pt":"msg","to":"grey","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":1180,"wires":[["cc74cefb6710ddd6"]]},{"id":"8f68c7e4136ccb78","type":"change","z":"edfd6a3c692f533d","name":"Enable","rules":[{"t":"set","p":"enabled","pt":"msg","to":"true","tot":"bool"},{"t":"set","p":"bc","pt":"msg","to":"blue","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":1140,"wires":[["cc74cefb6710ddd6"]]},{"id":"1e5afe62ea10b2ce","type":"link in","z":"edfd6a3c692f533d","name":"MSG RESET","links":["96c25ce7cf47c98f","4568f84fec70a37a"],"x":310,"y":1100,"wires":[["cc74cefb6710ddd6"]],"l":true},{"id":"6b89cd9923737998","type":"moment","z":"edfd6a3c692f533d","name":"","topic":"mtime","input":"timestop","inputType":"flow","inTz":"Asia/Calcutta","adjAmount":0,"adjType":"days","adjDir":"add","format":"HH:mm:ss.SS","locale":"en-GB","output":"payload2","outputType":"msg","outTz":"Asia/Calcutta","x":985,"y":1200,"wires":[["cc74cefb6710ddd6"]],"l":false},{"id":"c649ebc561adf60a","type":"ui_text","z":"edfd6a3c692f533d","group":"ca65dcc6d8df936b","order":9,"width":3,"height":2,"name":"LAP2","label":"","format":"{{payload3}}","layout":"row-spread","className":"","x":1330,"y":1200,"wires":[]},{"id":"3859ad37218c3164","type":"link in","z":"edfd6a3c692f533d","name":"MSG RESET","links":["96c25ce7cf47c98f","4568f84fec70a37a"],"x":1190,"y":1160,"wires":[["c649ebc561adf60a"]],"l":true},{"id":"51145d1c0b7e3fa6","type":"change","z":"edfd6a3c692f533d","name":"Store Stop and Complete","rules":[{"t":"set","p":"timestop","pt":"flow","to":"time","tot":"flow"},{"t":"set","p":"payload","pt":"msg","to":"timestop","tot":"flow"},{"t":"set","p":"complete","pt":"msg","to":"true","tot":"bool"},{"t":"set","p":"payload1","pt":"msg","to":"timestart","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":1380,"wires":[["a0e91f8f81ad9843","ad8c08c5ad972c1e"]]},{"id":"b19e972c4ee97481","type":"ui_button","z":"edfd6a3c692f533d","name":"Lap3","group":"ca65dcc6d8df936b","order":6,"width":3,"height":2,"passthru":false,"label":"LAP - {{payload2}}","tooltip":"","color":"","bgcolor":"{{bc}}","className":"","icon":"","payload":"true","payloadType":"bool","topic":"topic","topicType":"msg","x":510,"y":1380,"wires":[["51145d1c0b7e3fa6","76234823e74dfe02","2ce18129f686385e"]]},{"id":"a0e91f8f81ad9843","type":"change","z":"edfd6a3c692f533d","name":"","rules":[{"t":"set","p":"enabled","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":915,"y":1420,"wires":[["84c0e00eac78c959"]],"l":false},{"id":"ad8c08c5ad972c1e","type":"function","z":"edfd6a3c692f533d","name":"Calculate Difference","func":"msg.payload3 = (msg.payload- msg.payload1)/1000\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1140,"y":1340,"wires":[["cef011bc00641225"]]},{"id":"b4695c5bf65836f4","type":"change","z":"edfd6a3c692f533d","name":"Disable","rules":[{"t":"set","p":"enabled","pt":"msg","to":"false","tot":"bool"},{"t":"set","p":"bc","pt":"msg","to":"grey","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":1400,"wires":[["b19e972c4ee97481"]]},{"id":"2855488f1f26b415","type":"change","z":"edfd6a3c692f533d","name":"Enable","rules":[{"t":"set","p":"enabled","pt":"msg","to":"true","tot":"bool"},{"t":"set","p":"bc","pt":"msg","to":"blue","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":1360,"wires":[["b19e972c4ee97481"]]},{"id":"a0bf1ec8fdb9f496","type":"link in","z":"edfd6a3c692f533d","name":"MSG RESET","links":["96c25ce7cf47c98f","4568f84fec70a37a"],"x":310,"y":1320,"wires":[["b19e972c4ee97481"]],"l":true},{"id":"84c0e00eac78c959","type":"moment","z":"edfd6a3c692f533d","name":"","topic":"mtime","input":"timestop","inputType":"flow","inTz":"Asia/Calcutta","adjAmount":0,"adjType":"days","adjDir":"add","format":"HH:mm:ss.SS","locale":"en-GB","output":"payload2","outputType":"msg","outTz":"Asia/Calcutta","x":985,"y":1420,"wires":[["b19e972c4ee97481"]],"l":false},{"id":"cef011bc00641225","type":"ui_text","z":"edfd6a3c692f533d","group":"ca65dcc6d8df936b","order":10,"width":3,"height":2,"name":"LAP3","label":"","format":"{{payload3}}","layout":"row-spread","className":"","x":1330,"y":1420,"wires":[]},{"id":"8d2b9d782292b236","type":"link in","z":"edfd6a3c692f533d","name":"MSG RESET","links":["96c25ce7cf47c98f","4568f84fec70a37a"],"x":1170,"y":1380,"wires":[["cef011bc00641225"]],"l":true},{"id":"b2b1e042b083ba2a","type":"ui_button","z":"edfd6a3c692f533d","name":"Lap4","group":"ca65dcc6d8df936b","order":7,"width":3,"height":2,"passthru":false,"label":"LAP - {{payload2}}","tooltip":"","color":"","bgcolor":"{{bc}}","className":"","icon":"","payload":"true","payloadType":"bool","topic":"topic","topicType":"msg","x":530,"y":1600,"wires":[["aabce9f1c2f84105","91833b27bc2de3ce"]]},{"id":"aabce9f1c2f84105","type":"change","z":"edfd6a3c692f533d","name":"Store Stop and Complete","rules":[{"t":"set","p":"timestop","pt":"flow","to":"time","tot":"flow"},{"t":"set","p":"payload","pt":"msg","to":"timestop","tot":"flow"},{"t":"set","p":"complete","pt":"msg","to":"true","tot":"bool"},{"t":"set","p":"payload1","pt":"msg","to":"timestart","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":770,"y":1600,"wires":[["15ac87b6fa1d6a07","1912b384e1eed3bb"]]},{"id":"852759da49086bcc","type":"ui_text","z":"edfd6a3c692f533d","group":"ca65dcc6d8df936b","order":11,"width":3,"height":2,"name":"LAP4","label":"","format":"{{payload3}}","layout":"row-spread","className":"","x":1350,"y":1640,"wires":[]},{"id":"7786118322e446e6","type":"moment","z":"edfd6a3c692f533d","name":"","topic":"mtime","input":"timestop","inputType":"flow","inTz":"Asia/Calcutta","adjAmount":0,"adjType":"days","adjDir":"add","format":"HH:mm:ss.SS","locale":"en-GB","output":"payload2","outputType":"msg","outTz":"Asia/Calcutta","x":1005,"y":1640,"wires":[["b2b1e042b083ba2a"]],"l":false},{"id":"15ac87b6fa1d6a07","type":"change","z":"edfd6a3c692f533d","name":"","rules":[{"t":"set","p":"enabled","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":935,"y":1640,"wires":[["7786118322e446e6"]],"l":false},{"id":"7bc664b643ea63c8","type":"link in","z":"edfd6a3c692f533d","name":"MSG RESET","links":["96c25ce7cf47c98f","4568f84fec70a37a"],"x":1190,"y":1600,"wires":[["852759da49086bcc"]],"l":true},{"id":"556d51ad0c281227","type":"change","z":"edfd6a3c692f533d","name":"Disable","rules":[{"t":"set","p":"enabled","pt":"msg","to":"false","tot":"bool"},{"t":"set","p":"bc","pt":"msg","to":"grey","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":320,"y":1620,"wires":[["b2b1e042b083ba2a"]]},{"id":"2ce18129f686385e","type":"change","z":"edfd6a3c692f533d","name":"Enable","rules":[{"t":"set","p":"enabled","pt":"msg","to":"true","tot":"bool"},{"t":"set","p":"bc","pt":"msg","to":"blue","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":320,"y":1580,"wires":[["b2b1e042b083ba2a"]]},{"id":"1912b384e1eed3bb","type":"function","z":"edfd6a3c692f533d","name":"Calculate Difference","func":"msg.payload3 = (msg.payload- msg.payload1)/1000\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1160,"y":1560,"wires":[["852759da49086bcc"]]},{"id":"e89e0258d4315841","type":"link in","z":"edfd6a3c692f533d","name":"MSG RESET","links":["96c25ce7cf47c98f","4568f84fec70a37a"],"x":330,"y":1540,"wires":[["b2b1e042b083ba2a"]],"l":true},{"id":"1d2caa0c3df5ca23","type":"link out","z":"edfd6a3c692f533d","name":"STOP-DISABLE","mode":"link","links":["d7df037f1e38f059","aa1ec3573cc52cdc","cfdabd83dfcff5db","ae7a52c5a0ef4b20","accaa781582dce66"],"x":720,"y":1200,"wires":[],"l":true},{"id":"cfdabd83dfcff5db","type":"link in","z":"edfd6a3c692f533d","name":"STOP-DISABLE","links":["193fab9221449987","50520a2d6d099a75","7c1deb92c1107048","1d2caa0c3df5ca23","76234823e74dfe02","91833b27bc2de3ce","e6c4dcc8846674ff"],"x":195,"y":1180,"wires":[["f841ec9e8ab1bc4a"]]},{"id":"76234823e74dfe02","type":"link out","z":"edfd6a3c692f533d","name":"STOP-DISABLE","mode":"link","links":["d7df037f1e38f059","aa1ec3573cc52cdc","cfdabd83dfcff5db","a783800e8aef5aaa","accaa781582dce66"],"x":720,"y":1420,"wires":[],"l":true},{"id":"a783800e8aef5aaa","type":"link in","z":"edfd6a3c692f533d","name":"STOP-DISABLE","links":["193fab9221449987","50520a2d6d099a75","c49f1478e53587d5","7c1deb92c1107048","76234823e74dfe02","91833b27bc2de3ce","e6c4dcc8846674ff"],"x":195,"y":1400,"wires":[["b4695c5bf65836f4"]]},{"id":"ae7a52c5a0ef4b20","type":"link in","z":"edfd6a3c692f533d","name":"STOP-DISABLE","links":["193fab9221449987","50520a2d6d099a75","c49f1478e53587d5","7c1deb92c1107048","1d2caa0c3df5ca23","91833b27bc2de3ce","e6c4dcc8846674ff"],"x":205,"y":1620,"wires":[["556d51ad0c281227"]]},{"id":"91833b27bc2de3ce","type":"link out","z":"edfd6a3c692f533d","name":"STOP-DISABLE","mode":"link","links":["d7df037f1e38f059","aa1ec3573cc52cdc","cfdabd83dfcff5db","a783800e8aef5aaa","ae7a52c5a0ef4b20"],"x":740,"y":1640,"wires":[],"l":true},{"id":"412f1b51c219f334","type":"trigger","z":"edfd6a3c692f533d","name":"","op1":"","op2":"0","op1type":"date","op2type":"str","duration":"-10","extend":false,"overrideDelay":false,"units":"ms","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":290,"y":140,"wires":[["897438cacb33a9a2","35e05835b25f6f57"]]},{"id":"8ac277bef7393691","type":"link in","z":"edfd6a3c692f533d","name":"MSG RESET","links":["96c25ce7cf47c98f","4568f84fec70a37a"],"x":110,"y":120,"wires":[["412f1b51c219f334"]],"l":true},{"id":"897438cacb33a9a2","type":"delay","z":"edfd6a3c692f533d","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"allowrate":false,"outputs":1,"x":510,"y":140,"wires":[["35e05835b25f6f57"]]}]