code:
[{"id":"6cf0017697520c44","type":"tab","label":"chlazeni MPTT trakeru","disabled":false,"info":"\r\n","env":[]},{"id":"6d949c46f8659f66","type":"http request","z":"6cf0017697520c44","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://192.168.11.6/relay/0?turn=on","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":830,"y":220,"wires":[["b7c77c51b1d5825d"]]},{"id":"9daa212495cd1b4d","type":"http request","z":"6cf0017697520c44","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://192.168.11.6/relay/0?turn=off","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":830,"y":340,"wires":[["b7c77c51b1d5825d"]]},{"id":"b7c77c51b1d5825d","type":"debug","z":"6cf0017697520c44","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":970,"y":280,"wires":[]},{"id":"d436d62da80b86e4","type":"victron-input-solarcharger","z":"6cf0017697520c44","service":"com.victronenergy.solarcharger/278","path":"/Yield/Power","serviceObj":{"service":"com.victronenergy.solarcharger/278","name":"MPPT WEST"},"pathObj":{"path":"/Yield/Power","type":"float","name":"PV Power (W)"},"name":"WEST","onlyChanges":true,"roundValues":"0","x":70,"y":280,"wires":[["6638525d4c6381ee"]],"outputLabels":["west"]},{"id":"acc00f93399a6275","type":"victron-input-solarcharger","z":"6cf0017697520c44","service":"com.victronenergy.solarcharger/279","path":"/Yield/Power","serviceObj":{"service":"com.victronenergy.solarcharger/279","name":"MPPT VJ"},"pathObj":{"path":"/Yield/Power","type":"float","name":"PV Power (W)"},"name":"JV","onlyChanges":true,"roundValues":"0","x":70,"y":340,"wires":[["6638525d4c6381ee"]],"outputLabels":["vj"]},{"id":"963735aa2c2813dd","type":"function","z":"6cf0017697520c44","name":"SUB_TrackerS","func":"var vystup1 = msg.Trackers[0]; // VĂ˝kon z druhĂ©ho trackeru\nvar vystup2 = msg.Trackers[1]; // VĂ˝kon z druhĂ©ho trackeru\nvar nCelkem = vystup1 + vystup2;\n\nmsg.nSuma = nCelkem;\n\nif ( nCelkem > 200) {\n // Pokud jsou splnÄ›ny obÄ› podmĂnky\n\n // msg.url =\"/relay/0?turn=on\";\n \n} else {\n // Pokud nejsou splnÄ›ny obÄ› podmĂnky\n // msg.url =\"/relay/0?turn=off\";\n}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":620,"y":320,"wires":[["92eeb595a9a9160e"]]},{"id":"0cae4cec9dd05aea","type":"debug","z":"6cf0017697520c44","name":"debug 1","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":540,"y":180,"wires":[]},{"id":"92eeb595a9a9160e","type":"debug","z":"6cf0017697520c44","name":"debug 2","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"nSuma","targetType":"msg","statusVal":"","statusType":"auto","x":700,"y":440,"wires":[]},{"id":"810a6386fa6f0485","type":"debug","z":"6cf0017697520c44","name":"debug 3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":480,"y":440,"wires":[]},{"id":"6638525d4c6381ee","type":"join","z":"6cf0017697520c44","name":"","mode":"custom","build":"merged","property":"","propertyType":"full","key":"payload","joiner":"[92,110]","joinerType":"bin","accumulate":false,"timeout":"","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"num","reduceFixup":"","x":350,"y":320,"wires":[["810a6386fa6f0485","963735aa2c2813dd"]]},{"id":"4730b73ad4fac2ed","type":"change","z":"6cf0017697520c44","name":"","rules":[{"t":"change","p":"Tracker","pt":"global","from":"","fromt":"str","to":"","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":460,"y":260,"wires":[[]]}]