Guest User

Untitled

a guest
Aug 2nd, 2021
23
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [{"id":"ce13cfe8.f0cd5","type":"subflow","name":"Sætter power state","info":"","category":"","in":[{"x":60,"y":120,"wires":[{"id":"183dfd78.392be3"}]}],"out":[{"x":1100,"y":100,"wires":[{"id":"d34b51d3.0285","port":0},{"id":"2845e12.c02491e","port":0}]}],"env":[],"color":"#DDAA99"},{"id":"183dfd78.392be3","type":"switch","z":"ce13cfe8.f0cd5","name":"","property":"payload","propertyType":"msg","rules":[{"t":"true"},{"t":"false"},{"t":"else"}],"checkall":"true","repair":false,"outputs":3,"x":630,"y":120,"wires":[["d34b51d3.0285"],["2845e12.c02491e"],[]]},{"id":"d34b51d3.0285","type":"change","z":"ce13cfe8.f0cd5","name":"","rules":[{"t":"set","p":"speedState","pt":"msg","to":"Tændt","tot":"str"},{"t":"set","p":"speeder","pt":"msg","to":"payload.speeder","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":880,"y":80,"wires":[[]]},{"id":"2845e12.c02491e","type":"change","z":"ce13cfe8.f0cd5","name":"","rules":[{"t":"set","p":"speedState","pt":"msg","to":"Slukket","tot":"str"},{"t":"set","p":"speeder","pt":"msg","to":"0","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":940,"y":140,"wires":[[]]},{"id":"470755bb.6a252c","type":"debug","z":"ce13cfe8.f0cd5","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":600,"y":260,"wires":[]},{"id":"20c24d5b.0318e2","type":"subflow","name":"Sætter current mode og yellow count","info":"","category":"","in":[{"x":40,"y":520,"wires":[{"id":"96dcdf5.651902"},{"id":"4a1b3a94.3c2cb4"}]}],"out":[{"x":2120,"y":120,"wires":[{"id":"1b30a15d.448a5f","port":0}]},{"x":2120,"y":160,"wires":[{"id":"1b30a15d.448a5f","port":1}]},{"x":2120,"y":200,"wires":[{"id":"1b30a15d.448a5f","port":2}]},{"x":2120,"y":240,"wires":[{"id":"1b30a15d.448a5f","port":3}]},{"x":2120,"y":280,"wires":[{"id":"1b30a15d.448a5f","port":4}]},{"x":2120,"y":320,"wires":[{"id":"1b30a15d.448a5f","port":5}]},{"x":2120,"y":360,"wires":[{"id":"1b30a15d.448a5f","port":6}]}],"env":[],"color":"#DDAA99"},{"id":"96dcdf5.651902","type":"json","z":"20c24d5b.0318e2","name":"","property":"payload","action":"","pretty":false,"x":190,"y":460,"wires":[["72668cf2.1c8974","e9afa85a.3f75e8"]]},{"id":"e9afa85a.3f75e8","type":"switch","z":"20c24d5b.0318e2","name":"hvis color yellow/red","property":"payload.color","propertyType":"msg","rules":[{"t":"eq","v":"YELLOW","vt":"str"},{"t":"eq","v":"RED","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":640,"y":440,"wires":[["8851974c.b37c68"],["8a4306eb.9fc7d8"]]},{"id":"121a243d.3cc2fc","type":"timed-counter","z":"20c24d5b.0318e2","name":"delay count","timelimit":"1000","timeunit":1,"withhold":true,"fixedtimeout":false,"pertopic":false,"x":1090,"y":420,"wires":[["4b906760.ff9d48"]]},{"id":"4b906760.ff9d48","type":"counter","z":"20c24d5b.0318e2","inc":1,"name":"Yellow count","x":1290,"y":420,"wires":[["4443b448.b8073c"]]},{"id":"5daaf543.7fbd9c","type":"switch","z":"20c24d5b.0318e2","name":"","property":"currentMode","propertyType":"msg","rules":[{"t":"eq","v":"614","vt":"num"},{"t":"eq","v":"1024","vt":"num"},{"t":"eq","v":"358","vt":"num"}],"checkall":"true","repair":false,"outputs":3,"x":850,"y":340,"wires":[["ab28058b.814268"],["beb7d3c3.d72d5"],["c8b60e4c.50c84"]]},{"id":"c8b60e4c.50c84","type":"change","z":"20c24d5b.0318e2","name":"Red","rules":[{"t":"set","p":"currentmode","pt":"flow","to":"red","tot":"str"},{"t":"set","p":"speedbackground","pt":"msg","to":"red","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1050,"y":360,"wires":[["1b30a15d.448a5f"]]},{"id":"ab28058b.814268","type":"change","z":"20c24d5b.0318e2","name":"Blue","rules":[{"t":"set","p":"currentmode","pt":"flow","to":"blue","tot":"str"},{"t":"set","p":"speedbackground","pt":"msg","to":"blue","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1050,"y":280,"wires":[["1b30a15d.448a5f"]]},{"id":"beb7d3c3.d72d5","type":"change","z":"20c24d5b.0318e2","name":"Yellow","rules":[{"t":"set","p":"currentmode","pt":"flow","to":"yellow","tot":"str"},{"t":"set","p":"speedbackground","pt":"msg","to":"yellow","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1050,"y":320,"wires":[["1b30a15d.448a5f"]]},{"id":"4443b448.b8073c","type":"change","z":"20c24d5b.0318e2","name":"payload count","rules":[{"t":"set","p":"yellow.count","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1560,"y":380,"wires":[["1b30a15d.448a5f"]]},{"id":"4a1b3a94.3c2cb4","type":"switch","z":"20c24d5b.0318e2","name":"","property":"reset","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":790,"y":700,"wires":[["2f188c0.5519074"]]},{"id":"2f188c0.5519074","type":"change","z":"20c24d5b.0318e2","name":"","rules":[{"t":"set","p":"reset","pt":"msg","to":"1","tot":"num"},{"t":"set","p":"background","pt":"msg","to":"default","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":980,"y":680,"wires":[["4b906760.ff9d48"]]},{"id":"1b30a15d.448a5f","type":"switch","z":"20c24d5b.0318e2","name":"Fordeler til bilerne","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"Cart01","vt":"str"},{"t":"eq","v":"Cart2","vt":"str"},{"t":"eq","v":"Cart3","vt":"str"},{"t":"eq","v":"Cart4","vt":"str"},{"t":"eq","v":"Cart5","vt":"str"},{"t":"eq","v":"Cart6","vt":"str"},{"t":"eq","v":"Cart7","vt":"str"}],"checkall":"true","repair":false,"outputs":7,"x":1770,"y":200,"wires":[[],[],[],[],[],[],[]],"icon":"font-awesome/fa-car"},{"id":"29be1fbd.b347e","type":"debug","z":"20c24d5b.0318e2","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1350,"y":640,"wires":[]},{"id":"8851974c.b37c68","type":"change","z":"20c24d5b.0318e2","name":"","rules":[{"t":"delete","p":"payload","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":890,"y":420,"wires":[["121a243d.3cc2fc"]]},{"id":"72668cf2.1c8974","type":"change","z":"20c24d5b.0318e2","name":"","rules":[{"t":"set","p":"currentMode","pt":"msg","to":"payload.maxspeed.current","tot":"msg"},{"t":"set","p":"speeder","pt":"msg","to":"payload.speeder","tot":"msg"},{"t":"set","p":"output","pt":"msg","to":"payload.output","tot":"msg"},{"t":"set","p":"color","pt":"msg","to":"payload.color","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":340,"wires":[["5daaf543.7fbd9c"]]},{"id":"23da59fc.a27146","type":"Message Counter","z":"20c24d5b.0318e2","name":"Tæller red Color","units":"seconds","interval":"2","alignToClock":true,"generator":"internal","x":1020,"y":480,"wires":[["bfe4ef93.ad537"],["29be1fbd.b347e","280be1a3.c7fcae"]]},{"id":"4f821e19.e73ce","type":"debug","z":"20c24d5b.0318e2","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1430,"y":660,"wires":[]},{"id":"8a4306eb.9fc7d8","type":"switch","z":"20c24d5b.0318e2","name":"","property":"payload.speeder","propertyType":"msg","rules":[{"t":"gt","v":"400","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":810,"y":480,"wires":[["23da59fc.a27146","4f821e19.e73ce"]]},{"id":"280be1a3.c7fcae","type":"change","z":"20c24d5b.0318e2","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"percent\":50,\"kill\": 1}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":1300,"y":500,"wires":[["7fe28932.4c1d58"]]},{"id":"7fe28932.4c1d58","type":"mqtt out","z":"20c24d5b.0318e2","name":"","topic":"Cart01/settings","qos":"","retain":"","broker":"dca8425b.8fb18","x":1820,"y":440,"wires":[]},{"id":"bfe4ef93.ad537","type":"change","z":"20c24d5b.0318e2","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"percent\":50,\"kill\": 0}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":1300,"y":460,"wires":[["7fe28932.4c1d58"]]},{"id":"89f03bbf.93f678","type":"tab","label":"gocart","disabled":false,"info":""},{"id":"11f75467.fe067c","type":"group","z":"89f03bbf.93f678","name":"Batteri registrering cart 2","style":{"stroke":"#ff0000","label":true},"nodes":["2561cf3.6dc813","65310a1e.635f44","7dcbd578.40fecc","63c951e5.8941a","27e19c9e.871c94","e69fac07.2b5b3","a9fcc6cb.2ac9d8","106cca75.669976","8eafa321.cba1b","1bfc48c3.03d377"],"x":4,"y":2079,"w":832,"h":142},{"id":"1afc5121.af897f","type":"group","z":"89f03bbf.93f678","name":"Batteri registrering","style":{"stroke":"#ff0000","label":true},"nodes":["9e7389aa.dcc698","8ffdbf78.5e4e4","d87efaa1.059cd8","172127cf.ead018","8601e34f.a8d54","a16db157.b3cb3","c22161ca.d81f3","8253f3c2.bbd1a","4fda6452.44818c","43fe27d1.d10158"],"x":-16,"y":2879,"w":852,"h":142},{"id":"24e46ee5.50b382","type":"group","z":"89f03bbf.93f678","name":"Batteri registrering","style":{"stroke":"#ff0000","label":true},"nodes":["75b12ad7.13a2f4","7199f0e9.d6c53","37cae3ef.4a056c","6cbebcd3.9af924","1b1e7ab7.be72c5","7745e5dc.98fa2c","92cd6bfd.9ab7d8","5324036e.06db4c","b8bbce78.36e1b","d65e4866.ad2908"],"x":-6,"y":2719,"w":762,"h":142},{"id":"32af35a7.880dea","type":"group","z":"89f03bbf.93f678","name":"Batteri registrering cart 3","style":{"stroke":"#ff0000","label":true},"nodes":["46f8d33e.b55dec","572785f.d32527c","9a9e577.bc42ea8","db95c5dd.2e4458","7b8962aa.2e404c","3922140a.04355c","232fa4c3.e6b6cc","715aa0d7.3cdf8","919d0a87.b0e8f8","59111a03.a6b184"],"x":24,"y":2239,"w":772,"h":142},{"id":"39602f4.3d137d","type":"group","z":"89f03bbf.93f678","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["82c01ca0.9292f","98989634.04f938","38939246.5d981e","91aaa463.b23588","80913453.d01c58","c457fbab.146e48","a3c84dce.79787","a544af86.110f5","cc1df795.560f68"],"x":1548,"y":2479,"w":578,"h":348},{"id":"cc1df795.560f68","type":"group","z":"89f03bbf.93f678","g":"39602f4.3d137d","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["e8c44d03.517ec","15ece663.54b05a","fc495a02.c6d688","cde81cb.e9b3fe"],"x":1574,"y":2679,"w":312,"h":122},{"id":"4a48673a.2732c8","type":"group","z":"89f03bbf.93f678","name":"Reset Batteri timer","style":{"stroke":"#000000","label":true,"color":"#ff0000"},"nodes":["c6c0b2e2.24262","489be528.92358c","e6a8ca36.18a728","5a1f69f1.4844b8","f86916f8.854f98"],"x":154,"y":319,"w":612,"h":202},{"id":"52d67eaf.37db","type":"group","z":"89f03bbf.93f678","name":"Indstil div Values","style":{"label":true},"nodes":["c94d0077.00782","a8a10cc2.9d0ae","612eef9e.c088a","e93f328c.80963","9619463c.7ba4e8","7b407c4c.9cc064"],"x":934,"y":339,"w":602,"h":242},{"id":"55610e79.eed96","type":"group","z":"89f03bbf.93f678","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["5622c750.2ec6e8","92065922.f91ce8","b9e4c4fb.c68c78","21a63815.67b9e8","e46e4ef8.758e2","1ce0dfb3.34b62","10ab41d1.3aae6e","e3f847df.83c6e8","2f7fa3b9.2a389c"],"x":2268,"y":2459,"w":578,"h":348},{"id":"2f7fa3b9.2a389c","type":"group","z":"89f03bbf.93f678","g":"55610e79.eed96","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["d9dafe2a.e11d","be0a2491.9ffa98","23f44c89.255794","34a2f353.85087c"],"x":2294,"y":2659,"w":312,"h":122},{"id":"5a3ebff0.79759","type":"group","z":"89f03bbf.93f678","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["47db5ec4.24fca","4db5ede1.6c78c4","8723d5f1.8d1478","ceda4a5d.5bc4d8","dc966bbf.a9fc78","f1442665.6bcf78","fb6d0811.433008"],"x":-12,"y":3973,"w":594,"h":1014},{"id":"f1442665.6bcf78","type":"group","z":"89f03bbf.93f678","g":"5a3ebff0.79759","name":"Cart 1 power state","style":{"label":true},"nodes":["a2893389.2b21a","6a201a83.fcd5e4","1a8765ca.cc01aa","67e83af0.00af14","7f0428de.f41cd8","b035c6ae.c8b7f8"],"x":14,"y":3999,"w":542,"h":142},{"id":"dc966bbf.a9fc78","type":"group","z":"89f03bbf.93f678","g":"5a3ebff0.79759","name":"Cart 2 power state","style":{"label":true},"nodes":["f5b13cf8.c638d","136be275.85d74e","cc42fc55.64606","fb2ffa2.2769408","294945bf.afeb7a","c6b218be.324f18"],"x":14,"y":4139,"w":542,"h":122},{"id":"47db5ec4.24fca","type":"group","z":"89f03bbf.93f678","g":"5a3ebff0.79759","name":"Cart 3 power state","style":{"label":true},"nodes":["f2aba881.c80438","60d453ab.e92a7c","4319d3a3.89a97c","760a0aac.192c94","88c7df7c.1f71e","226b3fa.d40c1c"],"x":14,"y":4279,"w":542,"h":122},{"id":"4db5ede1.6c78c4","type":"group","z":"89f03bbf.93f678","g":"5a3ebff0.79759","name":"Cart 4 power state","style":{"label":true},"nodes":["e73356cb.c8a118","685a2d86.512d74","c2b9e89b.deef08","34bdad3d.87bd12","f81a081c.445358","acd81ac1.52daf8"],"x":14,"y":4419,"w":542,"h":122},{"id":"8723d5f1.8d1478","type":"group","z":"89f03bbf.93f678","g":"5a3ebff0.79759","name":"Cart 5 power state","style":{"label":true},"nodes":["c79103c4.be628","7b1648e.ff743b8","c0f65601.ebac58","6a755f5a.f9a72","ce6868ca.080128","6b21f99f.0e1668"],"x":14,"y":4559,"w":542,"h":122},{"id":"ceda4a5d.5bc4d8","type":"group","z":"89f03bbf.93f678","g":"5a3ebff0.79759","name":"Cart 6 power state","style":{"label":true},"nodes":["e96205ee.01faa8","600ae890.055ec8","7dec1de9.8b7c24","341ada54.c428d6","256cfeda.0ece22","d69ec18f.fb3ca"],"x":14,"y":4699,"w":542,"h":122},{"id":"fb6d0811.433008","type":"group","z":"89f03bbf.93f678","g":"5a3ebff0.79759","name":"Cart 7 power state","style":{"label":true},"nodes":["a57f4b11.73a948","97249792.d6d2c8","1845da55.23f9d6","3c508967.26b596","b0144128.51ebf","3e145565.63a1ea"],"x":14,"y":4839,"w":542,"h":122},{"id":"5fdc3fd.b39f7c","type":"group","z":"89f03bbf.93f678","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["21a286c6.80ff4a","49991c8e.69c7a4","6bdc47e0.5cc168","7844810d.85b0a","a59acdd1.f4832","abbedfd5.d0204","e6e93a6a.3f3188"],"x":-12,"y":3013,"w":864,"h":934},{"id":"21a286c6.80ff4a","type":"group","z":"89f03bbf.93f678","g":"5fdc3fd.b39f7c","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["444e015c.e9bc3","bcc31ec5.c86b1","967aeb73.98c4e8","202c9b23.630e54","e734197d.e0a3b8","d3c0d957.569c08","f5adf898.606a88","6a4fa5a2.2dd59c"],"x":434,"y":3719,"w":392,"h":202},{"id":"49991c8e.69c7a4","type":"group","z":"89f03bbf.93f678","g":"5fdc3fd.b39f7c","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["2dd276f5.a77fca","73c48dc8.39d924","f0eb2b5e.0b13c8","5bd8a1e5.5f92e","1465e8c5.1c5187","b7fd6c7c.24cdf","b30fca7e.9998d8","26c3752c.4c568a"],"x":14,"y":3279,"w":372,"h":202},{"id":"6bdc47e0.5cc168","type":"group","z":"89f03bbf.93f678","g":"5fdc3fd.b39f7c","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["f483c2b6.670bb","58b8d416.98889c","e592e4d5.43b458","2b03278f.4433c8","a6c39f04.7d257","cc382826.3be228","5fa9f7df.8e8878","c731e1ed.bd9ae"],"x":14,"y":3039,"w":432,"h":222},{"id":"7844810d.85b0a","type":"group","z":"89f03bbf.93f678","g":"5fdc3fd.b39f7c","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["aeba403a.00ca3","8ddd940b.c78748","d81daff7.1cb6f","20905a37.9f9d86","94f3bcf9.111d8","7c538afd.56e0f4","56b482aa.1c869c","853664a8.f684f8"],"x":414,"y":3279,"w":412,"h":202},{"id":"a59acdd1.f4832","type":"group","z":"89f03bbf.93f678","g":"5fdc3fd.b39f7c","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["41059298.5c501c","1bfb8cd5.d430b3","25e670ff.0aa11","2160960e.c0187a","2da49773.d62088","43151502.d8070c","a1c5378e.cf6738","bb447411.8f4a48"],"x":424,"y":3499,"w":402,"h":202},{"id":"abbedfd5.d0204","type":"group","z":"89f03bbf.93f678","g":"5fdc3fd.b39f7c","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["c1917a6b.286668","50912549.6157ac","1c94911c.0c78bf","d3518d48.65ecf","746d65a7.833efc","fbd740db.b4d39","9b497eaf.c2b0a","632d254b.50c1fc"],"x":14,"y":3499,"w":392,"h":202},{"id":"e6e93a6a.3f3188","type":"group","z":"89f03bbf.93f678","g":"5fdc3fd.b39f7c","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["7ec06f5f.7acc3","74295c7c.b5ca04","728030f1.5f8d4","8a396544.257e98","54057e83.51c6","1213ba69.b63ac6","6a46717c.31593","d9aecf38.a7cc9"],"x":14,"y":3719,"w":392,"h":202},{"id":"63145322.a601dc","type":"group","z":"89f03bbf.93f678","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["36935384.ec98cc","de2bc717.7baf28","425b5d56.851ff4","5957758a.f5ec4c"],"x":1394,"y":4019,"w":312,"h":122},{"id":"80866fc6.c1d82","type":"group","z":"89f03bbf.93f678","name":"Batteri registrering","style":{"stroke":"#ff0000","label":true},"nodes":["b7aa691e.839bb8","817661a8.e5841","43f302fa.7f117c","814c03b5.a4528","94cfd309.72f8d","b434d6b9.f54c08","ad50531b.a93da","8cc6cb2b.b7bd58","75b54f9a.62862","7d2a45fe.4ab66c"],"x":-6,"y":2559,"w":802,"h":142},{"id":"8e2218a3.c3e1e8","type":"group","z":"89f03bbf.93f678","name":"Batteri registrering cart 4","style":{"stroke":"#ff0000","label":true},"nodes":["d21574ff.d03a78","a494f262.08b55","78ac915b.a9cac","39f43f6.09707c","3700ce9e.8b6762","1d928f8.f103771","4d20b53e.8c27ac","e4ccb67b.5448a8","12a535a1.f1c06a","9835bca0.f55ab"],"x":14,"y":2399,"w":782,"h":142},{"id":"9dc32984.633198","type":"group","z":"89f03bbf.93f678","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["f85bc0ef.a00f2","e3345ce6.1f766","4c2a7c71.ac87b4","2fdba0c9.d298b","cd7e8df.3f3337","f3c53fa1.9f072","fcf25e07.c4fb3","ca8c3d8b.ac2ad","9723a197.ebb69","7a50827d.ec8eec"],"x":454,"y":1479,"w":592,"h":322},{"id":"a362e881.c34398","type":"group","z":"89f03bbf.93f678","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["6ac1333d.de42cc","c871396d.4a9de8","204fed31.a0b0b2","e09f48d0.0ddde8"],"x":1594,"y":1079,"w":312,"h":162},{"id":"cb1bf4e3.96c498","type":"group","z":"89f03bbf.93f678","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["3afd9e18.eab912","46820b6f.81b0c4","6d833e24.8ba7b","73c43eb2.16788","d71a827.5fdd68","9d8bc8d.efe5938","e399ff84.583b7","c403b85c.c118d8","59848efc.e4312"],"x":2288,"y":2079,"w":578,"h":348},{"id":"59848efc.e4312","type":"group","z":"89f03bbf.93f678","g":"cb1bf4e3.96c498","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["ae09a067.6fa68","ee8afe32.20cb8","fef2197c.e3dc88","8e07b33d.70b13"],"x":2314,"y":2279,"w":312,"h":122},{"id":"e186b716.baab48","type":"group","z":"89f03bbf.93f678","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["795901fd.d2326","ddda208a.2dda","cd4de8d3.cfe9b8","48b374b1.00b5ac","faf67cfe.164e6","edd49cbf.35c73","81fc6d2e.3b111","28092889.1bd528","d16a08f1.6cc938"],"x":1568,"y":2859,"w":578,"h":348},{"id":"d16a08f1.6cc938","type":"group","z":"89f03bbf.93f678","g":"e186b716.baab48","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["dc53d44a.84bd88","dc4675a3.2318e8","992a3d32.e60f8","23759ecd.1073f2"],"x":1594,"y":3059,"w":312,"h":122},{"id":"f4714e17.87b04","type":"group","z":"89f03bbf.93f678","name":"Batteri registrering cart 1","style":{"stroke":"#ff3f3f","label":true},"nodes":["462e0da9.cb6794","3e1030c4.6ffc8","bf295bda.f9c478","c1289a1e.f4e368","447d2075.b53fe","9d2d7031.53e45","35358abd.f347f6","44657ab.566be84","7f3c995d.03f798","e5f2081.f51bff8"],"x":34,"y":1819,"w":802,"h":222},{"id":"fdf4aae6.8a16a8","type":"group","z":"89f03bbf.93f678","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["e09c48e4.d44658","a9103740.710868","3c4f295.8d8ebd6","dd8244ee.d02658","27cb37f3.f411f8","1eb6c83d.7e1db8","c9ef1b27.ed58a8","475ff320.c5374c","e3b71e34.1868e","ade796e5.cf8298"],"x":1568,"y":1999,"w":578,"h":428},{"id":"e3b71e34.1868e","type":"group","z":"89f03bbf.93f678","g":"fdf4aae6.8a16a8","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["4ea52716.643478","f07dd8ba.eef028","447afff6.00431","44825de1.c5bf14"],"x":1594,"y":2279,"w":312,"h":122},{"id":"d73985e8.1e76a8","type":"inject","z":"89f03bbf.93f678","name":"Blue","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"RGB\":[93.67347,83.2653,78.06123],\"speeder\":282,\"output\":0,\"mode\":\"BLUE\"}","payloadType":"str","x":2070,"y":20,"wires":[["69a4dfcd.49604"]]},{"id":"633c537c.dbe49c","type":"inject","z":"89f03bbf.93f678","name":"yellow","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"RGB\":[93.67347,83.2653,78.06123],\"speeder\":282,\"output\":0,\"mode\":\"YELLOW\"}","payloadType":"str","x":2070,"y":60,"wires":[["69a4dfcd.49604"]]},{"id":"d90ddd98.ba8fc","type":"inject","z":"89f03bbf.93f678","name":"Red","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"RGB\":[93.67347,83.2653,78.06123],\"speeder\":282,\"output\":0,\"mode\":\"RED\"}","payloadType":"str","x":2070,"y":100,"wires":[["69a4dfcd.49604"]]},{"id":"69a4dfcd.49604","type":"link out","z":"89f03bbf.93f678","name":"Gocart Color","links":["cee5f30b.e2861","f00d6ee8.ebbf1","b150b0b2.85dee","d3eece2c.dbbe8","ef8c8f8a.e8182","d0a28d53.f179a","87200eb3.4749c","f462d0cc.22095","6f42d636.3feba8"],"x":2265,"y":60,"wires":[]},{"id":"c6c0b2e2.24262","type":"ui_button","z":"89f03bbf.93f678","g":"4a48673a.2732c8","name":"Reset batteri","group":"d88ad459.6a8ad8","order":7,"width":2,"height":1,"passthru":false,"label":"Reset batteri","tooltip":"","color":"","bgcolor":"{{msg.background.edit}}","icon":"","payload":"","payloadType":"str","topic":"","x":250,"y":380,"wires":[["5a1f69f1.4844b8"]]},{"id":"2fc64225.4e5a4e","type":"link out","z":"89f03bbf.93f678","name":"Tændt gocart","links":["48b425d9.17537c","c4e1bde3.80764","6b971ca.a76dbe4","76213822.549258","619b0527.f11e9c","e55bd324.19d51","63237651.bd38d8","56a4769e.ebf728","b2e28559.b185b8","d7ee4b16.e90278","af233fda.d3ea2"],"x":295,"y":140,"wires":[]},{"id":"665c9d89.2ee3e4","type":"comment","z":"89f03bbf.93f678","name":"This flow can be used to calculate short and long presses from a GPIO pin, expects 1 or 0 as payload","info":"","x":2540,"y":120,"wires":[]},{"id":"24b753fc.696a5c","type":"inject","z":"89f03bbf.93f678","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":570,"y":220,"wires":[["b57775b8.565268"]]},{"id":"4dc5f61f.0e6c28","type":"inject","z":"89f03bbf.93f678","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"0","payloadType":"num","x":570,"y":260,"wires":[["b57775b8.565268"]]},{"id":"b57775b8.565268","type":"change","z":"89f03bbf.93f678","name":"Add timestamp","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\t 'state': payload,\t 'timestamp': $millis()\t}","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":740,"y":240,"wires":[["f78fd81e.82bfb8"]]},{"id":"f78fd81e.82bfb8","type":"join","z":"89f03bbf.93f678","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"payload.state","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":910,"y":240,"wires":[["b94005cd.8068e8"]]},{"id":"d7828d2b.1c81","type":"debug","z":"89f03bbf.93f678","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":1490,"y":240,"wires":[]},{"id":"885e7351.1e0e3","type":"change","z":"89f03bbf.93f678","name":"Process delta","rules":[{"t":"set","p":"threshold","pt":"msg","to":"400","tot":"num"},{"t":"set","p":"delta","pt":"msg","to":"$lookup(payload, '0').timestamp - $lookup(payload, '1').timestamp","tot":"jsonata"},{"t":"set","p":"payload","pt":"msg","to":"delta < threshold ? 'short' : 'long'","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1280,"y":240,"wires":[["d7828d2b.1c81"]]},{"id":"b94005cd.8068e8","type":"switch","z":"89f03bbf.93f678","name":"Filter negative","property":"$lookup(payload, '0').timestamp - $lookup(payload, '1').timestamp","propertyType":"jsonata","rules":[{"t":"gt","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":1080,"y":240,"wires":[["885e7351.1e0e3"]]},{"id":"fa958397.1d45d","type":"comment","z":"89f03bbf.93f678","name":"Time treshold is set here","info":"","x":1310,"y":280,"wires":[]},{"id":"489be528.92358c","type":"change","z":"89f03bbf.93f678","g":"4a48673a.2732c8","name":"Red","rules":[{"t":"set","p":"background.edit","pt":"msg","to":"RED","tot":"str"},{"t":"set","p":"edit","pt":"flow","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":690,"y":420,"wires":[["c6c0b2e2.24262"]]},{"id":"e6a8ca36.18a728","type":"change","z":"89f03bbf.93f678","g":"4a48673a.2732c8","name":"Green","rules":[{"t":"set","p":"background.edit","pt":"msg","to":"GREEN","tot":"str"},{"t":"set","p":"edit","pt":"flow","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":690,"y":360,"wires":[["c6c0b2e2.24262"]]},{"id":"5a1f69f1.4844b8","type":"switch","z":"89f03bbf.93f678","g":"4a48673a.2732c8","name":"","property":"edit","propertyType":"flow","rules":[{"t":"false"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":470,"y":420,"wires":[["e6a8ca36.18a728"],["489be528.92358c"]]},{"id":"f86916f8.854f98","type":"link in","z":"89f03bbf.93f678","g":"4a48673a.2732c8","name":"","links":["b8bbce78.36e1b","cf8b1a01.d9b668","3946183.526efe8","1efff6cc.7933f9","919d0a87.b0e8f8","8eafa321.cba1b","44657ab.566be84","a4e27021.d33e8","12a535a1.f1c06a","75b54f9a.62862","4fda6452.44818c"],"x":205,"y":480,"wires":[["c6c0b2e2.24262"]]},{"id":"3322715f.17874e","type":"mqtt in","z":"89f03bbf.93f678","name":"","topic":"Cart7","qos":"2","datatype":"auto","broker":"dca8425b.8fb18","x":190,"y":1560,"wires":[["23f4e39a.39bbdc","3f0c5a48.c32ce6"]]},{"id":"75b12ad7.13a2f4","type":"ui_button","z":"89f03bbf.93f678","g":"24e46ee5.50b382","name":"7 bat. time","group":"1abc70f0.fd142f","order":5,"width":2,"height":1,"passthru":false,"label":"{{msg.payload}} Min.","tooltip":"","color":"","bgcolor":"","icon":"","payload":"1","payloadType":"num","topic":"ONE","x":610,"y":2760,"wires":[["37cae3ef.4a056c"]]},{"id":"7199f0e9.d6c53","type":"ui_level","z":"89f03bbf.93f678","g":"24e46ee5.50b382","group":"1abc70f0.fd142f","order":7,"width":2,"height":1,"name":"7 Level","label":"","colorHi":"#e60000","colorWarn":"#ff9900","colorNormal":"#00b33c","colorOff":"#595959","min":0,"max":"360","segWarn":"","segHigh":"","unit":"","layout":"sh","channelA":"","channelB":"","decimals":"0","animations":"soft","shape":"1","colorschema":"fixed","textoptions":"custom","colorText":"#eeeeee","fontLabel":"","fontValue":"","fontSmall":"0.7","colorFromTheme":true,"textAnimations":true,"hideValue":true,"tickmode":"off","peakmode":false,"property":"payload","peaktime":3000,"x":320,"y":2820,"wires":[]},{"id":"37cae3ef.4a056c","type":"switch","z":"89f03bbf.93f678","g":"24e46ee5.50b382","name":"","property":"edit","propertyType":"flow","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":450,"y":2820,"wires":[["6cbebcd3.9af924"]]},{"id":"6cbebcd3.9af924","type":"change","z":"89f03bbf.93f678","g":"24e46ee5.50b382","name":"Set counter to 0","rules":[{"t":"set","p":"payload","pt":"msg","to":"0","tot":"num"},{"t":"set","p":"reset","pt":"msg","to":"1","tot":"num"},{"t":"set","p":"edit","pt":"flow","to":"false","tot":"bool"},{"t":"set","p":"background.edit","pt":"msg","to":"RED","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":600,"y":2820,"wires":[["b8bbce78.36e1b","1b1e7ab7.be72c5"]]},{"id":"b8bbce78.36e1b","type":"link out","z":"89f03bbf.93f678","g":"24e46ee5.50b382","name":"Reset Battery","links":["f86916f8.854f98","e6564522.9e6348"],"x":715,"y":2820,"wires":[]},{"id":"e5412e4a.90aee","type":"mqtt in","z":"89f03bbf.93f678","name":"","topic":"Cart6","qos":"2","datatype":"auto","broker":"dca8425b.8fb18","x":190,"y":1480,"wires":[["23f4e39a.39bbdc","67ba86f8.4d2118"]]},{"id":"9e7389aa.dcc698","type":"ui_button","z":"89f03bbf.93f678","g":"1afc5121.af897f","name":"6 bat. time","group":"1a7f6b0.0560695","order":40,"width":2,"height":1,"passthru":false,"label":"{{msg.payload}} Min.","tooltip":"","color":"","bgcolor":"","icon":"","payload":"1","payloadType":"num","topic":"ONE","x":670,"y":2920,"wires":[["d87efaa1.059cd8"]]},{"id":"8ffdbf78.5e4e4","type":"ui_level","z":"89f03bbf.93f678","g":"1afc5121.af897f","group":"1a7f6b0.0560695","order":42,"width":2,"height":1,"name":"6 level","label":"","colorHi":"#e60000","colorWarn":"#ff9900","colorNormal":"#00b33c","colorOff":"#595959","min":0,"max":"360","segWarn":"","segHigh":"","unit":"","layout":"sh","channelA":"","channelB":"","decimals":0,"animations":"soft","shape":"1","colorschema":"fixed","textoptions":"custom","colorText":"#eeeeee","fontLabel":"","fontValue":"","fontSmall":"0.7","colorFromTheme":true,"textAnimations":true,"hideValue":true,"tickmode":"off","peakmode":false,"property":"payload","peaktime":3000,"x":330,"y":2980,"wires":[]},{"id":"d87efaa1.059cd8","type":"switch","z":"89f03bbf.93f678","g":"1afc5121.af897f","name":"","property":"edit","propertyType":"flow","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":490,"y":2980,"wires":[["172127cf.ead018"]]},{"id":"172127cf.ead018","type":"change","z":"89f03bbf.93f678","g":"1afc5121.af897f","name":"Set counter to 0","rules":[{"t":"set","p":"payload","pt":"msg","to":"0","tot":"num"},{"t":"set","p":"reset","pt":"msg","to":"1","tot":"num"},{"t":"set","p":"edit","pt":"flow","to":"false","tot":"bool"},{"t":"set","p":"background.edit","pt":"msg","to":"RED","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":2980,"wires":[["8601e34f.a8d54","4fda6452.44818c"]]},{"id":"3a4d0d91.2a4e12","type":"mqtt in","z":"89f03bbf.93f678","name":"","topic":"Cart5","qos":"2","datatype":"auto","broker":"dca8425b.8fb18","x":190,"y":1400,"wires":[["23f4e39a.39bbdc","7cb7cd83.db7eb4"]]},{"id":"b7aa691e.839bb8","type":"ui_button","z":"89f03bbf.93f678","g":"80866fc6.c1d82","name":"5 bat. time","group":"1a7f6b0.0560695","order":33,"width":2,"height":1,"passthru":false,"label":"{{msg.payload}} Min.","tooltip":"","color":"","bgcolor":"","icon":"","payload":"1","payloadType":"num","topic":"ONE","x":630,"y":2600,"wires":[["43f302fa.7f117c"]]},{"id":"817661a8.e5841","type":"ui_level","z":"89f03bbf.93f678","g":"80866fc6.c1d82","group":"1a7f6b0.0560695","order":35,"width":2,"height":1,"name":"5 level","label":"","colorHi":"#e60000","colorWarn":"#ff9900","colorNormal":"#00b33c","colorOff":"#595959","min":0,"max":"360","segWarn":"","segHigh":"","unit":"","layout":"sh","channelA":"","channelB":"","decimals":0,"animations":"soft","shape":"1","colorschema":"fixed","textoptions":"custom","colorText":"#eeeeee","fontLabel":"","fontValue":"","fontSmall":"0.7","colorFromTheme":true,"textAnimations":true,"hideValue":true,"tickmode":"off","peakmode":false,"property":"payload","peaktime":3000,"x":310,"y":2660,"wires":[]},{"id":"43f302fa.7f117c","type":"switch","z":"89f03bbf.93f678","g":"80866fc6.c1d82","name":"","property":"edit","propertyType":"flow","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":450,"y":2660,"wires":[["814c03b5.a4528"]]},{"id":"814c03b5.a4528","type":"change","z":"89f03bbf.93f678","g":"80866fc6.c1d82","name":"Set counter to 0","rules":[{"t":"set","p":"payload","pt":"msg","to":"0","tot":"num"},{"t":"set","p":"reset","pt":"msg","to":"1","tot":"num"},{"t":"set","p":"edit","pt":"flow","to":"false","tot":"bool"},{"t":"set","p":"background.edit","pt":"msg","to":"RED","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":640,"y":2660,"wires":[["94cfd309.72f8d","75b54f9a.62862"]]},{"id":"c1bd2afa.3ea2c8","type":"mqtt in","z":"89f03bbf.93f678","name":"","topic":"Cart4","qos":"2","datatype":"auto","broker":"dca8425b.8fb18","x":190,"y":1320,"wires":[["23f4e39a.39bbdc","60d7288c.c73728"]]},{"id":"d21574ff.d03a78","type":"ui_button","z":"89f03bbf.93f678","g":"8e2218a3.c3e1e8","name":"4 bat. time","group":"1a7f6b0.0560695","order":26,"width":2,"height":1,"passthru":false,"label":"{{msg.payload}} Min.","tooltip":"","color":"","bgcolor":"","icon":"","payload":"1","payloadType":"num","topic":"ONE","x":630,"y":2440,"wires":[["78ac915b.a9cac"]]},{"id":"a494f262.08b55","type":"ui_level","z":"89f03bbf.93f678","g":"8e2218a3.c3e1e8","group":"1a7f6b0.0560695","order":28,"width":2,"height":1,"name":"4 level","label":"","colorHi":"#e60000","colorWarn":"#ff9900","colorNormal":"#00b33c","colorOff":"#595959","min":0,"max":"360","segWarn":"","segHigh":"","unit":"","layout":"sh","channelA":"","channelB":"","decimals":0,"animations":"soft","shape":"1","colorschema":"fixed","textoptions":"custom","colorText":"#eeeeee","fontLabel":"","fontValue":"","fontSmall":"0.7","colorFromTheme":true,"textAnimations":true,"hideValue":true,"tickmode":"off","peakmode":false,"property":"payload","peaktime":3000,"x":310,"y":2500,"wires":[]},{"id":"78ac915b.a9cac","type":"switch","z":"89f03bbf.93f678","g":"8e2218a3.c3e1e8","name":"","property":"edit","propertyType":"flow","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":450,"y":2500,"wires":[["39f43f6.09707c"]]},{"id":"39f43f6.09707c","type":"change","z":"89f03bbf.93f678","g":"8e2218a3.c3e1e8","name":"Set counter to 0","rules":[{"t":"set","p":"payload","pt":"msg","to":"0","tot":"num"},{"t":"set","p":"reset","pt":"msg","to":"1","tot":"num"},{"t":"set","p":"edit","pt":"flow","to":"false","tot":"bool"},{"t":"set","p":"background.edit","pt":"msg","to":"RED","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":640,"y":2500,"wires":[["e4ccb67b.5448a8","12a535a1.f1c06a"]]},{"id":"c94d0077.00782","type":"ui_button","z":"89f03bbf.93f678","g":"52d67eaf.37db","name":"Kill all","group":"d88ad459.6a8ad8","order":1,"width":3,"height":2,"passthru":false,"label":"<font size = 10>{{msg.kill.text}}","tooltip":"","color":"","bgcolor":"{{msg.kill.background}}","icon":"","payload":"","payloadType":"str","topic":"","x":1010,"y":420,"wires":[["612eef9e.c088a","7b407c4c.9cc064"]]},{"id":"a8a10cc2.9d0ae","type":"ui_template","z":"89f03bbf.93f678","g":"52d67eaf.37db","group":"1a7f6b0.0560695","name":"Font size","order":42,"width":0,"height":0,"format":"<style>\nbody.nr-dashboard-theme {\n font-size: 20px !important;\n}\n.md-toolbar-tools h1 {\n font-size: 20px !important;\n}\n</style>","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":false,"templateScope":"local","x":1040,"y":540,"wires":[[]]},{"id":"98714863.006c68","type":"ui_text","z":"89f03bbf.93f678","group":"242d1b9c.039d64","order":15,"width":7,"height":1,"name":"1 lap time","label":"<font size=15>Lap time","format":"<font size=15>{{msg.laptime}} ","layout":"row-spread","x":4820,"y":1680,"wires":[]},{"id":"ca13728b.b39c2","type":"inject","z":"89f03bbf.93f678","name":"Set tid til 0","props":[{"p":"reset","v":"true","vt":"bool"},{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"0","payloadType":"num","x":3140,"y":40,"wires":[[]]},{"id":"f116e216.61309","type":"ui_text","z":"89f03bbf.93f678","group":"da22b4b5.aa6978","order":7,"width":5,"height":1,"name":"Heat time","label":"<font size=15>Heat","format":"<font size=15>{{msg.payload}} ","layout":"row-spread","x":4560,"y":420,"wires":[]},{"id":"630c342c.9117ac","type":"inject","z":"89f03bbf.93f678","name":"Start heat","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":"","topic":"on","payload":"","payloadType":"date","x":2520,"y":320,"wires":[[]]},{"id":"8520e320.f45f6","type":"inject","z":"89f03bbf.93f678","name":"on","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"on","payload":"","payloadType":"date","x":3310,"y":40,"wires":[["c1127df.ff6fb8"]]},{"id":"c731cc40.2f36a","type":"inject","z":"89f03bbf.93f678","name":"Stop","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"off","payload":"","payloadType":"date","x":3310,"y":80,"wires":[["c1127df.ff6fb8","815bfa31.b65e68"]]},{"id":"46238a09.1ee4c4","type":"inject","z":"89f03bbf.93f678","name":"reset","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"reset","payload":"","payloadType":"date","x":3310,"y":120,"wires":[["c1127df.ff6fb8","4b26016a.99d0d"]]},{"id":"9cc66c3c.0c0eb","type":"debug","z":"89f03bbf.93f678","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":4350,"y":460,"wires":[]},{"id":"3075b1d5.efffae","type":"dsm","z":"89f03bbf.93f678","name":"Heat time","sm_config":"{\n \"currentState\": \"stopped\",\n \"states\": {\n \"stopped\": {\n \"on\": \"started\"\n },\n \"started\": {\n \"inc\": \"counting\",\n \"off\": \"stopped\"\n },\n \"counting\": {\n \"inc\": \"counting\",\n \"off\": \"stopped\"\n }\n },\n \"data\": {\n \"prev_time\": null,\n \"time\": 0,\n \"seconds\": 0,\n \"interval\": 1,\n \"interval_output\": true,\n \"hms_format\": true\n },\n \"methods\": {\n \"init\": [\n \"sm.calc_time = function() {\",\n \" var now = Date.now();\",\n \" sm.data.time += now - sm.data.prev_time;\",\n \" sm.data.prev_time = now;\",\n \" sm.data.seconds = Math.round(sm.data.time / 1000);\",\n \"};\",\n \"sm.sec2hhmmss = function(sec) {\",\n \"var t = {};\",\n \"t.h = pad(Math.floor(sec / 3600));\",\n \"sec %= 3600;\",\n \"t.m = pad(Math.floor(sec / 60));\",\n \"t.s = pad(sec % 60);\",\n \"return t.h+':'+t.m+':'+t.s;\",\n \"};\"\n ],\n \"on\": [\n \"if (sm.currentState === 'started') {\",\n \" sm.data.prev_time = Date.now();\",\n \" resume('inc', msg);\",\n \"}\",\n \"output = false;\"\n ],\n \"inc\": [\n \"timeout.interval = setTimeout(function() {\",\n \" sm.calc_time();\",\n \" msg.data = sm.data;\",\n \" if (sm.data.interval_output) {\",\n \" msg.payload = sm.data.hms_format ? sm.sec2hhmmss(sm.data.seconds): sm.data.seconds;\",\n \" node.send(msg);\",\n \" }\",\n \" resume('inc', msg);\",\n \"}, sm.data.interval*1000);\",\n \"output = false;\"\n ],\n \"off\": [\n \"clearTimeout(timeout.interval);\",\n \"sm.calc_time();\",\n \"msg.payload = sm.data.hms_format ? sm.sec2hhmmss(sm.data.seconds): sm.data.seconds;\"\n ],\n \"reset\": [\n \"sm.data.time = 0;\",\n \"sm.data.seconds = 0;\"\n ],\n \"status\": {\n \"fill\": {\n \"get\": \"sm.currentState === 'counting' ? 'green' : 'grey';\"\n },\n \"shape\": \"dot\",\n \"text\": {\n \"get\": \"'time ' + (sm.data.hms_format ? sm.sec2hhmmss(sm.data.seconds): sm.data.seconds);\"\n }\n }\n }\n}\n","x":4110,"y":420,"wires":[["9cc66c3c.0c0eb","14d5b5dd.1e57fa","153bc3ef.e1d49c"]]},{"id":"65f8eb04.e95e44","type":"ui_text","z":"89f03bbf.93f678","group":"242d1b9c.039d64","order":4,"width":5,"height":1,"name":"1 Best lap","label":"<font size =6>Best lap","format":"<font size =6>{{msg.bestlap}} ","layout":"row-spread","x":4820,"y":1620,"wires":[]},{"id":"17d07eca.af0001","type":"ui_dropdown","z":"89f03bbf.93f678","name":"Antal omgange","label":"","tooltip":"","place":"Omgange","group":"d88ad459.6a8ad8","order":3,"width":3,"height":2,"passthru":true,"multiple":false,"options":[{"label":"1 lab","value":1,"type":"num"},{"label":"2 lab","value":2,"type":"num"},{"label":"3 lab","value":3,"type":"num"},{"label":"4 lab","value":4,"type":"num"}],"payload":"","topic":"","x":2800,"y":280,"wires":[["8d92bee6.dd95c","64e6ecec.89e174"]]},{"id":"14c19f80.08f451","type":"mqtt in","z":"89f03bbf.93f678","name":"","topic":"Cart2","qos":"2","datatype":"auto","broker":"dca8425b.8fb18","x":190,"y":1160,"wires":[["23f4e39a.39bbdc","65e53a61.664504"]]},{"id":"2561cf3.6dc813","type":"ui_button","z":"89f03bbf.93f678","g":"11f75467.fe067c","name":"2 bat. time","group":"1a7f6b0.0560695","order":12,"width":2,"height":1,"passthru":false,"label":"{{msg.payload}} Min.","tooltip":"","color":"","bgcolor":"","icon":"","payload":"1","payloadType":"num","topic":"ONE","x":690,"y":2120,"wires":[["7dcbd578.40fecc"]]},{"id":"65310a1e.635f44","type":"ui_level","z":"89f03bbf.93f678","g":"11f75467.fe067c","group":"1a7f6b0.0560695","order":14,"width":2,"height":1,"name":"2 level","label":"","colorHi":"#e60000","colorWarn":"#ff9900","colorNormal":"#00b33c","colorOff":"#595959","min":0,"max":"360","segWarn":"","segHigh":"","unit":"","layout":"sh","channelA":"","channelB":"","decimals":0,"animations":"soft","shape":"1","colorschema":"fixed","textoptions":"custom","colorText":"#eeeeee","fontLabel":"","fontValue":"","fontSmall":"0.7","colorFromTheme":true,"textAnimations":true,"hideValue":true,"tickmode":"off","peakmode":false,"property":"payload","peaktime":3000,"x":350,"y":2180,"wires":[]},{"id":"7dcbd578.40fecc","type":"switch","z":"89f03bbf.93f678","g":"11f75467.fe067c","name":"","property":"edit","propertyType":"flow","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":490,"y":2180,"wires":[["63c951e5.8941a"]]},{"id":"63c951e5.8941a","type":"change","z":"89f03bbf.93f678","g":"11f75467.fe067c","name":"Set counter to 0","rules":[{"t":"set","p":"payload","pt":"msg","to":"0","tot":"num"},{"t":"set","p":"reset","pt":"msg","to":"1","tot":"num"},{"t":"set","p":"edit","pt":"flow","to":"false","tot":"bool"},{"t":"set","p":"background.edit","pt":"msg","to":"RED","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":680,"y":2180,"wires":[["2561cf3.6dc813","27e19c9e.871c94","8eafa321.cba1b"]]},{"id":"27e19c9e.871c94","type":"sum","z":"89f03bbf.93f678","g":"11f75467.fe067c","name":"","topic":"","x":330,"y":2120,"wires":[["65310a1e.635f44","106cca75.669976"]]},{"id":"e69fac07.2b5b3","type":"change","z":"89f03bbf.93f678","g":"11f75467.fe067c","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"","tot":"date"},{"t":"set","p":"payload","pt":"msg","to":"payload.output","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":180,"y":2180,"wires":[["a9fcc6cb.2ac9d8"]]},{"id":"a9fcc6cb.2ac9d8","type":"calculator","z":"89f03bbf.93f678","g":"11f75467.fe067c","name":"","inputMsgField":"payload","outputMsgField":"payload","operation":"div","constant":"10000","round":true,"decimals":"2","x":170,"y":2120,"wires":[["27e19c9e.871c94"]]},{"id":"106cca75.669976","type":"calculator","z":"89f03bbf.93f678","g":"11f75467.fe067c","name":"","inputMsgField":"payload","outputMsgField":"payload","operation":"mult","constant":"1","round":true,"decimals":0,"x":520,"y":2120,"wires":[["2561cf3.6dc813"]]},{"id":"e4ccb67b.5448a8","type":"sum","z":"89f03bbf.93f678","g":"8e2218a3.c3e1e8","name":"","topic":"","x":290,"y":2440,"wires":[["1d928f8.f103771","a494f262.08b55"]]},{"id":"3700ce9e.8b6762","type":"change","z":"89f03bbf.93f678","g":"8e2218a3.c3e1e8","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"","tot":"date"},{"t":"set","p":"payload","pt":"msg","to":"payload.output","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":160,"y":2500,"wires":[["4d20b53e.8c27ac"]]},{"id":"4d20b53e.8c27ac","type":"calculator","z":"89f03bbf.93f678","g":"8e2218a3.c3e1e8","name":"","inputMsgField":"payload","outputMsgField":"payload","operation":"div","constant":"10000","round":true,"decimals":"2","x":150,"y":2440,"wires":[["e4ccb67b.5448a8"]]},{"id":"1d928f8.f103771","type":"calculator","z":"89f03bbf.93f678","g":"8e2218a3.c3e1e8","name":"","inputMsgField":"payload","outputMsgField":"payload","operation":"mult","constant":"1","round":true,"decimals":0,"x":460,"y":2440,"wires":[["d21574ff.d03a78"]]},{"id":"94cfd309.72f8d","type":"sum","z":"89f03bbf.93f678","g":"80866fc6.c1d82","name":"","topic":"","x":310,"y":2600,"wires":[["8cc6cb2b.b7bd58","817661a8.e5841"]]},{"id":"b434d6b9.f54c08","type":"change","z":"89f03bbf.93f678","g":"80866fc6.c1d82","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"","tot":"date"},{"t":"set","p":"payload","pt":"msg","to":"payload.output","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":160,"y":2660,"wires":[["ad50531b.a93da"]]},{"id":"ad50531b.a93da","type":"calculator","z":"89f03bbf.93f678","g":"80866fc6.c1d82","name":"","inputMsgField":"payload","outputMsgField":"payload","operation":"div","constant":"10000","round":true,"decimals":"2","x":150,"y":2600,"wires":[["94cfd309.72f8d"]]},{"id":"8cc6cb2b.b7bd58","type":"calculator","z":"89f03bbf.93f678","g":"80866fc6.c1d82","name":"","inputMsgField":"payload","outputMsgField":"payload","operation":"mult","constant":"1","round":true,"decimals":0,"x":460,"y":2600,"wires":[["b7aa691e.839bb8"]]},{"id":"8601e34f.a8d54","type":"sum","z":"89f03bbf.93f678","g":"1afc5121.af897f","name":"","topic":"","x":330,"y":2920,"wires":[["8253f3c2.bbd1a","8ffdbf78.5e4e4"]]},{"id":"a16db157.b3cb3","type":"change","z":"89f03bbf.93f678","g":"1afc5121.af897f","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"","tot":"date"},{"t":"set","p":"payload","pt":"msg","to":"payload.output","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":160,"y":2980,"wires":[["c22161ca.d81f3"]]},{"id":"c22161ca.d81f3","type":"calculator","z":"89f03bbf.93f678","g":"1afc5121.af897f","name":"","inputMsgField":"payload","outputMsgField":"payload","operation":"div","constant":"10000","round":true,"decimals":"2","x":150,"y":2920,"wires":[["8601e34f.a8d54"]]},{"id":"8253f3c2.bbd1a","type":"calculator","z":"89f03bbf.93f678","g":"1afc5121.af897f","name":"","inputMsgField":"payload","outputMsgField":"payload","operation":"mult","constant":"1","round":true,"decimals":0,"x":500,"y":2920,"wires":[["9e7389aa.dcc698"]]},{"id":"1b1e7ab7.be72c5","type":"sum","z":"89f03bbf.93f678","g":"24e46ee5.50b382","name":"","topic":"","x":310,"y":2760,"wires":[["5324036e.06db4c","7199f0e9.d6c53"]]},{"id":"7745e5dc.98fa2c","type":"change","z":"89f03bbf.93f678","g":"24e46ee5.50b382","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"","tot":"date"},{"t":"set","p":"payload","pt":"msg","to":"payload.output","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":160,"y":2820,"wires":[["92cd6bfd.9ab7d8"]]},{"id":"92cd6bfd.9ab7d8","type":"calculator","z":"89f03bbf.93f678","g":"24e46ee5.50b382","name":"","inputMsgField":"payload","outputMsgField":"payload","operation":"div","constant":"10000","round":true,"decimals":"2","x":150,"y":2760,"wires":[["1b1e7ab7.be72c5"]]},{"id":"5324036e.06db4c","type":"calculator","z":"89f03bbf.93f678","g":"24e46ee5.50b382","name":"","inputMsgField":"payload","outputMsgField":"payload","operation":"mult","constant":"1","round":true,"decimals":0,"x":460,"y":2760,"wires":[["75b12ad7.13a2f4"]]},{"id":"4b26016a.99d0d","type":"link out","z":"89f03bbf.93f678","name":"reset race","links":["f8bf982b.437098","4f39ee3f.c1dec","aa848550.999fa8","dab5f699.2be008","df70d167.d4d56","204fed31.a0b0b2","c8a5b99c.752e58","7a06bf49.a5013"],"x":3575,"y":120,"wires":[]},{"id":"14d5b5dd.1e57fa","type":"moment","z":"89f03bbf.93f678","name":"Format time","topic":"","input":"payload","inputType":"msg","inTz":"Africa/Abidjan","adjAmount":0,"adjType":"milliseconds","adjDir":"add","format":"mm:ss","locale":"en-US","output":"payload","outputType":"msg","outTz":"Europe/Copenhagen","x":4350,"y":420,"wires":[["f116e216.61309"]]},{"id":"98523f4b.4e796","type":"moment","z":"89f03bbf.93f678","name":".","topic":"","input":"payload","inputType":"msg","inTz":"Africa/Abidjan","adjAmount":0,"adjType":"milliseconds","adjDir":"add","format":"mm:ss","locale":"en-US","output":"payload","outputType":"msg","outTz":"Europe/Copenhagen","x":1190,"y":40,"wires":[["17571680.4fe26a","9e2724df.7e8a28"]]},{"id":"34b18072.88548","type":"inject","z":"89f03bbf.93f678","name":"","props":[{"p":"1","v":"","vt":"date"},{"p":"2","v":"","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":990,"y":40,"wires":[["98523f4b.4e796"]]},{"id":"9716cf64.21531","type":"moment","z":"89f03bbf.93f678","name":".","topic":"","input":"payload","inputType":"msg","inTz":"Africa/Abidjan","adjAmount":0,"adjType":"milliseconds","adjDir":"add","format":"mm:ss","locale":"en-US","output":"payload","outputType":"msg","outTz":"Europe/Copenhagen","x":1200,"y":160,"wires":[["9e2724df.7e8a28"]]},{"id":"21b3f726.256618","type":"inject","z":"89f03bbf.93f678","name":"","props":[{"p":"2","v":"","vt":"date"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":990,"y":160,"wires":[["9716cf64.21531"]]},{"id":"4bfae6b5.8af9c8","type":"debug","z":"89f03bbf.93f678","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1350,"y":120,"wires":[]},{"id":"17571680.4fe26a","type":"debug","z":"89f03bbf.93f678","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1370,"y":40,"wires":[]},{"id":"9e2724df.7e8a28","type":"switch","z":"89f03bbf.93f678","name":"","property":"1","propertyType":"msg","rules":[{"t":"gt","v":"2","vt":"msg"}],"checkall":"true","repair":false,"outputs":1,"x":1190,"y":80,"wires":[["4bfae6b5.8af9c8"]]},{"id":"c1127df.ff6fb8","type":"link out","z":"89f03bbf.93f678","name":"on/Stop/Reset","links":["1d76d689.2f3089","66f131a2.34922"],"x":3575,"y":60,"wires":[]},{"id":"153bc3ef.e1d49c","type":"change","z":"89f03bbf.93f678","name":"Set heattime","rules":[{"t":"set","p":"heattime","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":4350,"y":380,"wires":[[]]},{"id":"8c9ca9e4.c8b058","type":"ui_button","z":"89f03bbf.93f678","name":"2 Cust","group":"ab49468f.d87598","order":1,"width":6,"height":1,"passthru":false,"label":"<font size = 20> 2: {{msg.payload}}","tooltip":"","color":"","bgcolor":"dark grey","icon":"","payload":"","payloadType":"str","topic":"","x":1610,"y":3860,"wires":[[]]},{"id":"44565355.4ccf6c","type":"ui_text_input","z":"89f03bbf.93f678","name":"2 Cust name","label":"<font size = 5> Hold navn","tooltip":"","group":"ab49468f.d87598","order":2,"width":3,"height":1,"passthru":true,"mode":"text","delay":300,"topic":"","x":1470,"y":3860,"wires":[["8c9ca9e4.c8b058"]],"info":"<font size = 20>"},{"id":"3d0011ec.581e3e","type":"ui_text","z":"89f03bbf.93f678","group":"ab49468f.d87598","order":15,"width":7,"height":1,"name":"2 lap time","label":"<font size=15>Lap time","format":"<font size=15>{{msg.laptime}} ","layout":"row-spread","x":4320,"y":3880,"wires":[]},{"id":"c3a23a5.55ba5c8","type":"inject","z":"89f03bbf.93f678","name":"Køre over grøn","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"RGB\":[79.33334,104.8333,79.33334],\"speeder\":298,\"output\":0,\"mode\":\"GREEN\"}","payloadType":"str","x":1580,"y":3600,"wires":[["ea6b4009.a38db"]]},{"id":"ea6b4009.a38db","type":"json","z":"89f03bbf.93f678","name":"","property":"payload","action":"","pretty":false,"x":2090,"y":3760,"wires":[["21982ab.75b3bd6"]]},{"id":"b137a039.6586b","type":"ui_text","z":"89f03bbf.93f678","group":"ab49468f.d87598","order":4,"width":5,"height":1,"name":"2 Best lap","label":"<font size =6>Best lap","format":"<font size =6>{{msg.bestlap}} ","layout":"row-spread","x":4340,"y":3960,"wires":[]},{"id":"93505370.042b5","type":"ui_text","z":"89f03bbf.93f678","group":"ab49468f.d87598","order":10,"width":6,"height":1,"name":"2 Lap tilbage","label":"<font size = 6>{{msg.label}} ","format":"<font size = 6> : {{msg.lap}} ","layout":"row-center","x":4330,"y":3800,"wires":[]},{"id":"767aadcc.32c6d4","type":"ui_text","z":"89f03bbf.93f678","group":"ab49468f.d87598","order":12,"width":5,"height":1,"name":"2 antal boost","label":"<font size = 8>Antal boost","format":"<font size = 8>{{msg.payload}}","layout":"row-spread","x":1610,"y":3900,"wires":[]},{"id":"8de257ba.b2f218","type":"link in","z":"89f03bbf.93f678","name":"Json","links":["1fc4d242.d71f3e"],"x":1895,"y":3780,"wires":[["d699fb24.80e0f8","21982ab.75b3bd6"]]},{"id":"be29ca79.7fa5f8","type":"ui_text","z":"89f03bbf.93f678","group":"ab49468f.d87598","order":8,"width":4,"height":1,"name":"2 Pos","label":"<font size = 15>Pos:","format":"<font size = 15>{{msg.pos}}","layout":"row-spread","x":1450,"y":3900,"wires":[]},{"id":"fa9bae44.8bd8","type":"ui_text","z":"89f03bbf.93f678","group":"ab49468f.d87598","order":6,"width":6,"height":1,"name":"2 Driving mode","label":"<font size =10>Driving mode","format":"{{msg.payload}}","layout":"row-spread","x":1580,"y":3960,"wires":[]},{"id":"d699fb24.80e0f8","type":"debug","z":"89f03bbf.93f678","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":2050,"y":3680,"wires":[]},{"id":"85ae6343.0f4a8","type":"change","z":"89f03bbf.93f678","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1440,"y":3700,"wires":[["44565355.4ccf6c"]]},{"id":"36935384.ec98cc","type":"ui_text","z":"89f03bbf.93f678","g":"63145322.a601dc","group":"ab49468f.d87598","order":13,"width":1,"height":1,"name":"2 Yellow count","label":"","format":"<font size = 10>{{msg.payload}}","layout":"row-spread","x":1600,"y":4060,"wires":[]},{"id":"de2bc717.7baf28","type":"link in","z":"89f03bbf.93f678","g":"63145322.a601dc","name":"1 Yellow count","links":["1d7c2752.a57839"],"x":1435,"y":4060,"wires":[["36935384.ec98cc"]]},{"id":"425b5d56.851ff4","type":"ui_button","z":"89f03bbf.93f678","g":"63145322.a601dc","name":"2 driving Mode","group":"ab49468f.d87598","order":7,"width":1,"height":1,"passthru":false,"label":"","tooltip":"","color":"","bgcolor":"{{msg.background}}","icon":"","payload":"","payloadType":"str","topic":"","x":1600,"y":4100,"wires":[[]]},{"id":"5957758a.f5ec4c","type":"link in","z":"89f03bbf.93f678","g":"63145322.a601dc","name":"","links":["a1e4ac4d.fb143","2ed29fc2.8c723"],"x":1435,"y":4100,"wires":[["425b5d56.851ff4"]]},{"id":"e0c4caaf.745508","type":"ui_text","z":"89f03bbf.93f678","group":"da22b4b5.aa6978","order":5,"width":6,"height":1,"name":"Top days best lap","label":"<font size = 6>{{msg.label}} ","format":"<font size = 6> : {{msg.lap}} ","layout":"row-center","x":2710,"y":440,"wires":[]},{"id":"68d8a9b5.13e858","type":"ui_dropdown","z":"89f03bbf.93f678","name":"Game types","label":"","tooltip":"","place":"Heat","group":"d88ad459.6a8ad8","order":4,"width":3,"height":2,"passthru":true,"multiple":false,"options":[{"label":"Crazyheat","value":"crazycart","type":"str"},{"label":"Højre-venstre heat","value":"hv","type":"str"},{"label":"Prøve heat","value":"try","type":"str"},{"label":"Bane kørsel","value":"alm","type":"str"}],"payload":"","topic":"","x":2810,"y":180,"wires":[["ef84791f.6bb848"]]},{"id":"21982ab.75b3bd6","type":"switch","z":"89f03bbf.93f678","name":"Mode green","property":"payload.mode","propertyType":"msg","rules":[{"t":"eq","v":"GREEN","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":2310,"y":3740,"wires":[["320f769d.52ccfa","b752264a.1f0af8"]]},{"id":"320f769d.52ccfa","type":"switch","z":"89f03bbf.93f678","name":"Game=on","property":"game","propertyType":"flow","rules":[{"t":"eq","v":"on","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":2460,"y":3880,"wires":[["5c7456b4.e2f8d8","f4db07f.099d8f8"]]},{"id":"2e6a463d.cae9ca","type":"change","z":"89f03bbf.93f678","name":"Off","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"date"},{"t":"set","p":"game","pt":"flow","to":"off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":3330,"y":3860,"wires":[["2425bc49.7177f4","513d433.e8c17bc","b79cfd62.91751","7b507714.ea9aa8"]]},{"id":"513d433.e8c17bc","type":"dsm","z":"89f03bbf.93f678","name":"Lab time","sm_config":"{\n \"currentState\": \"stopped\",\n \"states\": {\n \"stopped\": {\n \"on\": \"started\"\n },\n \"started\": {\n \"inc\": \"counting\",\n \"off\": \"stopped\"\n },\n \"counting\": {\n \"inc\": \"counting\",\n \"off\": \"stopped\"\n }\n },\n \"data\": {\n \"prev_time\": null,\n \"time\": 0,\n \"seconds\": 0,\n \"interval\": 1,\n \"interval_output\": true,\n \"hms_format\": true\n },\n \"methods\": {\n \"init\": [\n \"sm.calc_time = function() {\",\n \" var now = Date.now();\",\n \" sm.data.time += now - sm.data.prev_time;\",\n \" sm.data.prev_time = now;\",\n \" sm.data.seconds = Math.round(sm.data.time / 1000);\",\n \"};\",\n \"sm.sec2hhmmss = function(sec) {\",\n \"var t = {};\",\n \"t.h = pad(Math.floor(sec / 3600));\",\n \"sec %= 3600;\",\n \"t.m = pad(Math.floor(sec / 60));\",\n \"t.s = pad(sec % 60);\",\n \"return t.h+':'+t.m+':'+t.s;\",\n \"};\"\n ],\n \"on\": [\n \"if (sm.currentState === 'started') {\",\n \" sm.data.prev_time = Date.now();\",\n \" resume('inc', msg);\",\n \"}\",\n \"output = false;\"\n ],\n \"inc\": [\n \"timeout.interval = setTimeout(function() {\",\n \" sm.calc_time();\",\n \" msg.data = sm.data;\",\n \" if (sm.data.interval_output) {\",\n \" msg.payload = sm.data.hms_format ? sm.sec2hhmmss(sm.data.seconds): sm.data.seconds;\",\n \" node.send(msg);\",\n \" }\",\n \" resume('inc', msg);\",\n \"}, sm.data.interval*1000);\",\n \"output = false;\"\n ],\n \"off\": [\n \"clearTimeout(timeout.interval);\",\n \"sm.calc_time();\",\n \"msg.payload = sm.data.hms_format ? sm.sec2hhmmss(sm.data.seconds): sm.data.seconds;\"\n ],\n \"reset\": [\n \"sm.data.time = 0;\",\n \"sm.data.seconds = 0;\"\n ],\n \"status\": {\n \"fill\": {\n \"get\": \"sm.currentState === 'counting' ? 'green' : 'grey';\"\n },\n \"shape\": \"dot\",\n \"text\": {\n \"get\": \"'time ' + (sm.data.hms_format ? sm.sec2hhmmss(sm.data.seconds): sm.data.seconds);\"\n }\n }\n }\n}\n","x":3710,"y":3800,"wires":[["229dcb73.9cb964"]]},{"id":"90de1177.be4f7","type":"calculator","z":"89f03bbf.93f678","name":"","inputMsgField":"payload","outputMsgField":"lap","operation":"sub","constant":"1","round":false,"decimals":0,"x":3380,"y":3900,"wires":[["9a88b32d.d1603","93505370.042b5"]]},{"id":"9ce35012.c0dbd","type":"change","z":"89f03bbf.93f678","name":"reset mm","rules":[{"t":"set","p":"payload","pt":"msg","to":"lap","tot":"flow"},{"t":"set","p":"label","pt":"msg","to":"Lap to go","tot":"str"},{"t":"set","p":"laptime","pt":"msg","to":"laptime","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":3180,"y":3900,"wires":[["90de1177.be4f7","95cfa280.d94d9"]]},{"id":"9a88b32d.d1603","type":"change","z":"89f03bbf.93f678","name":"","rules":[{"t":"set","p":"lap","pt":"flow","to":"lap","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":3550,"y":3900,"wires":[[]]},{"id":"5c7456b4.e2f8d8","type":"switch","z":"89f03bbf.93f678","name":"lap >1 ==1","property":"lap","propertyType":"flow","rules":[{"t":"gt","v":"1","vt":"num"},{"t":"eq","v":"1","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":2710,"y":3880,"wires":[["a03bb2cd.ee2cc"],["771bb317.31370c"]]},{"id":"a03bb2cd.ee2cc","type":"switch","z":"89f03bbf.93f678","name":"Game=on","property":"game","propertyType":"flow","rules":[{"t":"eq","v":"on","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":3000,"y":3900,"wires":[["9ce35012.c0dbd","fb66b636.5a5668"]]},{"id":"771bb317.31370c","type":"change","z":"89f03bbf.93f678","name":"Finishe","rules":[{"t":"set","p":"lap","pt":"msg","to":"FINISH","tot":"str"},{"t":"set","p":"label","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":3000,"y":3860,"wires":[["22f2b9da.90ff96","93505370.042b5"]]},{"id":"22f2b9da.90ff96","type":"change","z":"89f03bbf.93f678","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"date"}],"action":"","property":"","from":"","to":"","reg":false,"x":3160,"y":3860,"wires":[["2e6a463d.cae9ca"]]},{"id":"229dcb73.9cb964","type":"change","z":"89f03bbf.93f678","name":"Set laptime","rules":[{"t":"set","p":"laptime","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":3870,"y":3800,"wires":[[]]},{"id":"2425bc49.7177f4","type":"change","z":"89f03bbf.93f678","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"reset","tot":"str"},{"t":"set","p":"finishtime1","pt":"flow","to":"heattime","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":3520,"y":3860,"wires":[["513d433.e8c17bc","7b507714.ea9aa8"]]},{"id":"b79cfd62.91751","type":"delay","z":"89f03bbf.93f678","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":3700,"y":3860,"wires":[["eaf42b53.5d7ab8"]]},{"id":"b752264a.1f0af8","type":"switch","z":"89f03bbf.93f678","name":"hvis game off","property":"game","propertyType":"flow","rules":[{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":2510,"y":3740,"wires":[["3f92e07f.78e35"]]},{"id":"3f92e07f.78e35","type":"change","z":"89f03bbf.93f678","name":"Game On","rules":[{"t":"set","p":"game","pt":"flow","to":"on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":2680,"y":3740,"wires":[["7cc2dde8.87fc84"]]},{"id":"7cc2dde8.87fc84","type":"change","z":"89f03bbf.93f678","name":"Game On mm","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"date"},{"t":"set","p":"topic","pt":"msg","to":"on","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":2860,"y":3740,"wires":[["513d433.e8c17bc"]]},{"id":"eaf42b53.5d7ab8","type":"link out","z":"89f03bbf.93f678","name":"","links":["f8bf982b.437098"],"x":3795,"y":3860,"wires":[]},{"id":"f4db07f.099d8f8","type":"change","z":"89f03bbf.93f678","name":"reset lap time","rules":[{"t":"set","p":"topic","pt":"msg","to":"reset","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":2980,"y":3820,"wires":[["513d433.e8c17bc"]]},{"id":"95cfa280.d94d9","type":"moment","z":"89f03bbf.93f678","name":"Format time","topic":"","input":"laptime","inputType":"msg","inTz":"Africa/Abidjan","adjAmount":0,"adjType":"milliseconds","adjDir":"add","format":"mm:ss","locale":"en-US","output":"laptime","outputType":"msg","outTz":"Europe/Copenhagen","x":3470,"y":3700,"wires":[["a7bdf67a.d795c8"]]},{"id":"a7bdf67a.d795c8","type":"change","z":"89f03bbf.93f678","name":"lastlaptime","rules":[{"t":"set","p":"lastlaptime","pt":"flow","to":"laptime","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":3650,"y":3700,"wires":[["3a86d507.dce9da","3d0011ec.581e3e"]]},{"id":"47f1eeeb.bf541","type":"switch","z":"89f03bbf.93f678","name":"lap=set lap","property":"lap","propertyType":"flow","rules":[{"t":"eq","v":"setlap","vt":"flow"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":3170,"y":3960,"wires":[["426b87fe.b69718"],["b143ed93.abc23"]]},{"id":"fb66b636.5a5668","type":"moment","z":"89f03bbf.93f678","name":"Format time","topic":"","input":"laptime","inputType":"msg","inTz":"Africa/Abidjan","adjAmount":0,"adjType":"milliseconds","adjDir":"add","format":"mm:ss","locale":"en-US","output":"laptime","outputType":"msg","outTz":"Europe/Copenhagen","x":2990,"y":3960,"wires":[["47f1eeeb.bf541"]]},{"id":"426b87fe.b69718","type":"change","z":"89f03bbf.93f678","name":"","rules":[{"t":"set","p":"bestlap","pt":"msg","to":"lastlaptime","tot":"flow"},{"t":"set","p":"bestlap","pt":"flow","to":"lastlaptime","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":3360,"y":3940,"wires":[["b137a039.6586b"]]},{"id":"3a86d507.dce9da","type":"debug","z":"89f03bbf.93f678","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"laptime","targetType":"msg","statusVal":"","statusType":"auto","x":3890,"y":3660,"wires":[]},{"id":"b143ed93.abc23","type":"switch","z":"89f03bbf.93f678","name":"bestlap<lastlap","property":"bestlap","propertyType":"flow","rules":[{"t":"lt","v":"lastlaptime","vt":"flow"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":3360,"y":3980,"wires":[[],["ebfad0b.e6e0f3"]]},{"id":"ebfad0b.e6e0f3","type":"change","z":"89f03bbf.93f678","name":"","rules":[{"t":"set","p":"bestlap","pt":"msg","to":"lastlaptime","tot":"flow"},{"t":"set","p":"bestlap","pt":"flow","to":"lastlaptime","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":3540,"y":4000,"wires":[["b137a039.6586b"]]},{"id":"fcb2e086.a14ce","type":"link in","z":"89f03bbf.93f678","name":"on/stop/reset","links":[],"x":3495,"y":3760,"wires":[["513d433.e8c17bc","7b507714.ea9aa8"]]},{"id":"c23e6a60.a47f38","type":"link in","z":"89f03bbf.93f678","name":"set lap","links":[],"x":2885,"y":3700,"wires":[["93505370.042b5"]]},{"id":"7b507714.ea9aa8","type":"link out","z":"89f03bbf.93f678","name":"Heat time","links":[],"x":3635,"y":3760,"wires":[]},{"id":"8d92bee6.dd95c","type":"ui_text","z":"89f03bbf.93f678","group":"da22b4b5.aa6978","order":3,"width":5,"height":1,"name":"Lap in heat","label":"<font size = 6>Lap in heat :","format":"<font size = 6>{{msg.payload}}","layout":"row-center","x":2730,"y":380,"wires":[]},{"id":"33e0171f.043628","type":"ui_dropdown","z":"89f03bbf.93f678","name":"Antal hold","label":"","tooltip":"","place":"Antal hold","group":"d88ad459.6a8ad8","order":2,"width":3,"height":2,"passthru":true,"multiple":false,"options":[{"label":"1 hold","value":1,"type":"num"},{"label":"2 hold","value":2,"type":"num"},{"label":"3 hold","value":3,"type":"num"},{"label":"4 hold","value":4,"type":"num"},{"label":"5 hold","value":"5","type":"str"},{"label":"6 hold","value":"6","type":"str"},{"label":"7 hold","value":"7","type":"str"}],"payload":"","topic":"","x":2800,"y":220,"wires":[["fcd254d.7073da8"]]},{"id":"fcd254d.7073da8","type":"change","z":"89f03bbf.93f678","name":"teamnumber","rules":[{"t":"set","p":"teamnumber","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":3010,"y":220,"wires":[[]]},{"id":"ef84791f.6bb848","type":"ui_text","z":"89f03bbf.93f678","group":"da22b4b5.aa6978","order":1,"width":3,"height":1,"name":"Heat type","label":"<font size = 6>Heat:","format":"<font size = 6>{{msg.payload}}","layout":"row-center","x":3000,"y":180,"wires":[]},{"id":"c2e16ea4.0fe2","type":"ui_button","z":"89f03bbf.93f678","name":"","group":"d88ad459.6a8ad8","order":6,"width":2,"height":1,"passthru":false,"label":"Reset","tooltip":"","color":"","bgcolor":"","icon":"","payload":"00:00","payloadType":"str","topic":"","x":3290,"y":160,"wires":[["224e44d3.5d5c4c","6dbb897f.e7a728","d8096043.8544e","88648b0b.ffb208"]]},{"id":"9ad6790f.c94f98","type":"ui_button","z":"89f03bbf.93f678","name":"Startss","group":"d88ad459.6a8ad8","order":8,"width":2,"height":1,"passthru":false,"label":"{{msg.game.text}}","tooltip":"","color":"","bgcolor":"{{msg.background}}","icon":"","payload":"","payloadType":"date","topic":"","x":2920,"y":380,"wires":[["6324af44.4d246"]]},{"id":"fce9916e.c2b0f","type":"ui_button","z":"89f03bbf.93f678","name":"","group":"d88ad459.6a8ad8","order":9,"width":2,"height":1,"passthru":false,"label":"Disp","tooltip":"","color":"","bgcolor":"","icon":"Reset race","payload":"","payloadType":"str","topic":"","x":2510,"y":400,"wires":[[]]},{"id":"ea52f276.9e964","type":"switch","z":"89f03bbf.93f678","name":"timeron true/false","property":"timeron","propertyType":"flow","rules":[{"t":"true"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":3410,"y":380,"wires":[["ec6e768.6ca0a88"],["e9b6520.2e584b"]]},{"id":"224e44d3.5d5c4c","type":"change","z":"89f03bbf.93f678","name":"topic off","rules":[{"t":"set","p":"topic","pt":"msg","to":"reset","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"","tot":"date"}],"action":"","property":"","from":"","to":"","reg":false,"x":3620,"y":260,"wires":[["1937f1f5.a18f2e"]]},{"id":"1937f1f5.a18f2e","type":"delay","z":"89f03bbf.93f678","name":"","pauseType":"delay","timeout":"100","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":3790,"y":260,"wires":[["3075b1d5.efffae","6246a062.d3de6"]]},{"id":"6dbb897f.e7a728","type":"change","z":"89f03bbf.93f678","name":"","rules":[{"t":"set","p":"game.text","pt":"msg","to":"Start","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":3250,"y":260,"wires":[["9ad6790f.c94f98"]]},{"id":"f85bc0ef.a00f2","type":"mqtt out","z":"89f03bbf.93f678","g":"9dc32984.633198","name":"","topic":"Cart01/settings","qos":"","retain":"","broker":"dca8425b.8fb18","x":940,"y":1520,"wires":[]},{"id":"e3345ce6.1f766","type":"inject","z":"89f03bbf.93f678","g":"9dc32984.633198","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"percent\":50,\"kill\": 1}","payloadType":"json","x":570,"y":1640,"wires":[["f85bc0ef.a00f2"]]},{"id":"c05fe9f6.3413c8","type":"inject","z":"89f03bbf.93f678","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":" { \"colorspeed\" : {\"red\": 350, \"yellow\": 1024, \"blue\": 600, \"default\":350}, \"boosttime\" : 5000, \"minSpeed\": 350 }","payloadType":"json","x":1550,"y":1920,"wires":[["a8f1d556.8103a8"]]},{"id":"a8f1d556.8103a8","type":"mqtt out","z":"89f03bbf.93f678","name":"","topic":"carts/settings","qos":"","retain":"","broker":"dca8425b.8fb18","x":1750,"y":1920,"wires":[]},{"id":"94a0f96a.a9e118","type":"mqtt in","z":"89f03bbf.93f678","name":"","topic":"Cart3","qos":"2","datatype":"auto","broker":"dca8425b.8fb18","x":190,"y":1240,"wires":[["23f4e39a.39bbdc","ddcca0d8.4bc57"]]},{"id":"46f8d33e.b55dec","type":"ui_button","z":"89f03bbf.93f678","g":"32af35a7.880dea","name":"3 bat. time","group":"1a7f6b0.0560695","order":19,"width":2,"height":1,"passthru":false,"label":"{{msg.payload}} Min.","tooltip":"","color":"","bgcolor":"","icon":"","payload":"1","payloadType":"num","topic":"ONE","x":630,"y":2280,"wires":[["9a9e577.bc42ea8"]]},{"id":"572785f.d32527c","type":"ui_level","z":"89f03bbf.93f678","g":"32af35a7.880dea","group":"1a7f6b0.0560695","order":21,"width":2,"height":1,"name":"3 level","label":"","colorHi":"#e60000","colorWarn":"#ff9900","colorNormal":"#00b33c","colorOff":"#595959","min":0,"max":"360","segWarn":"","segHigh":"","unit":"","layout":"sh","channelA":"","channelB":"","decimals":0,"animations":"soft","shape":"1","colorschema":"fixed","textoptions":"custom","colorText":"#eeeeee","fontLabel":"","fontValue":"","fontSmall":"0.7","colorFromTheme":true,"textAnimations":true,"hideValue":true,"tickmode":"off","peakmode":false,"property":"payload","peaktime":3000,"x":330,"y":2340,"wires":[]},{"id":"9a9e577.bc42ea8","type":"switch","z":"89f03bbf.93f678","g":"32af35a7.880dea","name":"","property":"edit","propertyType":"flow","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":470,"y":2340,"wires":[["db95c5dd.2e4458"]]},{"id":"db95c5dd.2e4458","type":"change","z":"89f03bbf.93f678","g":"32af35a7.880dea","name":"Set counter to 0","rules":[{"t":"set","p":"payload","pt":"msg","to":"0","tot":"num"},{"t":"set","p":"reset","pt":"msg","to":"1","tot":"num"},{"t":"set","p":"edit","pt":"flow","to":"false","tot":"bool"},{"t":"set","p":"background.edit","pt":"msg","to":"RED","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":640,"y":2340,"wires":[["7b8962aa.2e404c","919d0a87.b0e8f8"]]},{"id":"7b8962aa.2e404c","type":"sum","z":"89f03bbf.93f678","g":"32af35a7.880dea","name":"","topic":"","x":330,"y":2280,"wires":[["572785f.d32527c","715aa0d7.3cdf8"]]},{"id":"3922140a.04355c","type":"change","z":"89f03bbf.93f678","g":"32af35a7.880dea","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"","tot":"date"},{"t":"set","p":"payload","pt":"msg","to":"payload.output","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":180,"y":2340,"wires":[["232fa4c3.e6b6cc"]]},{"id":"232fa4c3.e6b6cc","type":"calculator","z":"89f03bbf.93f678","g":"32af35a7.880dea","name":"","inputMsgField":"payload","outputMsgField":"payload","operation":"div","constant":"10000","round":true,"decimals":"2","x":170,"y":2280,"wires":[["7b8962aa.2e404c"]]},{"id":"715aa0d7.3cdf8","type":"calculator","z":"89f03bbf.93f678","g":"32af35a7.880dea","name":"","inputMsgField":"payload","outputMsgField":"payload","operation":"mult","constant":"1","round":true,"decimals":0,"x":480,"y":2280,"wires":[["46f8d33e.b55dec"]]},{"id":"ff436ef7.92958","type":"inject","z":"89f03bbf.93f678","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":90,"y":200,"wires":[[]]},{"id":"53a1d670.1b7398","type":"inject","z":"89f03bbf.93f678","name":"1024","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1024","payloadType":"num","x":610,"y":160,"wires":[["58015d25.7a3bc4"]]},{"id":"58015d25.7a3bc4","type":"change","z":"89f03bbf.93f678","name":"MaxYellow","rules":[{"t":"set","p":"maxyellow","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":820,"y":160,"wires":[[]]},{"id":"712828ea.f79d28","type":"link out","z":"89f03bbf.93f678","name":"","links":[],"x":245,"y":200,"wires":[]},{"id":"2dbfb418.4218cc","type":"mqtt in","z":"89f03bbf.93f678","name":"","topic":"Cart01","qos":"2","datatype":"auto","broker":"dca8425b.8fb18","x":230,"y":1060,"wires":[["23f4e39a.39bbdc","601531b0.57082","4267ab2d.d757e4"]]},{"id":"44657ab.566be84","type":"link out","z":"89f03bbf.93f678","g":"f4714e17.87b04","name":"Reset Battery","links":["f86916f8.854f98"],"x":795,"y":1920,"wires":[]},{"id":"462e0da9.cb6794","type":"switch","z":"89f03bbf.93f678","g":"f4714e17.87b04","name":"","property":"edit","propertyType":"flow","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":450,"y":1920,"wires":[["3e1030c4.6ffc8"]]},{"id":"3e1030c4.6ffc8","type":"change","z":"89f03bbf.93f678","g":"f4714e17.87b04","name":"Set counter to 0","rules":[{"t":"set","p":"payload","pt":"msg","to":"0","tot":"num"},{"t":"set","p":"reset","pt":"msg","to":"1","tot":"num"},{"t":"set","p":"edit","pt":"flow","to":"false","tot":"bool"},{"t":"set","p":"background.edit","pt":"msg","to":"RED","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":620,"y":1920,"wires":[["44657ab.566be84","bf295bda.f9c478"]]},{"id":"bf295bda.f9c478","type":"sum","z":"89f03bbf.93f678","g":"f4714e17.87b04","name":"","topic":"","x":250,"y":1860,"wires":[["9d2d7031.53e45","e5f2081.f51bff8"]]},{"id":"c1289a1e.f4e368","type":"change","z":"89f03bbf.93f678","g":"f4714e17.87b04","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"","tot":"date"},{"t":"set","p":"payload","pt":"msg","to":"payload.output","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":160,"y":1920,"wires":[["447d2075.b53fe"]]},{"id":"447d2075.b53fe","type":"calculator","z":"89f03bbf.93f678","g":"f4714e17.87b04","name":"","inputMsgField":"payload","outputMsgField":"payload","operation":"div","constant":"10000","round":true,"decimals":"2","x":130,"y":1860,"wires":[["bf295bda.f9c478"]]},{"id":"9d2d7031.53e45","type":"calculator","z":"89f03bbf.93f678","g":"f4714e17.87b04","name":"","inputMsgField":"payload","outputMsgField":"payload","operation":"mult","constant":"1","round":true,"decimals":0,"x":380,"y":1860,"wires":[["7f3c995d.03f798"]]},{"id":"35358abd.f347f6","type":"link in","z":"89f03bbf.93f678","g":"f4714e17.87b04","name":"Json","links":["b3df899c.837178"],"x":75,"y":2000,"wires":[["c1289a1e.f4e368"]]},{"id":"61a28892.aaf3e8","type":"inject","z":"89f03bbf.93f678","name":"Køre over grøn","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"topic\":\"Cart01\",\"payload\":\"{\\\"RGB\\\":[70.59917,51.63223,48.47107],\\\"speeder\\\":353,\\\"output\\\":0,\\\"color\\\":\\\"GREEN\\\",\\\"maxspeed\\\":{\\\"default\\\":358,\\\"red\\\":358,\\\"blue\\\":614,\\\"yellow\\\":1024,\\\"current\\\":614}}\",\"qos\":0,\"retain\":false,\"_msgid\":\"88f5fc0c.89dd2\"}","payloadType":"json","x":1820,"y":780,"wires":[["f92c9d22.57d2e"]]},{"id":"23f4e39a.39bbdc","type":"subflow:20c24d5b.0318e2","z":"89f03bbf.93f678","name":"","env":[],"x":570,"y":1300,"wires":[["b3df899c.837178"],["a4bc533a.0a6ba"],["e9c09d0b.d64f1"],["e61a3dc5.f53bd"],["6e03cac4.44d7e4"],["e34248d6.d4b538"],["ff58ed02.e9cad"]]},{"id":"7f3c995d.03f798","type":"ui_button","z":"89f03bbf.93f678","g":"f4714e17.87b04","name":"1 bat. time","group":"1a7f6b0.0560695","order":5,"width":2,"height":1,"passthru":false,"label":"{{msg.payload}} Min.","tooltip":"","color":"","bgcolor":"","icon":"","payload":"1","payloadType":"num","topic":"ONE","x":570,"y":1860,"wires":[["462e0da9.cb6794"]]},{"id":"e5f2081.f51bff8","type":"ui_level","z":"89f03bbf.93f678","g":"f4714e17.87b04","group":"1a7f6b0.0560695","order":7,"width":2,"height":1,"name":"1 level","label":"","colorHi":"#e60000","colorWarn":"#ff9900","colorNormal":"#00b33c","colorOff":"#595959","min":0,"max":"360","segWarn":"","segHigh":"","unit":"","layout":"sh","channelA":"","channelB":"","decimals":0,"animations":"soft","shape":"1","colorschema":"fixed","textoptions":"custom","colorText":"#eeeeee","fontLabel":"","fontValue":"","fontSmall":"0.7","colorFromTheme":true,"textAnimations":true,"hideValue":true,"tickmode":"off","peakmode":false,"property":"payload","peaktime":3000,"x":330,"y":1920,"wires":[]},{"id":"b6bc1f16.d79ce","type":"inject","z":"89f03bbf.93f678","name":"Reset","props":[{"p":"reset","v":"1","vt":"num"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"Cart01","x":490,"y":1120,"wires":[["23f4e39a.39bbdc"]]},{"id":"a2893389.2b21a","type":"countdown","z":"89f03bbf.93f678","g":"f1442665.6bcf78","name":"","topic":"","payloadTimerStart":"true","payloadTimerStartType":"bool","payloadTimerStop":"false","payloadTimerStopType":"bool","timer":"2","resetWhileRunning":true,"setTimeToNewWhileRunning":false,"startCountdownOnControlMessage":false,"x":170,"y":4040,"wires":[["1a8765ca.cc01aa"],[]]},{"id":"6a201a83.fcd5e4","type":"json","z":"89f03bbf.93f678","g":"f1442665.6bcf78","name":"","property":"payload","action":"","pretty":false,"x":150,"y":4100,"wires":[["b035c6ae.c8b7f8"]]},{"id":"1a8765ca.cc01aa","type":"subflow:ce13cfe8.f0cd5","z":"89f03bbf.93f678","g":"f1442665.6bcf78","name":"Sætter power state","env":[],"x":370,"y":4040,"wires":[["67e83af0.00af14"]]},{"id":"f5b13cf8.c638d","type":"countdown","z":"89f03bbf.93f678","g":"dc966bbf.a9fc78","name":"","topic":"","payloadTimerStart":"true","payloadTimerStartType":"bool","payloadTimerStop":"false","payloadTimerStopType":"bool","timer":"2","resetWhileRunning":true,"setTimeToNewWhileRunning":false,"startCountdownOnControlMessage":false,"x":170,"y":4180,"wires":[["fb2ffa2.2769408"],[]]},{"id":"136be275.85d74e","type":"change","z":"89f03bbf.93f678","g":"dc966bbf.a9fc78","name":"","rules":[{"t":"set","p":"speeder","pt":"msg","to":"payload.speeder","tot":"msg"},{"t":"delete","p":"payload","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":4220,"wires":[["fb2ffa2.2769408"]]},{"id":"cc42fc55.64606","type":"json","z":"89f03bbf.93f678","g":"dc966bbf.a9fc78","name":"","property":"payload","action":"","pretty":false,"x":170,"y":4220,"wires":[["136be275.85d74e"]]},{"id":"fb2ffa2.2769408","type":"subflow:ce13cfe8.f0cd5","z":"89f03bbf.93f678","g":"dc966bbf.a9fc78","name":"Sætter power state","env":[],"x":350,"y":4180,"wires":[["294945bf.afeb7a"]]},{"id":"b3df899c.837178","type":"link out","z":"89f03bbf.93f678","name":"link til Cart 1","links":["35358abd.f347f6","5fa9f7df.8e8878","cc382826.3be228","204fed31.a0b0b2"],"x":815,"y":1240,"wires":[]},{"id":"a4bc533a.0a6ba","type":"link out","z":"89f03bbf.93f678","name":"Link til cart 2 fra subflow","links":["b7fd6c7c.24cdf","210aa438.f1d8dc","6fe92f6d.5eb5","1bfc48c3.03d377","b30fca7e.9998d8"],"x":805,"y":1280,"wires":[]},{"id":"294945bf.afeb7a","type":"link out","z":"89f03bbf.93f678","g":"dc966bbf.a9fc78","name":"link til cart 2 power state","links":["b30fca7e.9998d8","dffe2262.f995d","c6d1fea2.a6ba3"],"x":515,"y":4200,"wires":[]},{"id":"67e83af0.00af14","type":"link out","z":"89f03bbf.93f678","g":"f1442665.6bcf78","name":"Power state cart 1","links":["cc382826.3be228"],"x":515,"y":4060,"wires":[]},{"id":"c6b218be.324f18","type":"link in","z":"89f03bbf.93f678","g":"dc966bbf.a9fc78","name":"Fra MQTT Cart 2","links":["65e53a61.664504"],"x":55,"y":4200,"wires":[["f5b13cf8.c638d","cc42fc55.64606"]]},{"id":"65e53a61.664504","type":"link out","z":"89f03bbf.93f678","name":"MQTT fra cart 2","links":["c6b218be.324f18"],"x":295,"y":1160,"wires":[]},{"id":"e9c09d0b.d64f1","type":"link out","z":"89f03bbf.93f678","name":"Link til cart 2 fra subflow","links":["7c538afd.56e0f4","2875740e.bbcdcc","59111a03.a6b184","56b482aa.1c869c"],"x":875,"y":1300,"wires":[]},{"id":"e61a3dc5.f53bd","type":"link out","z":"89f03bbf.93f678","name":"link til Cart 4","links":["fbd740db.b4d39","ca45cae8.5352a8","9835bca0.f55ab","9b497eaf.c2b0a"],"x":815,"y":1320,"wires":[]},{"id":"6e03cac4.44d7e4","type":"link out","z":"89f03bbf.93f678","name":"Link til cart 5 fra subflow","links":["a1c5378e.cf6738","2c51adc0.0a8c52","7d2a45fe.4ab66c","43151502.d8070c"],"x":865,"y":1340,"wires":[]},{"id":"e34248d6.d4b538","type":"link out","z":"89f03bbf.93f678","name":"Link til cart 6 fra subflow","links":["6a46717c.31593","d65e4866.ad2908","1213ba69.b63ac6"],"x":805,"y":1360,"wires":[]},{"id":"ff58ed02.e9cad","type":"link out","z":"89f03bbf.93f678","name":"Link til cart 7 fra subflow","links":["f5adf898.606a88","43fe27d1.d10158","d3c0d957.569c08"],"x":855,"y":1380,"wires":[]},{"id":"7f0428de.f41cd8","type":"link in","z":"89f03bbf.93f678","g":"f1442665.6bcf78","name":"Fra MQTT Cart 1","links":["601531b0.57082"],"x":55,"y":4060,"wires":[["a2893389.2b21a","6a201a83.fcd5e4"]]},{"id":"601531b0.57082","type":"link out","z":"89f03bbf.93f678","name":"MQTT fra cart 1","links":["7f0428de.f41cd8","c8a5b99c.752e58","7a06bf49.a5013"],"x":365,"y":1060,"wires":[]},{"id":"ddcca0d8.4bc57","type":"link out","z":"89f03bbf.93f678","name":"MQTT fra cart 3","links":["226b3fa.d40c1c"],"x":275,"y":1240,"wires":[]},{"id":"60d7288c.c73728","type":"link out","z":"89f03bbf.93f678","name":"MQTT fra cart 4","links":["acd81ac1.52daf8"],"x":275,"y":1320,"wires":[]},{"id":"7cb7cd83.db7eb4","type":"link out","z":"89f03bbf.93f678","name":"MQTT fra cart 5","links":["6b21f99f.0e1668"],"x":275,"y":1400,"wires":[]},{"id":"67ba86f8.4d2118","type":"link out","z":"89f03bbf.93f678","name":"MQTT fra cart 6","links":["d69ec18f.fb3ca"],"x":275,"y":1480,"wires":[]},{"id":"3f0c5a48.c32ce6","type":"link out","z":"89f03bbf.93f678","name":"MQTT fra cart 7","links":["3e145565.63a1ea"],"x":275,"y":1560,"wires":[]},{"id":"f2aba881.c80438","type":"countdown","z":"89f03bbf.93f678","g":"47db5ec4.24fca","name":"","topic":"","payloadTimerStart":"true","payloadTimerStartType":"bool","payloadTimerStop":"false","payloadTimerStopType":"bool","timer":"2","resetWhileRunning":true,"setTimeToNewWhileRunning":false,"startCountdownOnControlMessage":false,"x":170,"y":4320,"wires":[["760a0aac.192c94"],[]]},{"id":"60d453ab.e92a7c","type":"change","z":"89f03bbf.93f678","g":"47db5ec4.24fca","name":"","rules":[{"t":"set","p":"speeder","pt":"msg","to":"payload.speeder","tot":"msg"},{"t":"delete","p":"payload","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":4360,"wires":[["760a0aac.192c94"]]},{"id":"4319d3a3.89a97c","type":"json","z":"89f03bbf.93f678","g":"47db5ec4.24fca","name":"","property":"payload","action":"","pretty":false,"x":170,"y":4360,"wires":[["60d453ab.e92a7c"]]},{"id":"760a0aac.192c94","type":"subflow:ce13cfe8.f0cd5","z":"89f03bbf.93f678","g":"47db5ec4.24fca","name":"Sætter power state","env":[],"x":350,"y":4320,"wires":[["88c7df7c.1f71e"]]},{"id":"88c7df7c.1f71e","type":"link out","z":"89f03bbf.93f678","g":"47db5ec4.24fca","name":"link til cart 2 power state","links":["56b482aa.1c869c","9873ae9f.c661e"],"x":515,"y":4340,"wires":[]},{"id":"226b3fa.d40c1c","type":"link in","z":"89f03bbf.93f678","g":"47db5ec4.24fca","name":"Fra MQTT Cart 2","links":["ddcca0d8.4bc57"],"x":55,"y":4340,"wires":[["f2aba881.c80438","4319d3a3.89a97c"]]},{"id":"e73356cb.c8a118","type":"countdown","z":"89f03bbf.93f678","g":"4db5ede1.6c78c4","name":"","topic":"","payloadTimerStart":"true","payloadTimerStartType":"bool","payloadTimerStop":"false","payloadTimerStopType":"bool","timer":"2","resetWhileRunning":true,"setTimeToNewWhileRunning":false,"startCountdownOnControlMessage":false,"x":170,"y":4460,"wires":[["34bdad3d.87bd12"],[]]},{"id":"685a2d86.512d74","type":"change","z":"89f03bbf.93f678","g":"4db5ede1.6c78c4","name":"","rules":[{"t":"set","p":"speeder","pt":"msg","to":"payload.speeder","tot":"msg"},{"t":"delete","p":"payload","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":4500,"wires":[["34bdad3d.87bd12"]]},{"id":"c2b9e89b.deef08","type":"json","z":"89f03bbf.93f678","g":"4db5ede1.6c78c4","name":"","property":"payload","action":"","pretty":false,"x":170,"y":4500,"wires":[["685a2d86.512d74"]]},{"id":"34bdad3d.87bd12","type":"subflow:ce13cfe8.f0cd5","z":"89f03bbf.93f678","g":"4db5ede1.6c78c4","name":"Sætter power state","env":[],"x":350,"y":4460,"wires":[["f81a081c.445358"]]},{"id":"f81a081c.445358","type":"link out","z":"89f03bbf.93f678","g":"4db5ede1.6c78c4","name":"link til cart 2 power state","links":["9b497eaf.c2b0a","51bc9b9e.1f9244"],"x":515,"y":4480,"wires":[]},{"id":"acd81ac1.52daf8","type":"link in","z":"89f03bbf.93f678","g":"4db5ede1.6c78c4","name":"Fra MQTT Cart 2","links":["60d7288c.c73728"],"x":55,"y":4480,"wires":[["e73356cb.c8a118","c2b9e89b.deef08"]]},{"id":"c79103c4.be628","type":"countdown","z":"89f03bbf.93f678","g":"8723d5f1.8d1478","name":"","topic":"","payloadTimerStart":"true","payloadTimerStartType":"bool","payloadTimerStop":"false","payloadTimerStopType":"bool","timer":"2","resetWhileRunning":true,"setTimeToNewWhileRunning":false,"startCountdownOnControlMessage":false,"x":170,"y":4600,"wires":[["6a755f5a.f9a72"],[]]},{"id":"7b1648e.ff743b8","type":"change","z":"89f03bbf.93f678","g":"8723d5f1.8d1478","name":"","rules":[{"t":"set","p":"speeder","pt":"msg","to":"payload.speeder","tot":"msg"},{"t":"delete","p":"payload","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":4640,"wires":[["6a755f5a.f9a72"]]},{"id":"c0f65601.ebac58","type":"json","z":"89f03bbf.93f678","g":"8723d5f1.8d1478","name":"","property":"payload","action":"","pretty":false,"x":170,"y":4640,"wires":[["7b1648e.ff743b8"]]},{"id":"6a755f5a.f9a72","type":"subflow:ce13cfe8.f0cd5","z":"89f03bbf.93f678","g":"8723d5f1.8d1478","name":"Sætter power state","env":[],"x":350,"y":4600,"wires":[["ce6868ca.080128"]]},{"id":"ce6868ca.080128","type":"link out","z":"89f03bbf.93f678","g":"8723d5f1.8d1478","name":"link til cart 2 power state","links":["43151502.d8070c","6f540fcf.9eb76"],"x":515,"y":4620,"wires":[]},{"id":"6b21f99f.0e1668","type":"link in","z":"89f03bbf.93f678","g":"8723d5f1.8d1478","name":"Fra MQTT Cart 2","links":["7cb7cd83.db7eb4"],"x":55,"y":4620,"wires":[["c79103c4.be628","c0f65601.ebac58"]]},{"id":"444e015c.e9bc3","type":"ui_button","z":"89f03bbf.93f678","g":"21a286c6.80ff4a","name":"7","group":"1abc70f0.fd142f","order":1,"width":1,"height":2,"passthru":false,"label":"<font size = 20>7","tooltip":"","color":"","bgcolor":"dark grey","icon":"","payload":"","payloadType":"str","topic":"","x":730,"y":3880,"wires":[[]]},{"id":"bcc31ec5.c86b1","type":"ui_gauge","z":"89f03bbf.93f678","g":"21a286c6.80ff4a","name":"7 pedal","group":"1abc70f0.fd142f","order":2,"width":1,"height":2,"gtype":"gage","title":"<font size = 3>{{msg.state}}","label":"Pedal","format":"{{payload.speeder}}","min":"280","max":"1024","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":740,"y":3760,"wires":[]},{"id":"967aeb73.98c4e8","type":"ui_gauge","z":"89f03bbf.93f678","g":"21a286c6.80ff4a","name":"7 motor","group":"1abc70f0.fd142f","order":3,"width":1,"height":2,"gtype":"gage","title":"<font size = 3>Motor","label":"km","format":"{{payload.output}}","min":"0","max":"1025","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":600,"y":3840,"wires":[]},{"id":"202c9b23.630e54","type":"ui_text","z":"89f03bbf.93f678","g":"21a286c6.80ff4a","group":"1abc70f0.fd142f","order":6,"width":1,"height":1,"name":"7 yellow count","label":"","format":"{{msg.payload}}","layout":"row-spread","x":620,"y":3800,"wires":[]},{"id":"e734197d.e0a3b8","type":"ui_button","z":"89f03bbf.93f678","g":"21a286c6.80ff4a","name":"7 mode ","group":"1abc70f0.fd142f","order":4,"width":1,"height":1,"passthru":false,"label":"{{msg.background}}","tooltip":"","color":"","bgcolor":"{{msg.background}}","icon":"","payload":"","payloadType":"str","topic":"","x":600,"y":3880,"wires":[[]]},{"id":"d3c0d957.569c08","type":"link in","z":"89f03bbf.93f678","g":"21a286c6.80ff4a","name":"Link til power state cart 7","links":["b0144128.51ebf","ff58ed02.e9cad"],"x":475,"y":3780,"wires":[["6a4fa5a2.2dd59c"]]},{"id":"f5adf898.606a88","type":"link in","z":"89f03bbf.93f678","g":"21a286c6.80ff4a","name":"Link fra Subflow cart 7","links":["ff58ed02.e9cad"],"x":475,"y":3840,"wires":[["967aeb73.98c4e8","202c9b23.630e54","e734197d.e0a3b8"]]},{"id":"2dd276f5.a77fca","type":"ui_button","z":"89f03bbf.93f678","g":"49991c8e.69c7a4","name":"2","group":"1a7f6b0.0560695","order":8,"width":1,"height":2,"passthru":false,"label":"<font size = 20>2","tooltip":"","color":"","bgcolor":"dark grey","icon":"","payload":"","payloadType":"str","topic":"","x":310,"y":3440,"wires":[[]]},{"id":"73c48dc8.39d924","type":"ui_gauge","z":"89f03bbf.93f678","g":"49991c8e.69c7a4","name":"2 pedal","group":"1a7f6b0.0560695","order":9,"width":1,"height":2,"gtype":"gage","title":"<font size = 3>{{msg.speedState}}","label":"Pedal","format":"{{msg.speeder}}","min":"280","max":"1024","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":280,"y":3320,"wires":[]},{"id":"f0eb2b5e.0b13c8","type":"ui_gauge","z":"89f03bbf.93f678","g":"49991c8e.69c7a4","name":"2 motor","group":"1a7f6b0.0560695","order":10,"width":1,"height":2,"gtype":"gage","title":"<font size = 3>Motor","label":"km","format":"{{payload.output}}","min":"0","max":"1025","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":180,"y":3400,"wires":[]},{"id":"5bd8a1e5.5f92e","type":"ui_text","z":"89f03bbf.93f678","g":"49991c8e.69c7a4","group":"1a7f6b0.0560695","order":13,"width":1,"height":1,"name":"2 yellow count","label":"","format":"{{yellow.count}}","layout":"row-spread","x":200,"y":3360,"wires":[]},{"id":"1465e8c5.1c5187","type":"ui_button","z":"89f03bbf.93f678","g":"49991c8e.69c7a4","name":"2 mode","group":"1a7f6b0.0560695","order":11,"width":1,"height":1,"passthru":false,"label":"{{msg.background}}","tooltip":"","color":"","bgcolor":"{{msg.speed.background}}","icon":"","payload":"","payloadType":"str","topic":"","x":180,"y":3440,"wires":[[]]},{"id":"b7fd6c7c.24cdf","type":"link in","z":"89f03bbf.93f678","g":"49991c8e.69c7a4","name":"Link fra Subflow cart 2","links":["a4bc533a.0a6ba"],"x":55,"y":3380,"wires":[["f0eb2b5e.0b13c8","5bd8a1e5.5f92e","1465e8c5.1c5187"]]},{"id":"b30fca7e.9998d8","type":"link in","z":"89f03bbf.93f678","g":"49991c8e.69c7a4","name":"Link til power state cart 2","links":["294945bf.afeb7a","a4bc533a.0a6ba"],"x":55,"y":3320,"wires":[["26c3752c.4c568a"]]},{"id":"f483c2b6.670bb","type":"ui_gauge","z":"89f03bbf.93f678","g":"6bdc47e0.5cc168","name":"1 pedal speeder","group":"1a7f6b0.0560695","order":2,"width":1,"height":2,"gtype":"gage","title":"<font size = 3>{{msg.speedState}}","label":"Pedal","format":"{{msg.payload.speeder}}","min":"280","max":"1024","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":340,"y":3080,"wires":[]},{"id":"58b8d416.98889c","type":"ui_gauge","z":"89f03bbf.93f678","g":"6bdc47e0.5cc168","name":"1 motor","group":"1a7f6b0.0560695","order":3,"width":1,"height":2,"gtype":"gage","title":"<font size = 3>Motor","label":"km","format":"{{msg.output}}","min":"0","max":"1025","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":180,"y":3180,"wires":[]},{"id":"e592e4d5.43b458","type":"ui_text","z":"89f03bbf.93f678","g":"6bdc47e0.5cc168","group":"1a7f6b0.0560695","order":6,"width":1,"height":1,"name":"1 yellow count","label":"","format":"{{yellow.count}}","layout":"row-spread","x":200,"y":3140,"wires":[]},{"id":"2b03278f.4433c8","type":"ui_button","z":"89f03bbf.93f678","g":"6bdc47e0.5cc168","name":"1 mode","group":"1a7f6b0.0560695","order":4,"width":1,"height":1,"passthru":false,"label":"{{msg.background}}","tooltip":"","color":"","bgcolor":"{{msg.speedbackground}}","icon":"","payload":"","payloadType":"str","topic":"","x":180,"y":3220,"wires":[[]]},{"id":"a6c39f04.7d257","type":"ui_button","z":"89f03bbf.93f678","g":"6bdc47e0.5cc168","name":"1","group":"1a7f6b0.0560695","order":1,"width":1,"height":2,"passthru":false,"label":"<font size = 20>1","tooltip":"","color":"","bgcolor":"dark grey","icon":"","payload":"","payloadType":"str","topic":"","x":310,"y":3220,"wires":[[]]},{"id":"cc382826.3be228","type":"link in","z":"89f03bbf.93f678","g":"6bdc47e0.5cc168","name":"Power state cart 1","links":["67e83af0.00af14","b3df899c.837178"],"x":55,"y":3100,"wires":[["c731e1ed.bd9ae"]]},{"id":"aeba403a.00ca3","type":"ui_button","z":"89f03bbf.93f678","g":"7844810d.85b0a","name":"3","group":"1a7f6b0.0560695","order":15,"width":1,"height":2,"passthru":false,"label":"<font size = 20>3","tooltip":"","color":"","bgcolor":"dark grey","icon":"","payload":"","payloadType":"str","topic":"","x":730,"y":3440,"wires":[[]]},{"id":"8ddd940b.c78748","type":"ui_gauge","z":"89f03bbf.93f678","g":"7844810d.85b0a","name":"3 pedal","group":"1a7f6b0.0560695","order":16,"width":1,"height":2,"gtype":"gage","title":"<font size = 3>{{msg.state}}","label":"Pedal","format":"{{payload.speeder}}","min":"280","max":"1024","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":740,"y":3320,"wires":[]},{"id":"d81daff7.1cb6f","type":"ui_gauge","z":"89f03bbf.93f678","g":"7844810d.85b0a","name":"3 motor","group":"1a7f6b0.0560695","order":17,"width":1,"height":2,"gtype":"gage","title":"<font size = 3>Motor","label":"km","format":"{{payload.output}}","min":"0","max":"1025","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":560,"y":3400,"wires":[]},{"id":"20905a37.9f9d86","type":"ui_text","z":"89f03bbf.93f678","g":"7844810d.85b0a","group":"1a7f6b0.0560695","order":20,"width":1,"height":1,"name":"3 yellow count","label":"","format":"{{msg.payload}}","layout":"row-spread","x":580,"y":3360,"wires":[]},{"id":"94f3bcf9.111d8","type":"ui_button","z":"89f03bbf.93f678","g":"7844810d.85b0a","name":"3 mode","group":"1a7f6b0.0560695","order":18,"width":1,"height":1,"passthru":false,"label":"{{msg.background}}","tooltip":"","color":"","bgcolor":"{{msg.background}}","icon":"","payload":"","payloadType":"str","topic":"","x":560,"y":3440,"wires":[[]]},{"id":"7c538afd.56e0f4","type":"link in","z":"89f03bbf.93f678","g":"7844810d.85b0a","name":"Link fra Subflow cart 3","links":["e9c09d0b.d64f1"],"x":455,"y":3400,"wires":[["d81daff7.1cb6f","20905a37.9f9d86","94f3bcf9.111d8"]]},{"id":"56b482aa.1c869c","type":"link in","z":"89f03bbf.93f678","g":"7844810d.85b0a","name":"Link til power state cart 3","links":["88c7df7c.1f71e","e9c09d0b.d64f1"],"x":455,"y":3340,"wires":[["853664a8.f684f8"]]},{"id":"41059298.5c501c","type":"ui_button","z":"89f03bbf.93f678","g":"a59acdd1.f4832","name":"5","group":"1a7f6b0.0560695","order":29,"width":1,"height":2,"passthru":false,"label":"<font size = 20>5","tooltip":"","color":"","bgcolor":"dark grey","icon":"","payload":"","payloadType":"str","topic":"","x":730,"y":3660,"wires":[[]]},{"id":"1bfb8cd5.d430b3","type":"ui_gauge","z":"89f03bbf.93f678","g":"a59acdd1.f4832","name":"5 pedal","group":"1a7f6b0.0560695","order":30,"width":1,"height":2,"gtype":"gage","title":"<font size = 3>{{msg.state}}","label":"Pedal","format":"{{payload.speeder}}","min":"280","max":"1024","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":740,"y":3540,"wires":[]},{"id":"25e670ff.0aa11","type":"ui_gauge","z":"89f03bbf.93f678","g":"a59acdd1.f4832","name":"5 motor","group":"1a7f6b0.0560695","order":31,"width":1,"height":2,"gtype":"gage","title":"<font size = 3>Motor","label":"km","format":"{{payload.output}}","min":"0","max":"1025","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":600,"y":3620,"wires":[]},{"id":"2160960e.c0187a","type":"ui_text","z":"89f03bbf.93f678","g":"a59acdd1.f4832","group":"1a7f6b0.0560695","order":34,"width":1,"height":1,"name":"5 yellow count","label":"","format":"{{msg.payload}}","layout":"row-spread","x":620,"y":3580,"wires":[]},{"id":"2da49773.d62088","type":"ui_button","z":"89f03bbf.93f678","g":"a59acdd1.f4832","name":"5 mode","group":"1a7f6b0.0560695","order":32,"width":1,"height":1,"passthru":false,"label":"{{msg.background}}","tooltip":"","color":"","bgcolor":"{{msg.background}}","icon":"","payload":"","payloadType":"str","topic":"","x":600,"y":3660,"wires":[[]]},{"id":"43151502.d8070c","type":"link in","z":"89f03bbf.93f678","g":"a59acdd1.f4832","name":"Link til power state cart 5","links":["ce6868ca.080128","6e03cac4.44d7e4"],"x":475,"y":3540,"wires":[["bb447411.8f4a48"]]},{"id":"a1c5378e.cf6738","type":"link in","z":"89f03bbf.93f678","g":"a59acdd1.f4832","name":"","links":["6e03cac4.44d7e4"],"x":465,"y":3640,"wires":[["25e670ff.0aa11","2160960e.c0187a","2da49773.d62088"]]},{"id":"c1917a6b.286668","type":"ui_button","z":"89f03bbf.93f678","g":"abbedfd5.d0204","name":"4","group":"1a7f6b0.0560695","order":22,"width":1,"height":2,"passthru":false,"label":"<font size = 20>4","tooltip":"","color":"","bgcolor":"dark grey","icon":"","payload":"","payloadType":"str","topic":"","x":330,"y":3660,"wires":[[]]},{"id":"50912549.6157ac","type":"ui_gauge","z":"89f03bbf.93f678","g":"abbedfd5.d0204","name":"4 pedal","group":"1a7f6b0.0560695","order":23,"width":1,"height":2,"gtype":"gage","title":"<font size = 3>{{msg.state}}","label":"Pedal","format":"{{payload.speeder}}","min":"280","max":"1024","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":300,"y":3540,"wires":[]},{"id":"1c94911c.0c78bf","type":"ui_gauge","z":"89f03bbf.93f678","g":"abbedfd5.d0204","name":"4 motor","group":"1a7f6b0.0560695","order":24,"width":1,"height":2,"gtype":"gage","title":"<font size = 3>Motor","label":"km","format":"{{payload.output}}","min":"0","max":"1025","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":180,"y":3620,"wires":[]},{"id":"d3518d48.65ecf","type":"ui_text","z":"89f03bbf.93f678","g":"abbedfd5.d0204","group":"1a7f6b0.0560695","order":27,"width":1,"height":1,"name":"4 yellow count","label":"","format":"{{msg.payload}}","layout":"row-spread","x":200,"y":3580,"wires":[]},{"id":"746d65a7.833efc","type":"ui_button","z":"89f03bbf.93f678","g":"abbedfd5.d0204","name":"4 mode","group":"1a7f6b0.0560695","order":25,"width":1,"height":1,"passthru":false,"label":"{{msg.background}}","tooltip":"","color":"","bgcolor":"{{msg.background}}","icon":"","payload":"","payloadType":"str","topic":"","x":180,"y":3660,"wires":[[]]},{"id":"fbd740db.b4d39","type":"link in","z":"89f03bbf.93f678","g":"abbedfd5.d0204","name":"Link fra Subflow cart 2","links":["e61a3dc5.f53bd"],"x":55,"y":3600,"wires":[["1c94911c.0c78bf","d3518d48.65ecf","746d65a7.833efc"]]},{"id":"9b497eaf.c2b0a","type":"link in","z":"89f03bbf.93f678","g":"abbedfd5.d0204","name":"Link til power state cart 4","links":["f81a081c.445358","e61a3dc5.f53bd"],"x":55,"y":3540,"wires":[["632d254b.50c1fc"]]},{"id":"7ec06f5f.7acc3","type":"ui_button","z":"89f03bbf.93f678","g":"e6e93a6a.3f3188","name":"6","group":"1a7f6b0.0560695","order":36,"width":1,"height":2,"passthru":false,"label":"<font size = 20>6","tooltip":"","color":"","bgcolor":"dark grey","icon":"","payload":"","payloadType":"str","topic":"","x":310,"y":3880,"wires":[[]]},{"id":"74295c7c.b5ca04","type":"ui_gauge","z":"89f03bbf.93f678","g":"e6e93a6a.3f3188","name":"6 pedal","group":"1a7f6b0.0560695","order":37,"width":1,"height":2,"gtype":"gage","title":"<font size = 3>{{msg.state}}","label":"Pedal","format":"{{payload.speeder}}","min":"280","max":"1024","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":320,"y":3760,"wires":[]},{"id":"728030f1.5f8d4","type":"ui_gauge","z":"89f03bbf.93f678","g":"e6e93a6a.3f3188","name":"6 motor","group":"1a7f6b0.0560695","order":38,"width":1,"height":2,"gtype":"gage","title":"<font size = 3>Motor","label":"km","format":"{{payload.output}}","min":"0","max":"1025","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":180,"y":3840,"wires":[]},{"id":"8a396544.257e98","type":"ui_text","z":"89f03bbf.93f678","g":"e6e93a6a.3f3188","group":"1a7f6b0.0560695","order":41,"width":1,"height":1,"name":"6 yellow count","label":"","format":"{{msg.payload}}","layout":"row-spread","x":200,"y":3800,"wires":[]},{"id":"54057e83.51c6","type":"ui_button","z":"89f03bbf.93f678","g":"e6e93a6a.3f3188","name":"6 mode","group":"1a7f6b0.0560695","order":39,"width":1,"height":1,"passthru":false,"label":"{{msg.background}}","tooltip":"","color":"","bgcolor":"{{msg.background}}","icon":"","payload":"","payloadType":"str","topic":"","x":180,"y":3880,"wires":[[]]},{"id":"1213ba69.b63ac6","type":"link in","z":"89f03bbf.93f678","g":"e6e93a6a.3f3188","name":"Link til power state cart 6","links":["256cfeda.0ece22","e34248d6.d4b538"],"x":55,"y":3780,"wires":[["d9aecf38.a7cc9"]]},{"id":"6a46717c.31593","type":"link in","z":"89f03bbf.93f678","g":"e6e93a6a.3f3188","name":"Link fra Subflow cart 6","links":["e34248d6.d4b538"],"x":55,"y":3840,"wires":[["728030f1.5f8d4","8a396544.257e98","54057e83.51c6"]]},{"id":"4267ab2d.d757e4","type":"debug","z":"89f03bbf.93f678","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":810,"y":980,"wires":[]},{"id":"5fa9f7df.8e8878","type":"link in","z":"89f03bbf.93f678","g":"6bdc47e0.5cc168","name":"Link fra Subflow cart 2","links":["b3df899c.837178"],"x":55,"y":3160,"wires":[["58b8d416.98889c","e592e4d5.43b458","2b03278f.4433c8"]]},{"id":"b035c6ae.c8b7f8","type":"change","z":"89f03bbf.93f678","g":"f1442665.6bcf78","name":"","rules":[{"t":"set","p":"speeder","pt":"msg","to":"payload.speeder","tot":"msg"},{"t":"delete","p":"payload","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":4100,"wires":[["1a8765ca.cc01aa"]]},{"id":"c731e1ed.bd9ae","type":"switch","z":"89f03bbf.93f678","g":"6bdc47e0.5cc168","name":"","property":"payload","propertyType":"msg","rules":[{"t":"true"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":150,"y":3080,"wires":[[],["f483c2b6.670bb"]]},{"id":"e96205ee.01faa8","type":"countdown","z":"89f03bbf.93f678","g":"ceda4a5d.5bc4d8","name":"","topic":"","payloadTimerStart":"true","payloadTimerStartType":"bool","payloadTimerStop":"false","payloadTimerStopType":"bool","timer":"2","resetWhileRunning":true,"setTimeToNewWhileRunning":false,"startCountdownOnControlMessage":false,"x":170,"y":4740,"wires":[["341ada54.c428d6"],[]]},{"id":"600ae890.055ec8","type":"change","z":"89f03bbf.93f678","g":"ceda4a5d.5bc4d8","name":"","rules":[{"t":"set","p":"speeder","pt":"msg","to":"payload.speeder","tot":"msg"},{"t":"delete","p":"payload","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":4780,"wires":[["341ada54.c428d6"]]},{"id":"7dec1de9.8b7c24","type":"json","z":"89f03bbf.93f678","g":"ceda4a5d.5bc4d8","name":"","property":"payload","action":"","pretty":false,"x":170,"y":4780,"wires":[["600ae890.055ec8"]]},{"id":"341ada54.c428d6","type":"subflow:ce13cfe8.f0cd5","z":"89f03bbf.93f678","g":"ceda4a5d.5bc4d8","name":"Sætter power state","env":[],"x":350,"y":4740,"wires":[["256cfeda.0ece22"]]},{"id":"256cfeda.0ece22","type":"link out","z":"89f03bbf.93f678","g":"ceda4a5d.5bc4d8","name":"link til cart 2 power state","links":["6f540fcf.9eb76","1213ba69.b63ac6"],"x":515,"y":4760,"wires":[]},{"id":"d69ec18f.fb3ca","type":"link in","z":"89f03bbf.93f678","g":"ceda4a5d.5bc4d8","name":"Fra MQTT Cart 2","links":["67ba86f8.4d2118"],"x":55,"y":4760,"wires":[["e96205ee.01faa8","7dec1de9.8b7c24"]]},{"id":"a57f4b11.73a948","type":"countdown","z":"89f03bbf.93f678","g":"fb6d0811.433008","name":"","topic":"","payloadTimerStart":"true","payloadTimerStartType":"bool","payloadTimerStop":"false","payloadTimerStopType":"bool","timer":"2","resetWhileRunning":true,"setTimeToNewWhileRunning":false,"startCountdownOnControlMessage":false,"x":170,"y":4880,"wires":[["3c508967.26b596"],[]]},{"id":"97249792.d6d2c8","type":"change","z":"89f03bbf.93f678","g":"fb6d0811.433008","name":"","rules":[{"t":"set","p":"speeder","pt":"msg","to":"payload.speeder","tot":"msg"},{"t":"delete","p":"payload","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":4920,"wires":[["3c508967.26b596"]]},{"id":"1845da55.23f9d6","type":"json","z":"89f03bbf.93f678","g":"fb6d0811.433008","name":"","property":"payload","action":"","pretty":false,"x":170,"y":4920,"wires":[["97249792.d6d2c8"]]},{"id":"3c508967.26b596","type":"subflow:ce13cfe8.f0cd5","z":"89f03bbf.93f678","g":"fb6d0811.433008","name":"Sætter power state","env":[],"x":350,"y":4880,"wires":[["b0144128.51ebf"]]},{"id":"b0144128.51ebf","type":"link out","z":"89f03bbf.93f678","g":"fb6d0811.433008","name":"link til cart 2 power state","links":["6f540fcf.9eb76","d3c0d957.569c08"],"x":515,"y":4900,"wires":[]},{"id":"3e145565.63a1ea","type":"link in","z":"89f03bbf.93f678","g":"fb6d0811.433008","name":"Fra MQTT Cart 2","links":["3f0c5a48.c32ce6"],"x":55,"y":4900,"wires":[["a57f4b11.73a948","1845da55.23f9d6"]]},{"id":"612eef9e.c088a","type":"switch","z":"89f03bbf.93f678","g":"52d67eaf.37db","name":"if Kill","property":"kill","propertyType":"flow","rules":[{"t":"true"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":1190,"y":420,"wires":[["e93f328c.80963"],["9619463c.7ba4e8"]]},{"id":"e93f328c.80963","type":"change","z":"89f03bbf.93f678","g":"52d67eaf.37db","name":"","rules":[{"t":"set","p":"kill","pt":"flow","to":"false","tot":"bool"},{"t":"set","p":"kill.background","pt":"msg","to":"default","tot":"str"},{"t":"set","p":"kill.text","pt":"msg","to":"START","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"{\"percent\":50,\"kill\": 1}","tot":"json"},{"t":"set","p":"timeron","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":1340,"y":380,"wires":[["c94d0077.00782","7b407c4c.9cc064","c4eb9a96.5b6cd8"]]},{"id":"9619463c.7ba4e8","type":"change","z":"89f03bbf.93f678","g":"52d67eaf.37db","name":"","rules":[{"t":"set","p":"kill","pt":"flow","to":"true","tot":"bool"},{"t":"set","p":"kill.background","pt":"msg","to":"red","tot":"str"},{"t":"set","p":"kill.text","pt":"msg","to":"KILL","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"{\"percent\":50,\"kill\": 0}","tot":"str"},{"t":"set","p":"timeron","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":1320,"y":500,"wires":[["c94d0077.00782","7b407c4c.9cc064","201c8395.5ed10c"]]},{"id":"7b407c4c.9cc064","type":"link out","z":"89f03bbf.93f678","g":"52d67eaf.37db","name":"Kill out all","links":["9723a197.ebb69","cc91426d.12d25"],"x":1495,"y":420,"wires":[]},{"id":"4c2a7c71.ac87b4","type":"mqtt out","z":"89f03bbf.93f678","g":"9dc32984.633198","name":"","topic":"Cart2/settings","qos":"","retain":"","broker":"dca8425b.8fb18","x":940,"y":1560,"wires":[]},{"id":"2fdba0c9.d298b","type":"mqtt out","z":"89f03bbf.93f678","g":"9dc32984.633198","name":"","topic":"Cart3/settings","qos":"","retain":"","broker":"dca8425b.8fb18","x":940,"y":1600,"wires":[]},{"id":"cd7e8df.3f3337","type":"mqtt out","z":"89f03bbf.93f678","g":"9dc32984.633198","name":"","topic":"Cart4/settings","qos":"","retain":"","broker":"dca8425b.8fb18","x":940,"y":1640,"wires":[]},{"id":"f3c53fa1.9f072","type":"mqtt out","z":"89f03bbf.93f678","g":"9dc32984.633198","name":"","topic":"Cart5/settings","qos":"","retain":"","broker":"dca8425b.8fb18","x":940,"y":1680,"wires":[]},{"id":"fcf25e07.c4fb3","type":"mqtt out","z":"89f03bbf.93f678","g":"9dc32984.633198","name":"","topic":"Cart6/settings","qos":"","retain":"","broker":"dca8425b.8fb18","x":940,"y":1720,"wires":[]},{"id":"ca8c3d8b.ac2ad","type":"mqtt out","z":"89f03bbf.93f678","g":"9dc32984.633198","name":"","topic":"Cart7/settings","qos":"","retain":"","broker":"dca8425b.8fb18","x":940,"y":1760,"wires":[]},{"id":"9723a197.ebb69","type":"link in","z":"89f03bbf.93f678","g":"9dc32984.633198","name":"Link til alle biller /settings","links":["7b407c4c.9cc064"],"x":705,"y":1660,"wires":[["f85bc0ef.a00f2","4c2a7c71.ac87b4","2fdba0c9.d298b","cd7e8df.3f3337","f3c53fa1.9f072","fcf25e07.c4fb3","ca8c3d8b.ac2ad"]]},{"id":"7a50827d.ec8eec","type":"inject","z":"89f03bbf.93f678","g":"9dc32984.633198","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"percent\":50,\"kill\": 0}","payloadType":"json","x":550,"y":1700,"wires":[["f85bc0ef.a00f2"]]},{"id":"c4eb9a96.5b6cd8","type":"debug","z":"89f03bbf.93f678","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1590,"y":320,"wires":[]},{"id":"201c8395.5ed10c","type":"debug","z":"89f03bbf.93f678","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1560,"y":560,"wires":[]},{"id":"919d0a87.b0e8f8","type":"link out","z":"89f03bbf.93f678","g":"32af35a7.880dea","name":"Reset Battery","links":["f86916f8.854f98"],"x":755,"y":2340,"wires":[]},{"id":"8eafa321.cba1b","type":"link out","z":"89f03bbf.93f678","g":"11f75467.fe067c","name":"Reset Battery","links":["f86916f8.854f98","e6564522.9e6348"],"x":795,"y":2180,"wires":[]},{"id":"12a535a1.f1c06a","type":"link out","z":"89f03bbf.93f678","g":"8e2218a3.c3e1e8","name":"Reset Battery","links":["f86916f8.854f98"],"x":755,"y":2500,"wires":[]},{"id":"75b54f9a.62862","type":"link out","z":"89f03bbf.93f678","g":"80866fc6.c1d82","name":"Reset Battery","links":["f86916f8.854f98"],"x":755,"y":2660,"wires":[]},{"id":"4fda6452.44818c","type":"link out","z":"89f03bbf.93f678","g":"1afc5121.af897f","name":"Reset Battery","links":["f86916f8.854f98"],"x":795,"y":2980,"wires":[]},{"id":"59111a03.a6b184","type":"link in","z":"89f03bbf.93f678","g":"32af35a7.880dea","name":"","links":["e9c09d0b.d64f1"],"x":65,"y":2340,"wires":[["3922140a.04355c"]]},{"id":"1bfc48c3.03d377","type":"link in","z":"89f03bbf.93f678","g":"11f75467.fe067c","name":"","links":["a4bc533a.0a6ba"],"x":45,"y":2160,"wires":[["e69fac07.2b5b3"]]},{"id":"9835bca0.f55ab","type":"link in","z":"89f03bbf.93f678","g":"8e2218a3.c3e1e8","name":"","links":["e61a3dc5.f53bd"],"x":55,"y":2460,"wires":[["3700ce9e.8b6762"]]},{"id":"7d2a45fe.4ab66c","type":"link in","z":"89f03bbf.93f678","g":"80866fc6.c1d82","name":"","links":["6e03cac4.44d7e4"],"x":35,"y":2640,"wires":[["b434d6b9.f54c08"]]},{"id":"d65e4866.ad2908","type":"link in","z":"89f03bbf.93f678","g":"24e46ee5.50b382","name":"","links":["e34248d6.d4b538"],"x":35,"y":2780,"wires":[["7745e5dc.98fa2c"]]},{"id":"43fe27d1.d10158","type":"link in","z":"89f03bbf.93f678","g":"1afc5121.af897f","name":"","links":["ff58ed02.e9cad"],"x":25,"y":2940,"wires":[["a16db157.b3cb3"]]},{"id":"26c3752c.4c568a","type":"switch","z":"89f03bbf.93f678","g":"49991c8e.69c7a4","name":"","property":"payload","propertyType":"msg","rules":[{"t":"true"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":130,"y":3320,"wires":[[],["73c48dc8.39d924"]]},{"id":"632d254b.50c1fc","type":"switch","z":"89f03bbf.93f678","g":"abbedfd5.d0204","name":"","property":"payload","propertyType":"msg","rules":[{"t":"true"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":150,"y":3540,"wires":[[],["50912549.6157ac"]]},{"id":"d9aecf38.a7cc9","type":"switch","z":"89f03bbf.93f678","g":"e6e93a6a.3f3188","name":"","property":"payload","propertyType":"msg","rules":[{"t":"true"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":170,"y":3760,"wires":[[],["74295c7c.b5ca04"]]},{"id":"6a4fa5a2.2dd59c","type":"switch","z":"89f03bbf.93f678","g":"21a286c6.80ff4a","name":"","property":"payload","propertyType":"msg","rules":[{"t":"true"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":570,"y":3760,"wires":[[],["bcc31ec5.c86b1"]]},{"id":"bb447411.8f4a48","type":"switch","z":"89f03bbf.93f678","g":"a59acdd1.f4832","name":"","property":"payload","propertyType":"msg","rules":[{"t":"true"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":590,"y":3540,"wires":[[],["1bfb8cd5.d430b3"]]},{"id":"853664a8.f684f8","type":"switch","z":"89f03bbf.93f678","g":"7844810d.85b0a","name":"","property":"payload","propertyType":"msg","rules":[{"t":"true"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":550,"y":3320,"wires":[[],["8ddd940b.c78748"]]},{"id":"a0bd9de7.f63e3","type":"link out","z":"89f03bbf.93f678","name":"Set lap","links":["b514b60.77ce548","9796ecef.e5cdc","c8a5b99c.752e58"],"x":3095,"y":280,"wires":[]},{"id":"64e6ecec.89e174","type":"change","z":"89f03bbf.93f678","name":"Set lap","rules":[{"t":"set","p":"lap","pt":"flow","to":"payload","tot":"msg"},{"t":"set","p":"label","pt":"msg","to":"Lap to go","tot":"str"},{"t":"set","p":"lap","pt":"msg","to":"payload","tot":"msg"},{"t":"set","p":"setlap","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":3000,"y":280,"wires":[["a0bd9de7.f63e3"]]},{"id":"87ddefdf.0f923","type":"change","z":"89f03bbf.93f678","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":2600,"y":280,"wires":[["17d07eca.af0001"]]},{"id":"f8bf982b.437098","type":"link in","z":"89f03bbf.93f678","name":"Reset race","links":["4b26016a.99d0d","f1a407a8.7304d8","8f44c186.8b218","eaf42b53.5d7ab8"],"x":2455,"y":280,"wires":[["87ddefdf.0f923","33e0171f.043628","68d8a9b5.13e858"]]},{"id":"15cdbbf5.21c384","type":"link in","z":"89f03bbf.93f678","name":"","links":[],"x":1125,"y":1960,"wires":[[]]},{"id":"ec6e768.6ca0a88","type":"change","z":"89f03bbf.93f678","name":"","rules":[{"t":"set","p":"timeron","pt":"flow","to":"false","tot":"bool"},{"t":"set","p":"game.text","pt":"msg","to":"Start","tot":"str"},{"t":"set","p":"topic","pt":"msg","to":"off","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":3620,"y":340,"wires":[["9ad6790f.c94f98","3075b1d5.efffae","b6928b4b.f88f88"]]},{"id":"e9b6520.2e584b","type":"change","z":"89f03bbf.93f678","name":"","rules":[{"t":"set","p":"timeron","pt":"flow","to":"true","tot":"bool"},{"t":"set","p":"game.text","pt":"msg","to":"Stop","tot":"str"},{"t":"set","p":"topic","pt":"msg","to":"on","tot":"str"},{"t":"set","p":"gameon","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":3620,"y":420,"wires":[["9ad6790f.c94f98","3075b1d5.efffae","b6928b4b.f88f88"]]},{"id":"d8096043.8544e","type":"change","z":"89f03bbf.93f678","name":"topic off","rules":[{"t":"set","p":"topic","pt":"msg","to":"off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":4100,"y":360,"wires":[["3075b1d5.efffae"]]},{"id":"6246a062.d3de6","type":"change","z":"89f03bbf.93f678","name":"Reset timer til 00:00","rules":[{"t":"set","p":"payload","pt":"msg","to":"00:00","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":4340,"y":320,"wires":[["f116e216.61309"]]},{"id":"c9b1b86b.077f68","type":"ui_button","z":"89f03bbf.93f678","name":"1 Cust","group":"242d1b9c.039d64","order":1,"width":6,"height":1,"passthru":false,"label":"<font size = 20> 1: {{msg.payload}}","tooltip":"","color":"","bgcolor":"dark grey","icon":"","payload":"","payloadType":"str","topic":"","x":1830,"y":1000,"wires":[[]]},{"id":"4f190c9e.640184","type":"ui_text_input","z":"89f03bbf.93f678","name":"1 Cust name","label":"<font size = 20>","tooltip":"","group":"242d1b9c.039d64","order":2,"width":3,"height":1,"passthru":true,"mode":"text","delay":300,"topic":"","x":1670,"y":1000,"wires":[["c9b1b86b.077f68"]],"info":"<font size = 20>"},{"id":"812c8e25.0a498","type":"inject","z":"89f03bbf.93f678","name":"Køre over grøn","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"RGB\":[79.33334,104.8333,79.33334],\"speeder\":700,\"output\":560,\"mode\":\"red\"}","payloadType":"str","x":1940,"y":400,"wires":[[]]},{"id":"f25b4b9b.3d9fb8","type":"json","z":"89f03bbf.93f678","name":"","property":"payload","action":"","pretty":false,"x":2510,"y":840,"wires":[["a4402f3f.681db","1ed1b267.5ef75e"]]},{"id":"4e2bb78a.e7a408","type":"dsm","z":"89f03bbf.93f678","name":"Lab time","sm_config":"{\n \"currentState\": \"stopped\",\n \"states\": {\n \"stopped\": {\n \"on\": \"started\"\n },\n \"started\": {\n \"inc\": \"counting\",\n \"off\": \"stopped\"\n },\n \"counting\": {\n \"inc\": \"counting\",\n \"off\": \"stopped\"\n }\n },\n \"data\": {\n \"prev_time\": null,\n \"time\": 0,\n \"seconds\": 0,\n \"interval\": 1,\n \"interval_output\": true,\n \"hms_format\": true\n },\n \"methods\": {\n \"init\": [\n \"sm.calc_time = function() {\",\n \" var now = Date.now();\",\n \" sm.data.time += now - sm.data.prev_time;\",\n \" sm.data.prev_time = now;\",\n \" sm.data.seconds = Math.round(sm.data.time / 1000);\",\n \"};\",\n \"sm.sec2hhmmss = function(sec) {\",\n \"var t = {};\",\n \"t.h = pad(Math.floor(sec / 3600));\",\n \"sec %= 3600;\",\n \"t.m = pad(Math.floor(sec / 60));\",\n \"t.s = pad(sec % 60);\",\n \"return t.h+':'+t.m+':'+t.s;\",\n \"};\"\n ],\n \"on\": [\n \"if (sm.currentState === 'started') {\",\n \" sm.data.prev_time = Date.now();\",\n \" resume('inc', msg);\",\n \"}\",\n \"output = false;\"\n ],\n \"inc\": [\n \"timeout.interval = setTimeout(function() {\",\n \" sm.calc_time();\",\n \" msg.data = sm.data;\",\n \" if (sm.data.interval_output) {\",\n \" msg.payload = sm.data.hms_format ? sm.sec2hhmmss(sm.data.seconds): sm.data.seconds;\",\n \" node.send(msg);\",\n \" }\",\n \" resume('inc', msg);\",\n \"}, sm.data.interval*1000);\",\n \"output = false;\"\n ],\n \"off\": [\n \"clearTimeout(timeout.interval);\",\n \"sm.calc_time();\",\n \"msg.payload = sm.data.hms_format ? sm.sec2hhmmss(sm.data.seconds): sm.data.seconds;\"\n ],\n \"reset\": [\n \"sm.data.time = 0;\",\n \"sm.data.seconds = 0;\"\n ],\n \"status\": {\n \"fill\": {\n \"get\": \"sm.currentState === 'counting' ? 'green' : 'grey';\"\n },\n \"shape\": \"dot\",\n \"text\": {\n \"get\": \"'time ' + (sm.data.hms_format ? sm.sec2hhmmss(sm.data.seconds): sm.data.seconds);\"\n }\n }\n }\n}\n","x":3730,"y":820,"wires":[["fe1e2ca4.9cf67"]]},{"id":"42cf11e4.50a0f","type":"ui_text","z":"89f03bbf.93f678","group":"242d1b9c.039d64","order":10,"width":6,"height":1,"name":"1 Lap tilbage","label":"<font size = 6>{{msg.label}} ","format":"<font size = 6> {{msg.lap}} ","layout":"row-center","x":4770,"y":660,"wires":[]},{"id":"7a70c1b6.b92bb","type":"ui_text","z":"89f03bbf.93f678","group":"242d1b9c.039d64","order":12,"width":5,"height":1,"name":"1 antal boost","label":"<font size = 8>Antal boost","format":"<font size = 8>{{msg.payload}}","layout":"row-spread","x":1810,"y":1040,"wires":[]},{"id":"fe1e2ca4.9cf67","type":"change","z":"89f03bbf.93f678","name":"Set laptime","rules":[{"t":"set","p":"laptime","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":3890,"y":820,"wires":[[]]},{"id":"bc4ebee3.7f72","type":"ui_text","z":"89f03bbf.93f678","group":"242d1b9c.039d64","order":8,"width":4,"height":1,"name":"1 Pos","label":"<font size = 15>Pos:","format":"<font size = 15>{{msg.pos}}","layout":"row-spread","x":1650,"y":1040,"wires":[]},{"id":"6ac1333d.de42cc","type":"ui_text","z":"89f03bbf.93f678","g":"a362e881.c34398","group":"242d1b9c.039d64","order":6,"width":6,"height":1,"name":"1 Driving mode","label":"<font size =10>Driving mode","format":"","layout":"row-spread","x":1800,"y":1120,"wires":[]},{"id":"c871396d.4a9de8","type":"ui_text","z":"89f03bbf.93f678","g":"a362e881.c34398","group":"242d1b9c.039d64","order":13,"width":1,"height":1,"name":"1 Yellow count","label":"","format":"<font size = 10>{{yellow.count}}","layout":"row-spread","x":1800,"y":1160,"wires":[]},{"id":"204fed31.a0b0b2","type":"link in","z":"89f03bbf.93f678","g":"a362e881.c34398","name":"1 Yellow count","links":["1d7c2752.a57839","b3df899c.837178","4b26016a.99d0d"],"x":1635,"y":1160,"wires":[["6ac1333d.de42cc","c871396d.4a9de8","e09f48d0.0ddde8"]]},{"id":"e09f48d0.0ddde8","type":"ui_button","z":"89f03bbf.93f678","g":"a362e881.c34398","name":"1 driving Mode","group":"242d1b9c.039d64","order":7,"width":1,"height":1,"passthru":false,"label":"","tooltip":"","color":"","bgcolor":"{{msg.speedbackground}}","icon":"","payload":"","payloadType":"str","topic":"","x":1800,"y":1200,"wires":[[]]},{"id":"a4402f3f.681db","type":"switch","z":"89f03bbf.93f678","name":"Hvis color GREEN","property":"payload.color","propertyType":"msg","rules":[{"t":"eq","v":"GREEN","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":2710,"y":800,"wires":[["7c50b757.34a5f8","a02af1f4.83fba"]]},{"id":"a02af1f4.83fba","type":"change","z":"89f03bbf.93f678","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"on","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"","tot":"date"}],"action":"","property":"","from":"","to":"","reg":false,"x":3180,"y":880,"wires":[["4e2bb78a.e7a408"]]},{"id":"c46399ac.38afb8","type":"change","z":"89f03bbf.93f678","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":2690,"y":880,"wires":[["554bf1a4.54c68"]]},{"id":"a6576c1d.b4879","type":"switch","z":"89f03bbf.93f678","name":"Hvis reset","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"00:00","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":2460,"y":920,"wires":[["c46399ac.38afb8","c449fcd9.96683"]]},{"id":"7c50b757.34a5f8","type":"counter","z":"89f03bbf.93f678","inc":1,"name":"","x":2980,"y":780,"wires":[["26730b2f.297494","87a2.c0f2685e4","98affaa3.9023d8","80d37794.a58608"]]},{"id":"88648b0b.ffb208","type":"change","z":"89f03bbf.93f678","name":"msg.reset","rules":[{"t":"set","p":"reset","pt":"msg","to":"1","tot":"num"},{"t":"set","p":"gameon","pt":"msg","to":"false","tot":"bool"},{"t":"set","p":"yellow.count","pt":"msg","to":"0","tot":"num"},{"t":"set","p":"laptime","pt":"msg","to":"00:00","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":3460,"y":160,"wires":[["4b26016a.99d0d"]]},{"id":"26730b2f.297494","type":"switch","z":"89f03bbf.93f678","name":"GREEN count >1","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"gt","v":"2","vt":"num"}],"checkall":"true","repair":false,"outputs":3,"x":3190,"y":940,"wires":[["a7fa64fd.888e28"],["4073525.8fc2dac","a7fa64fd.888e28","5d646448.8b71ac"],["a7fa64fd.888e28","80d37794.a58608","4073525.8fc2dac","fb08ea92.63d058","59d60ac6.37c224"]]},{"id":"b6928b4b.f88f88","type":"link out","z":"89f03bbf.93f678","name":"","links":["c8a5b99c.752e58","7a06bf49.a5013"],"x":3815,"y":380,"wires":[]},{"id":"5b19c0e3.d604","type":"switch","z":"89f03bbf.93f678","name":"stop","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":2490,"y":980,"wires":[["49d991ed.5b74d"]]},{"id":"a7fa64fd.888e28","type":"change","z":"89f03bbf.93f678","name":"reset","rules":[{"t":"set","p":"topic","pt":"msg","to":"reset","tot":"str"},{"t":"set","p":"lastlap","pt":"flow","to":"laptime","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":3610,"y":940,"wires":[["4e2bb78a.e7a408"]]},{"id":"554bf1a4.54c68","type":"change","z":"89f03bbf.93f678","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"reset","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":2910,"y":1000,"wires":[["49d991ed.5b74d"]]},{"id":"26540916.c606e6","type":"switch","z":"89f03bbf.93f678","name":"start","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":2430,"y":1040,"wires":[["49d991ed.5b74d"]]},{"id":"cc91426d.12d25","type":"link in","z":"89f03bbf.93f678","name":"Kill","links":["7b407c4c.9cc064","bf1b6cb5.6520f"],"x":3185,"y":440,"wires":[["ea52f276.9e964","7a765c4e.f843e4"]]},{"id":"7a765c4e.f843e4","type":"switch","z":"89f03bbf.93f678","name":"kill text","property":"kill.text","propertyType":"msg","rules":[{"t":"eq","v":"START","vt":"str"},{"t":"eq","v":"KILL","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":3370,"y":440,"wires":[["ec6e768.6ca0a88"],["e9b6520.2e584b"]]},{"id":"815bfa31.b65e68","type":"change","z":"89f03bbf.93f678","name":"set gameon to false","rules":[{"t":"set","p":"gameon","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":3880,"y":80,"wires":[[]]},{"id":"5671b7a0.a9a128","type":"switch","z":"89f03bbf.93f678","name":"start","property":"gameon","propertyType":"msg","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":2270,"y":1000,"wires":[["26540916.c606e6"]]},{"id":"4bdfaff1.bcae2","type":"link in","z":"89f03bbf.93f678","name":"laptime","links":["49d991ed.5b74d"],"x":3595,"y":880,"wires":[["4e2bb78a.e7a408"]]},{"id":"49d991ed.5b74d","type":"link out","z":"89f03bbf.93f678","name":"to laptime","links":["4bdfaff1.bcae2"],"x":2955,"y":1060,"wires":[]},{"id":"6324af44.4d246","type":"switch","z":"89f03bbf.93f678","name":"","property":"setlap","propertyType":"flow","rules":[{"t":"gt","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":3050,"y":380,"wires":[["b994905d.7a613"]]},{"id":"30c9aa7.c19cf56","type":"calculator","z":"89f03bbf.93f678","name":"","inputMsgField":"payload","outputMsgField":"lap","operation":"sub","constant":"1","round":false,"decimals":0,"x":3660,"y":640,"wires":[["ef28cea9.529e7","ad591aae.e9bb88"]]},{"id":"4073525.8fc2dac","type":"change","z":"89f03bbf.93f678","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"lap","tot":"flow"},{"t":"set","p":"label","pt":"msg","to":"Lap to go","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":3440,"y":640,"wires":[["30c9aa7.c19cf56","18b660ea.8915cf"]]},{"id":"c8a5b99c.752e58","type":"link in","z":"89f03bbf.93f678","name":"","links":["4b26016a.99d0d","601531b0.57082","b6928b4b.f88f88","a0bd9de7.f63e3","f92c9d22.57d2e"],"x":2095,"y":880,"wires":[["5671b7a0.a9a128","5b19c0e3.d604","a6576c1d.b4879","6d8a9bce.c5c9e4"]]},{"id":"1cd461bc.4ca82e","type":"change","z":"89f03bbf.93f678","name":"","rules":[{"t":"set","p":"lap","pt":"flow","to":"lap","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":4030,"y":620,"wires":[[]]},{"id":"ef28cea9.529e7","type":"switch","z":"89f03bbf.93f678","name":">=0","property":"lap","propertyType":"msg","rules":[{"t":"gte","v":"1","vt":"num"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":3830,"y":640,"wires":[["1cd461bc.4ca82e","42cf11e4.50a0f"],["5fd0c19e.a7153"]]},{"id":"5fd0c19e.a7153","type":"change","z":"89f03bbf.93f678","name":"","rules":[{"t":"set","p":"label","pt":"msg","to":"Finish","tot":"str"},{"t":"set","p":"lap","pt":"msg","to":"","tot":"str"},{"t":"set","p":"teamnumber","pt":"msg","to":"teamnumber","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":4020,"y":740,"wires":[["42cf11e4.50a0f","53997ab0.5c2e74"]]},{"id":"53997ab0.5c2e74","type":"calculator","z":"89f03bbf.93f678","name":"","inputMsgField":"teamnumber","outputMsgField":"teamnumber","operation":"sub","constant":"1","round":false,"decimals":0,"x":4240,"y":740,"wires":[["3815230c.b9e87c"]]},{"id":"3815230c.b9e87c","type":"change","z":"89f03bbf.93f678","name":"set new teamnumber#","rules":[{"t":"set","p":"teamnumber","pt":"flow","to":"teamnumber","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":4120,"y":800,"wires":[["52397604.053dd8"]]},{"id":"52397604.053dd8","type":"switch","z":"89f03bbf.93f678","name":"","property":"teamnumber","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":4290,"y":800,"wires":[["9b99b7db.de6f88"]]},{"id":"bf1b6cb5.6520f","type":"link out","z":"89f03bbf.93f678","name":"Kill timer","links":["cc91426d.12d25"],"x":4555,"y":840,"wires":[]},{"id":"9b99b7db.de6f88","type":"change","z":"89f03bbf.93f678","name":"KILL","rules":[{"t":"set","p":"kill.text","pt":"msg","to":"START","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":4250,"y":860,"wires":[["bf1b6cb5.6520f"]]},{"id":"6d8a9bce.c5c9e4","type":"switch","z":"89f03bbf.93f678","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":2290,"y":840,"wires":[[],["f25b4b9b.3d9fb8"]]},{"id":"80d37794.a58608","type":"debug","z":"89f03bbf.93f678","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":3530,"y":760,"wires":[]},{"id":"18b660ea.8915cf","type":"debug","z":"89f03bbf.93f678","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":3670,"y":520,"wires":[]},{"id":"1ed1b267.5ef75e","type":"switch","z":"89f03bbf.93f678","name":"","property":"label","propertyType":"msg","rules":[{"t":"eq","v":"Lap to go","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":2350,"y":740,"wires":[["e0956cef.436fe","42cf11e4.50a0f","3745832a.877f5c"]]},{"id":"604147cb.73b8f8","type":"change","z":"89f03bbf.93f678","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"test_topic","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":2940,"y":680,"wires":[[]]},{"id":"fc074752.d15ea8","type":"change","z":"89f03bbf.93f678","name":"","rules":[{"t":"delete","p":"payload","pt":"msg"},{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":2740,"y":680,"wires":[["604147cb.73b8f8"]]},{"id":"e09c48e4.d44658","type":"ui_button","z":"89f03bbf.93f678","g":"fdf4aae6.8a16a8","name":"3 Cust","group":"5122d3b2.61539c","order":1,"width":6,"height":1,"passthru":false,"label":"<font size = 20> 3: {{msg.payload}}","tooltip":"","color":"","bgcolor":"{{background}}","icon":"","payload":"","payloadType":"str","topic":"","x":2030,"y":2040,"wires":[[]]},{"id":"a9103740.710868","type":"ui_text_input","z":"89f03bbf.93f678","g":"fdf4aae6.8a16a8","name":"3 Cust name","label":"<font size = 5> Hold navn","tooltip":"","group":"5122d3b2.61539c","order":2,"width":3,"height":1,"passthru":true,"mode":"text","delay":300,"topic":"","x":1670,"y":2120,"wires":[["e09c48e4.d44658"]],"info":"<font size = 20>"},{"id":"3c4f295.8d8ebd6","type":"ui_text","z":"89f03bbf.93f678","g":"fdf4aae6.8a16a8","group":"5122d3b2.61539c","order":12,"width":5,"height":1,"name":"3 antal boost","label":"<font size = 8>Antal boost","format":"<font size = 8>{{msg.payload}}","layout":"row-spread","x":1810,"y":2160,"wires":[]},{"id":"dd8244ee.d02658","type":"ui_text","z":"89f03bbf.93f678","g":"fdf4aae6.8a16a8","group":"5122d3b2.61539c","order":8,"width":4,"height":1,"name":"3 Pos","label":"<font size = 15>Pos:","format":"<font size = 15>{{msg.pos}}","layout":"row-spread","x":1650,"y":2160,"wires":[]},{"id":"27cb37f3.f411f8","type":"ui_text","z":"89f03bbf.93f678","g":"fdf4aae6.8a16a8","group":"5122d3b2.61539c","order":6,"width":6,"height":1,"name":"3 Driving mode","label":"<font size =10>Driving mode","format":"{{msg.payload}}","layout":"row-spread","x":1780,"y":2220,"wires":[]},{"id":"4ea52716.643478","type":"ui_text","z":"89f03bbf.93f678","g":"e3b71e34.1868e","group":"5122d3b2.61539c","order":13,"width":1,"height":1,"name":"3 Yellow count","label":"","format":"<font size = 10>{{msg.payload}}","layout":"row-spread","x":1800,"y":2320,"wires":[]},{"id":"f07dd8ba.eef028","type":"link in","z":"89f03bbf.93f678","g":"e3b71e34.1868e","name":"1 Yellow count","links":["1d7c2752.a57839"],"x":1635,"y":2320,"wires":[["4ea52716.643478"]]},{"id":"447afff6.00431","type":"ui_button","z":"89f03bbf.93f678","g":"e3b71e34.1868e","name":"3 driving Mode","group":"5122d3b2.61539c","order":7,"width":1,"height":1,"passthru":false,"label":"","tooltip":"","color":"","bgcolor":"{{msg.background}}","icon":"","payload":"","payloadType":"str","topic":"","x":1800,"y":2360,"wires":[[]]},{"id":"44825de1.c5bf14","type":"link in","z":"89f03bbf.93f678","g":"e3b71e34.1868e","name":"","links":["a1e4ac4d.fb143","2ed29fc2.8c723"],"x":1635,"y":2360,"wires":[["447afff6.00431"]]},{"id":"1eb6c83d.7e1db8","type":"ui_text","z":"89f03bbf.93f678","g":"fdf4aae6.8a16a8","group":"5122d3b2.61539c","order":15,"width":7,"height":1,"name":"3 lap time","label":"<font size=15>Lap time","format":"<font size=15>{{msg.laptime}} ","layout":"row-spread","x":2040,"y":2200,"wires":[]},{"id":"c9ef1b27.ed58a8","type":"ui_text","z":"89f03bbf.93f678","g":"fdf4aae6.8a16a8","group":"5122d3b2.61539c","order":4,"width":5,"height":1,"name":"3 Best lap","label":"<font size =6>Best lap","format":"<font size =6>{{msg.bestlap}} ","layout":"row-spread","x":2060,"y":2280,"wires":[]},{"id":"475ff320.c5374c","type":"ui_text","z":"89f03bbf.93f678","g":"fdf4aae6.8a16a8","group":"5122d3b2.61539c","order":10,"width":6,"height":1,"name":"3 Lap tilbage","label":"<font size = 6>{{msg.label}} ","format":"<font size = 6> : {{msg.lap}} ","layout":"row-center","x":2050,"y":2120,"wires":[]},{"id":"3afd9e18.eab912","type":"ui_button","z":"89f03bbf.93f678","g":"cb1bf4e3.96c498","name":"4 Cust","group":"7ad0ea.bbfe1f18","order":1,"width":6,"height":1,"passthru":false,"label":"<font size = 20> 4: {{msg.payload}}","tooltip":"","color":"","bgcolor":"dark grey","icon":"","payload":"","payloadType":"str","topic":"","x":2530,"y":2120,"wires":[[]]},{"id":"46820b6f.81b0c4","type":"ui_text_input","z":"89f03bbf.93f678","g":"cb1bf4e3.96c498","name":"4 Cust name","label":"<font size = 5> Hold navn","tooltip":"","group":"7ad0ea.bbfe1f18","order":2,"width":3,"height":1,"passthru":true,"mode":"text","delay":300,"topic":"","x":2390,"y":2120,"wires":[["3afd9e18.eab912"]],"info":"<font size = 20>"},{"id":"6d833e24.8ba7b","type":"ui_text","z":"89f03bbf.93f678","g":"cb1bf4e3.96c498","group":"7ad0ea.bbfe1f18","order":12,"width":5,"height":1,"name":"4 antal boost","label":"<font size = 8>Antal boost","format":"<font size = 8>{{msg.payload}}","layout":"row-spread","x":2530,"y":2160,"wires":[]},{"id":"73c43eb2.16788","type":"ui_text","z":"89f03bbf.93f678","g":"cb1bf4e3.96c498","group":"7ad0ea.bbfe1f18","order":8,"width":4,"height":1,"name":"4 Pos","label":"<font size = 15>Pos:","format":"<font size = 15>{{msg.pos}}","layout":"row-spread","x":2370,"y":2160,"wires":[]},{"id":"d71a827.5fdd68","type":"ui_text","z":"89f03bbf.93f678","g":"cb1bf4e3.96c498","group":"7ad0ea.bbfe1f18","order":6,"width":6,"height":1,"name":"4 Driving mode","label":"<font size =10>Driving mode","format":"{{msg.payload}}","layout":"row-spread","x":2500,"y":2220,"wires":[]},{"id":"9d8bc8d.efe5938","type":"ui_text","z":"89f03bbf.93f678","g":"cb1bf4e3.96c498","group":"7ad0ea.bbfe1f18","order":15,"width":7,"height":1,"name":"4 lap time","label":"<font size=15>Lap time","format":"<font size=15>{{msg.laptime}} ","layout":"row-spread","x":2760,"y":2200,"wires":[]},{"id":"e399ff84.583b7","type":"ui_text","z":"89f03bbf.93f678","g":"cb1bf4e3.96c498","group":"7ad0ea.bbfe1f18","order":4,"width":5,"height":1,"name":"4 Best lap","label":"<font size =6>Best lap","format":"<font size =6>{{msg.bestlap}} ","layout":"row-spread","x":2780,"y":2280,"wires":[]},{"id":"c403b85c.c118d8","type":"ui_text","z":"89f03bbf.93f678","g":"cb1bf4e3.96c498","group":"7ad0ea.bbfe1f18","order":10,"width":6,"height":1,"name":"4 Lap tilbage","label":"<font size = 6>{{msg.label}} ","format":"<font size = 6> : {{msg.lap}} ","layout":"row-center","x":2770,"y":2120,"wires":[]},{"id":"ae09a067.6fa68","type":"ui_text","z":"89f03bbf.93f678","g":"59848efc.e4312","group":"7ad0ea.bbfe1f18","order":13,"width":1,"height":1,"name":"4 Yellow count","label":"","format":"<font size = 10>{{msg.payload}}","layout":"row-spread","x":2520,"y":2320,"wires":[]},{"id":"ee8afe32.20cb8","type":"link in","z":"89f03bbf.93f678","g":"59848efc.e4312","name":"1 Yellow count","links":["1d7c2752.a57839"],"x":2355,"y":2320,"wires":[["ae09a067.6fa68"]]},{"id":"fef2197c.e3dc88","type":"ui_button","z":"89f03bbf.93f678","g":"59848efc.e4312","name":"4 driving Mode","group":"7ad0ea.bbfe1f18","order":7,"width":1,"height":1,"passthru":false,"label":"","tooltip":"","color":"","bgcolor":"{{msg.background}}","icon":"","payload":"","payloadType":"str","topic":"","x":2520,"y":2360,"wires":[[]]},{"id":"8e07b33d.70b13","type":"link in","z":"89f03bbf.93f678","g":"59848efc.e4312","name":"","links":["a1e4ac4d.fb143","2ed29fc2.8c723"],"x":2355,"y":2360,"wires":[["fef2197c.e3dc88"]]},{"id":"82c01ca0.9292f","type":"ui_button","z":"89f03bbf.93f678","g":"39602f4.3d137d","name":"5 Cust","group":"bf8cde26.f227","order":1,"width":6,"height":1,"passthru":false,"label":"<font size = 20> 5: {{msg.payload}}","tooltip":"","color":"","bgcolor":"dark grey","icon":"","payload":"","payloadType":"str","topic":"","x":1790,"y":2520,"wires":[[]]},{"id":"98989634.04f938","type":"ui_text_input","z":"89f03bbf.93f678","g":"39602f4.3d137d","name":"5 Cust name","label":"<font size = 5> Hold navn","tooltip":"","group":"bf8cde26.f227","order":2,"width":3,"height":1,"passthru":true,"mode":"text","delay":300,"topic":"","x":1650,"y":2520,"wires":[["82c01ca0.9292f"]],"info":"<font size = 20>"},{"id":"38939246.5d981e","type":"ui_text","z":"89f03bbf.93f678","g":"39602f4.3d137d","group":"bf8cde26.f227","order":12,"width":5,"height":1,"name":"5 antal boost","label":"<font size = 8>Antal boost","format":"<font size = 8>{{msg.payload}}","layout":"row-spread","x":1790,"y":2560,"wires":[]},{"id":"91aaa463.b23588","type":"ui_text","z":"89f03bbf.93f678","g":"39602f4.3d137d","group":"bf8cde26.f227","order":8,"width":4,"height":1,"name":"5 Pos","label":"<font size = 15>Pos:","format":"<font size = 15>{{msg.pos}}","layout":"row-spread","x":1630,"y":2560,"wires":[]},{"id":"80913453.d01c58","type":"ui_text","z":"89f03bbf.93f678","g":"39602f4.3d137d","group":"bf8cde26.f227","order":6,"width":6,"height":1,"name":"5 Driving mode","label":"<font size =10>Driving mode","format":"{{msg.payload}}","layout":"row-spread","x":1760,"y":2620,"wires":[]},{"id":"c457fbab.146e48","type":"ui_text","z":"89f03bbf.93f678","g":"39602f4.3d137d","group":"bf8cde26.f227","order":15,"width":7,"height":1,"name":"5 lap time","label":"<font size=15>Lap time","format":"<font size=15>{{msg.laptime}} ","layout":"row-spread","x":2020,"y":2600,"wires":[]},{"id":"a3c84dce.79787","type":"ui_text","z":"89f03bbf.93f678","g":"39602f4.3d137d","group":"bf8cde26.f227","order":4,"width":5,"height":1,"name":"5 Best lap","label":"<font size =6>Best lap","format":"<font size =6>{{msg.bestlap}} ","layout":"row-spread","x":2040,"y":2680,"wires":[]},{"id":"a544af86.110f5","type":"ui_text","z":"89f03bbf.93f678","g":"39602f4.3d137d","group":"bf8cde26.f227","order":10,"width":6,"height":1,"name":"5 Lap tilbage","label":"<font size = 6>{{msg.label}} ","format":"<font size = 6> : {{msg.lap}} ","layout":"row-center","x":2030,"y":2520,"wires":[]},{"id":"e8c44d03.517ec","type":"ui_text","z":"89f03bbf.93f678","g":"cc1df795.560f68","group":"bf8cde26.f227","order":13,"width":1,"height":1,"name":"5 Yellow count","label":"","format":"<font size = 10>{{msg.payload}}","layout":"row-spread","x":1780,"y":2720,"wires":[]},{"id":"15ece663.54b05a","type":"link in","z":"89f03bbf.93f678","g":"cc1df795.560f68","name":"1 Yellow count","links":["1d7c2752.a57839"],"x":1615,"y":2720,"wires":[["e8c44d03.517ec"]]},{"id":"fc495a02.c6d688","type":"ui_button","z":"89f03bbf.93f678","g":"cc1df795.560f68","name":"5 driving Mode","group":"bf8cde26.f227","order":7,"width":1,"height":1,"passthru":false,"label":"","tooltip":"","color":"","bgcolor":"{{msg.background}}","icon":"","payload":"","payloadType":"str","topic":"","x":1780,"y":2760,"wires":[[]]},{"id":"cde81cb.e9b3fe","type":"link in","z":"89f03bbf.93f678","g":"cc1df795.560f68","name":"","links":["a1e4ac4d.fb143","2ed29fc2.8c723"],"x":1615,"y":2760,"wires":[["fc495a02.c6d688"]]},{"id":"5622c750.2ec6e8","type":"ui_button","z":"89f03bbf.93f678","g":"55610e79.eed96","name":"6 Cust","group":"95436cf9.41356","order":1,"width":6,"height":1,"passthru":false,"label":"<font size = 20> 6: {{msg.payload}}","tooltip":"","color":"","bgcolor":"dark grey","icon":"","payload":"","payloadType":"str","topic":"","x":2510,"y":2500,"wires":[[]]},{"id":"92065922.f91ce8","type":"ui_text_input","z":"89f03bbf.93f678","g":"55610e79.eed96","name":"6 Cust name","label":"<font size = 5> Hold navn","tooltip":"","group":"95436cf9.41356","order":2,"width":3,"height":1,"passthru":true,"mode":"text","delay":300,"topic":"","x":2370,"y":2500,"wires":[["5622c750.2ec6e8"]],"info":"<font size = 20>"},{"id":"b9e4c4fb.c68c78","type":"ui_text","z":"89f03bbf.93f678","g":"55610e79.eed96","group":"95436cf9.41356","order":12,"width":5,"height":1,"name":"6 antal boost","label":"<font size = 8>Antal boost","format":"<font size = 8>{{msg.payload}}","layout":"row-spread","x":2510,"y":2540,"wires":[]},{"id":"21a63815.67b9e8","type":"ui_text","z":"89f03bbf.93f678","g":"55610e79.eed96","group":"95436cf9.41356","order":8,"width":4,"height":1,"name":"6 Pos","label":"<font size = 15>Pos:","format":"<font size = 15>{{msg.pos}}","layout":"row-spread","x":2350,"y":2540,"wires":[]},{"id":"e46e4ef8.758e2","type":"ui_text","z":"89f03bbf.93f678","g":"55610e79.eed96","group":"95436cf9.41356","order":6,"width":6,"height":1,"name":" 6 Driving mode","label":"<font size =10>Driving mode","format":"{{msg.payload}}","layout":"row-spread","x":2480,"y":2600,"wires":[]},{"id":"1ce0dfb3.34b62","type":"ui_text","z":"89f03bbf.93f678","g":"55610e79.eed96","group":"95436cf9.41356","order":15,"width":7,"height":1,"name":"6 lap time","label":"<font size=15>Lap time","format":"<font size=15>{{msg.laptime}} ","layout":"row-spread","x":2740,"y":2580,"wires":[]},{"id":"10ab41d1.3aae6e","type":"ui_text","z":"89f03bbf.93f678","g":"55610e79.eed96","group":"95436cf9.41356","order":4,"width":5,"height":1,"name":"6 Best lap","label":"<font size =6>Best lap","format":"<font size =6>{{msg.bestlap}} ","layout":"row-spread","x":2760,"y":2660,"wires":[]},{"id":"e3f847df.83c6e8","type":"ui_text","z":"89f03bbf.93f678","g":"55610e79.eed96","group":"95436cf9.41356","order":10,"width":6,"height":1,"name":"6 Lap tilbage","label":"<font size = 6>{{msg.label}} ","format":"<font size = 6> : {{msg.lap}} ","layout":"row-center","x":2750,"y":2500,"wires":[]},{"id":"d9dafe2a.e11d","type":"ui_text","z":"89f03bbf.93f678","g":"2f7fa3b9.2a389c","group":"95436cf9.41356","order":13,"width":1,"height":1,"name":"6 Yellow count","label":"","format":"<font size = 10>{{msg.payload}}","layout":"row-spread","x":2500,"y":2700,"wires":[]},{"id":"be0a2491.9ffa98","type":"link in","z":"89f03bbf.93f678","g":"2f7fa3b9.2a389c","name":"1 Yellow count","links":["1d7c2752.a57839"],"x":2335,"y":2700,"wires":[["d9dafe2a.e11d"]]},{"id":"23f44c89.255794","type":"ui_button","z":"89f03bbf.93f678","g":"2f7fa3b9.2a389c","name":"6 driving Mode","group":"95436cf9.41356","order":7,"width":1,"height":1,"passthru":false,"label":"","tooltip":"","color":"","bgcolor":"{{msg.background}}","icon":"","payload":"","payloadType":"str","topic":"","x":2500,"y":2740,"wires":[[]]},{"id":"34a2f353.85087c","type":"link in","z":"89f03bbf.93f678","g":"2f7fa3b9.2a389c","name":"","links":["a1e4ac4d.fb143","2ed29fc2.8c723"],"x":2335,"y":2740,"wires":[["23f44c89.255794"]]},{"id":"795901fd.d2326","type":"ui_button","z":"89f03bbf.93f678","g":"e186b716.baab48","name":"7 Cust","group":"a56abf94.386da","order":1,"width":6,"height":1,"passthru":false,"label":"<font size = 20> 7: {{msg.payload}}","tooltip":"","color":"","bgcolor":"dark grey","icon":"","payload":"","payloadType":"str","topic":"","x":1810,"y":2900,"wires":[[]]},{"id":"ddda208a.2dda","type":"ui_text_input","z":"89f03bbf.93f678","g":"e186b716.baab48","name":"7 Cust name","label":"<font size = 5> Hold navn","tooltip":"","group":"a56abf94.386da","order":2,"width":3,"height":1,"passthru":true,"mode":"text","delay":300,"topic":"","x":1670,"y":2900,"wires":[["795901fd.d2326"]],"info":"<font size = 20>"},{"id":"cd4de8d3.cfe9b8","type":"ui_text","z":"89f03bbf.93f678","g":"e186b716.baab48","group":"a56abf94.386da","order":12,"width":5,"height":1,"name":"7 antal boost","label":"<font size = 8>Antal boost","format":"<font size = 8>{{msg.payload}}","layout":"row-spread","x":1810,"y":2940,"wires":[]},{"id":"48b374b1.00b5ac","type":"ui_text","z":"89f03bbf.93f678","g":"e186b716.baab48","group":"a56abf94.386da","order":8,"width":4,"height":1,"name":"7 Pos","label":"<font size = 15>Pos:","format":"<font size = 15>{{msg.pos}}","layout":"row-spread","x":1650,"y":2940,"wires":[]},{"id":"faf67cfe.164e6","type":"ui_text","z":"89f03bbf.93f678","g":"e186b716.baab48","group":"a56abf94.386da","order":6,"width":6,"height":1,"name":"7 Driving mode","label":"<font size =10>Driving mode","format":"{{msg.payload}}","layout":"row-spread","x":1780,"y":3000,"wires":[]},{"id":"edd49cbf.35c73","type":"ui_text","z":"89f03bbf.93f678","g":"e186b716.baab48","group":"a56abf94.386da","order":15,"width":7,"height":1,"name":"7 lap time","label":"<font size=15>Lap time","format":"<font size=15>{{msg.laptime}} ","layout":"row-spread","x":2040,"y":2980,"wires":[]},{"id":"81fc6d2e.3b111","type":"ui_text","z":"89f03bbf.93f678","g":"e186b716.baab48","group":"a56abf94.386da","order":4,"width":5,"height":1,"name":"7 Best lap","label":"<font size =6>Best lap","format":"<font size =6>{{msg.bestlap}} ","layout":"row-spread","x":2060,"y":3060,"wires":[]},{"id":"28092889.1bd528","type":"ui_text","z":"89f03bbf.93f678","g":"e186b716.baab48","group":"a56abf94.386da","order":10,"width":6,"height":1,"name":"7 Lap tilbage","label":"<font size = 6>{{msg.label}} ","format":"<font size = 6> : {{msg.lap}} ","layout":"row-center","x":2050,"y":2900,"wires":[]},{"id":"dc53d44a.84bd88","type":"ui_text","z":"89f03bbf.93f678","g":"d16a08f1.6cc938","group":"a56abf94.386da","order":13,"width":1,"height":1,"name":"7 Yellow count","label":"","format":"<font size = 10>{{msg.payload}}","layout":"row-spread","x":1800,"y":3100,"wires":[]},{"id":"dc4675a3.2318e8","type":"link in","z":"89f03bbf.93f678","g":"d16a08f1.6cc938","name":"1 Yellow count","links":["1d7c2752.a57839"],"x":1635,"y":3100,"wires":[["dc53d44a.84bd88"]]},{"id":"992a3d32.e60f8","type":"ui_button","z":"89f03bbf.93f678","g":"d16a08f1.6cc938","name":"7 driving Mode","group":"a56abf94.386da","order":7,"width":1,"height":1,"passthru":false,"label":"","tooltip":"","color":"","bgcolor":"{{msg.background}}","icon":"","payload":"","payloadType":"str","topic":"","x":1800,"y":3140,"wires":[[]]},{"id":"23759ecd.1073f2","type":"link in","z":"89f03bbf.93f678","g":"d16a08f1.6cc938","name":"","links":["a1e4ac4d.fb143","2ed29fc2.8c723"],"x":1635,"y":3140,"wires":[["992a3d32.e60f8"]]},{"id":"228d0d55.91eac2","type":"inject","z":"89f03bbf.93f678","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":2490,"y":3160,"wires":[[]]},{"id":"ade796e5.cf8298","type":"inject","z":"89f03bbf.93f678","g":"fdf4aae6.8a16a8","name":"","props":[{"p":"enabled","v":"false","vt":"bool"},{"p":"background","v":"","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":1680,"y":2040,"wires":[["e09c48e4.d44658"]]},{"id":"87a2.c0f2685e4","type":"function","z":"89f03bbf.93f678","name":"Var greencount+Topic","func":"flow.set( \"greencount\"+msg.topic,msg.payload)","outputs":1,"noerr":0,"initialize":"","finalize":"","x":3200,"y":740,"wires":[[]]},{"id":"98affaa3.9023d8","type":"change","z":"89f03bbf.93f678","name":"","rules":[{"t":"set","p":"greencount","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":3150,"y":680,"wires":[[]]},{"id":"e0956cef.436fe","type":"function","z":"89f03bbf.93f678","name":"Lap to go+Cart#","func":"flow.set( \"Lap\"+msg.topic,msg.payload)","outputs":1,"noerr":0,"initialize":"","finalize":"","x":2540,"y":680,"wires":[["fc074752.d15ea8"]]},{"id":"73bb4553.eda6fc","type":"function","z":"89f03bbf.93f678","name":"Lap to go+Cart#","func":"flow.set( \"Lap\"+msg.topic,msg.lap)","outputs":1,"noerr":0,"initialize":"","finalize":"","x":4040,"y":700,"wires":[[]]},{"id":"1ba94874.b59068","type":"switch","z":"89f03bbf.93f678","name":"","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"Cart01","vt":"str"},{"t":"eq","v":"Cart2","vt":"str"},{"t":"eq","v":"Cart01","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":4,"x":4610,"y":1740,"wires":[["65f8eb04.e95e44","98714863.006c68"],[],[],[]],"outputLabels":["","","","Alle biler"]},{"id":"3745832a.877f5c","type":"debug","z":"89f03bbf.93f678","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":2820,"y":740,"wires":[]},{"id":"ad591aae.e9bb88","type":"debug","z":"89f03bbf.93f678","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":3870,"y":520,"wires":[]},{"id":"c449fcd9.96683","type":"change","z":"89f03bbf.93f678","name":"","rules":[{"t":"set","p":"laptime","pt":"msg","to":"00:00","tot":"str"},{"t":"set","p":"bestlap","pt":"msg","to":"00:00","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"0","tot":"str"},{"t":"set","p":"bestlap","pt":"msg","to":"00:00","tot":"str"},{"t":"set","p":"reset","pt":"msg","to":"1","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":2700,"y":920,"wires":[["7c50b757.34a5f8"]]},{"id":"198b7bb7.ef4804","type":"change","z":"89f03bbf.93f678","name":"bestlap","rules":[{"t":"set","p":"bestlap","pt":"msg","to":"laptime","tot":"flow"},{"t":"set","p":"bestlap","pt":"flow","to":"laptime","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":3600,"y":3180,"wires":[["f63000b1.a2e12"]]},{"id":"be3bdc77.8942e","type":"switch","z":"89f03bbf.93f678","name":"","property":"laptime","propertyType":"flow","rules":[{"t":"lt","v":"bestlap","vt":"flow"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":3270,"y":3280,"wires":[["20b766bb.b49baa","198b7bb7.ef4804"],["1bace7fb.f96838","b25962e0.28e1d"]]},{"id":"77875ba4.da75f4","type":"moment","z":"89f03bbf.93f678","name":"Format bestlap","topic":"","input":"bestlap","inputType":"msg","inTz":"Africa/Abidjan","adjAmount":0,"adjType":"milliseconds","adjDir":"add","format":"mm:ss","locale":"en-US","output":"bestlap","outputType":"msg","outTz":"Europe/Copenhagen","x":3880,"y":3460,"wires":[["b2fcd6e9.f1f398"]]},{"id":"1babf561.326eeb","type":"moment","z":"89f03bbf.93f678","name":"Format laptime","topic":"","input":"laptime","inputType":"msg","inTz":"Africa/Abidjan","adjAmount":0,"adjType":"milliseconds","adjDir":"add","format":"mm:ss","locale":"en-US","output":"laptime","outputType":"msg","outTz":"Europe/Copenhagen","x":3920,"y":3340,"wires":[["779b62a0.05512c"]]},{"id":"33e31061.12b0b","type":"moment","z":"89f03bbf.93f678","name":"Format time","topic":"","input":"bestlap","inputType":"msg","inTz":"Africa/Abidjan","adjAmount":0,"adjType":"milliseconds","adjDir":"add","format":"mm:ss","locale":"en-US","output":"bestlap","outputType":"msg","outTz":"Europe/Copenhagen","x":3950,"y":3040,"wires":[["2e5de3fc.ab5dbc"]]},{"id":"e573dd34.5c17c","type":"change","z":"89f03bbf.93f678","name":"","rules":[{"t":"set","p":"bestlap","pt":"msg","to":"laptime","tot":"flow"},{"t":"set","p":"bestlap","pt":"flow","to":"laptime","tot":"flow"},{"t":"set","p":"lastlap","pt":"flow","to":"laptime","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":3620,"y":3100,"wires":[["33e31061.12b0b"]]},{"id":"2e5de3fc.ab5dbc","type":"change","z":"89f03bbf.93f678","name":"","rules":[{"t":"set","p":"laptime","pt":"msg","to":"bestlap","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":4200,"y":3140,"wires":[[]]},{"id":"b994905d.7a613","type":"switch","z":"89f03bbf.93f678","name":"","property":"teamnumber","propertyType":"flow","rules":[{"t":"gt","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":3190,"y":380,"wires":[["ea52f276.9e964"]]},{"id":"b2fcd6e9.f1f398","type":"debug","z":"89f03bbf.93f678","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":4190,"y":3460,"wires":[]},{"id":"779b62a0.05512c","type":"debug","z":"89f03bbf.93f678","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":4110,"y":3380,"wires":[]},{"id":"f63000b1.a2e12","type":"moment","z":"89f03bbf.93f678","name":"Format bestlap","topic":"","input":"bestlap","inputType":"msg","inTz":"Africa/Abidjan","adjAmount":0,"adjType":"milliseconds","adjDir":"add","format":"mm:ss","locale":"en-US","output":"bestlap","outputType":"msg","outTz":"Europe/Copenhagen","x":3940,"y":3220,"wires":[["ca554ce1.1b6d7"]]},{"id":"20b766bb.b49baa","type":"debug","z":"89f03bbf.93f678","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":3350,"y":3160,"wires":[]},{"id":"1bace7fb.f96838","type":"debug","z":"89f03bbf.93f678","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":3290,"y":3460,"wires":[]},{"id":"5090fedc.6b701","type":"change","z":"89f03bbf.93f678","name":"bestlap","rules":[{"t":"set","p":"bestlap","pt":"flow","to":"laptime","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":3680,"y":3460,"wires":[["77875ba4.da75f4"]]},{"id":"b25962e0.28e1d","type":"change","z":"89f03bbf.93f678","name":"normal lap set laptime","rules":[{"t":"set","p":"laptime","pt":"msg","to":"laptime","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":3600,"y":3360,"wires":[["1babf561.326eeb"]]},{"id":"ca554ce1.1b6d7","type":"debug","z":"89f03bbf.93f678","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":4170,"y":3200,"wires":[]},{"id":"41244322.91a14c","type":"change","z":"89f03bbf.93f678","name":"set bestlap","rules":[{"t":"set","p":"bestlap","pt":"msg","to":"bestlap","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":3590,"y":3220,"wires":[[]]},{"id":"59d60ac6.37c224","type":"change","z":"89f03bbf.93f678","name":"","rules":[{"t":"set","p":"laptime","pt":"msg","to":"laptime","tot":"flow"},{"t":"set","p":"lastlaptime","pt":"flow","to":"laptime","tot":"flow"},{"t":"delete","p":"payload","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":3820,"y":1740,"wires":[["604ca9d2.047f78"]]},{"id":"fb08ea92.63d058","type":"switch","z":"89f03bbf.93f678","name":"","property":"bestlap","propertyType":"flow","rules":[{"t":"gt","v":"laptime","vt":"flow"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":3610,"y":1820,"wires":[["1f874d7b.9471a3"],[]]},{"id":"1f874d7b.9471a3","type":"change","z":"89f03bbf.93f678","name":"","rules":[{"t":"set","p":"bestlap","pt":"msg","to":"laptime","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":3820,"y":1820,"wires":[["9779c6e8.54acc8"]]},{"id":"9779c6e8.54acc8","type":"moment","z":"89f03bbf.93f678","name":"Format bestlap","topic":"","input":"bestlap","inputType":"msg","inTz":"Africa/Abidjan","adjAmount":0,"adjType":"milliseconds","adjDir":"add","format":"mm:ss","locale":"en-US","output":"bestlap","outputType":"msg","outTz":"Europe/Copenhagen","x":4060,"y":1800,"wires":[["ec2554c9.570678","1ba94874.b59068"]]},{"id":"604ca9d2.047f78","type":"moment","z":"89f03bbf.93f678","name":"Format laptime","topic":"","input":"laptime","inputType":"msg","inTz":"Africa/Abidjan","adjAmount":0,"adjType":"milliseconds","adjDir":"add","format":"mm:ss","locale":"en-US","output":"laptime","outputType":"msg","outTz":"Europe/Copenhagen","x":4060,"y":1740,"wires":[["945b6d4a.7b71b","1ba94874.b59068"]]},{"id":"1edc99d4.b43e26","type":"moment","z":"89f03bbf.93f678","name":"Format bestlap","topic":"","input":"bestlap","inputType":"msg","inTz":"Africa/Abidjan","adjAmount":0,"adjType":"milliseconds","adjDir":"add","format":"mm:ss","locale":"en-US","output":"bestlap","outputType":"msg","outTz":"Europe/Copenhagen","x":4060,"y":1680,"wires":[["ff49e179.e3306","1cdfe80a.ecce28","1ba94874.b59068"]]},{"id":"5d646448.8b71ac","type":"change","z":"89f03bbf.93f678","name":"","rules":[{"t":"set","p":"bestlap","pt":"msg","to":"laptime","tot":"flow"},{"t":"set","p":"bestlap","pt":"flow","to":"laptime","tot":"flow"},{"t":"set","p":"lastlap","pt":"flow","to":"laptime","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":3820,"y":1680,"wires":[["1edc99d4.b43e26"]]},{"id":"ff49e179.e3306","type":"change","z":"89f03bbf.93f678","name":"","rules":[{"t":"set","p":"laptime","pt":"msg","to":"bestlap","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":4260,"y":1580,"wires":[["2d837b7b.fef194","1ba94874.b59068"]]},{"id":"2d837b7b.fef194","type":"debug","z":"89f03bbf.93f678","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":4590,"y":1500,"wires":[]},{"id":"1cdfe80a.ecce28","type":"debug","z":"89f03bbf.93f678","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":4590,"y":1540,"wires":[]},{"id":"945b6d4a.7b71b","type":"debug","z":"89f03bbf.93f678","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":4590,"y":1580,"wires":[]},{"id":"ec2554c9.570678","type":"debug","z":"89f03bbf.93f678","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":4590,"y":1620,"wires":[]},{"id":"f92c9d22.57d2e","type":"link out","z":"89f03bbf.93f678","name":"","links":["c8a5b99c.752e58"],"x":1975,"y":740,"wires":[]},{"id":"d88ad459.6a8ad8","type":"ui_group","name":"Heat specs.","tab":"f83fb4de.650728","order":1,"disp":true,"width":6,"collapse":false},{"id":"dca8425b.8fb18","type":"mqtt-broker","name":"","broker":"192.168.1.75","port":"1883","clientid":"Cart1","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"1abc70f0.fd142f","type":"ui_group","name":"Cart 7","tab":"f83fb4de.650728","order":3,"disp":false,"width":"6","collapse":false},{"id":"1a7f6b0.0560695","type":"ui_group","name":"Personale","tab":"f83fb4de.650728","order":2,"disp":false,"width":6,"collapse":false},{"id":"242d1b9c.039d64","type":"ui_group","name":"GOKART 1","tab":"9ebba496.680ec8","order":2,"disp":true,"width":"30","collapse":true},{"id":"da22b4b5.aa6978","type":"ui_group","name":"Race board","tab":"9ebba496.680ec8","order":1,"disp":false,"width":"30","collapse":false},{"id":"ab49468f.d87598","type":"ui_group","name":"GOKART 2","tab":"9ebba496.680ec8","order":3,"disp":true,"width":"30","collapse":false},{"id":"5122d3b2.61539c","type":"ui_group","name":"GOKART 3","tab":"9ebba496.680ec8","order":4,"disp":true,"width":30,"collapse":false},{"id":"7ad0ea.bbfe1f18","type":"ui_group","name":"GOKART 4","tab":"9ebba496.680ec8","order":5,"disp":true,"width":30,"collapse":false},{"id":"bf8cde26.f227","type":"ui_group","name":"GOKART 5","tab":"9ebba496.680ec8","order":6,"disp":true,"width":30,"collapse":false},{"id":"95436cf9.41356","type":"ui_group","name":"GOKART 6","tab":"9ebba496.680ec8","order":7,"disp":true,"width":30,"collapse":false},{"id":"a56abf94.386da","type":"ui_group","name":"GOKART 7","tab":"9ebba496.680ec8","order":8,"disp":true,"width":30,"collapse":false},{"id":"f83fb4de.650728","type":"ui_tab","name":"gocart","icon":"dashboard","disabled":false,"hidden":false},{"id":"9ebba496.680ec8","type":"ui_tab","name":"Race board","icon":"dashboard","disabled":false,"hidden":false}]
RAW Paste Data