Selasa, 21 Februari 2023

membuat data counter di node red


 


[{"id":"1012f694.b49289","type":"ui_gauge","z":"22bbee26.d91a62","name":"","group":"1485a8fe.3b4187","order":1,"width":9,"height":5,"gtype":"gage","title":"SLOT KOSONG","label":"MOBIL","format":"{{value}}","min":0,"max":"200","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":640,"y":100,"wires":[]},{"id":"4f41c5a1.85426c","type":"inject","z":"22bbee26.d91a62","name":"decrement","props":[{"p":"payload","v":"","vt":"date"},{"p":"topic","v":"","vt":"string"}],"repeat":"","crontab":"","once":false,"topic":"","payload":"","payloadType":"date","x":110,"y":200,"wires":[["e9085587.2d19c"]]},{"id":"afb267a8.63739","type":"inject","z":"22bbee26.d91a62","name":"increment","repeat":"","crontab":"","once":false,"topic":"","payload":"","payloadType":"date","x":110,"y":160,"wires":[["4a35e3c7.3dbd0c"]]},{"id":"f066adf1.21ba","type":"inject","z":"22bbee26.d91a62","name":"reset","props":[{"p":"payload","v":"","vt":"date"},{"p":"topic","v":"","vt":"string"}],"repeat":"","crontab":"","once":false,"topic":"","payload":"","payloadType":"date","x":100,"y":240,"wires":[["523f8e05.d5537"]]},{"id":"4a35e3c7.3dbd0c","type":"function","z":"22bbee26.d91a62","name":"msg object","func":"msg.increment = 1;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":280,"y":160,"wires":[["f33ad4bd.777a5"]]},{"id":"523f8e05.d5537","type":"function","z":"22bbee26.d91a62","name":"msg object","func":"msg.reset = 0;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":280,"y":240,"wires":[["f33ad4bd.777a5"]]},{"id":"e9085587.2d19c","type":"function","z":"22bbee26.d91a62","name":"msg object","func":"msg.decrement = 1;\nreturn msg;","outputs":1,"noerr":0,"x":280,"y":200,"wires":[["f33ad4bd.777a5"]]},{"id":"9b40b088.73732","type":"debug","z":"22bbee26.d91a62","name":"count","active":true,"console":"false","complete":"payload","x":620,"y":160,"wires":[]},{"id":"f33ad4bd.777a5","type":"counter","z":"22bbee26.d91a62","name":"","init":"200","step":"0","lower":"","upper":"","mode":"decrement","outputs":"2","x":470,"y":180,"wires":[["9b40b088.73732","1012f694.b49289","ac2b4066.91b36"],["876cc69d.d4b438"]]},{"id":"99b73d63.9fdb","type":"inject","z":"22bbee26.d91a62","name":"normal msg without control parameter","props":[{"p":"payload","v":"","vt":"date"},{"p":"topic","v":"","vt":"string"}],"repeat":"","crontab":"","once":false,"topic":"","payload":"","payloadType":"date","x":200,"y":120,"wires":[["f33ad4bd.777a5"]]},{"id":"876cc69d.d4b438","type":"debug","z":"22bbee26.d91a62","name":"message","active":false,"console":"false","complete":"true","x":630,"y":200,"wires":[]},{"id":"d48124bf.ed8f28","type":"ui_button","z":"22bbee26.d91a62","name":"","group":"1485a8fe.3b4187","order":5,"width":3,"height":2,"passthru":false,"label":"OUT","tooltip":"","color":"","bgcolor":"GREEN","icon":"","payload":"1","payloadType":"num","topic":"","x":110,"y":80,"wires":[["b2f2fe87.481ad","4a35e3c7.3dbd0c"]]},{"id":"942ce095.99c73","type":"ui_button","z":"22bbee26.d91a62","name":"","group":"1485a8fe.3b4187","order":14,"width":3,"height":2,"passthru":false,"label":"IN","tooltip":"","color":"","bgcolor":"RED","icon":"","payload":"1","payloadType":"num","topic":"","x":100,"y":300,"wires":[["e9085587.2d19c","b11d964d.4aaf98"]]},{"id":"b2f2fe87.481ad","type":"function","z":"22bbee26.d91a62","name":"msg object","func":"msg.increment = 1;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":290,"y":320,"wires":[["f39ecc18.f8e0c"]]},{"id":"f39ecc18.f8e0c","type":"counter","z":"22bbee26.d91a62","name":"","init":"0","step":"0","lower":null,"upper":null,"mode":"increment","outputs":"2","x":480,"y":320,"wires":[["40e2406e.019fb"],[]]},{"id":"40e2406e.019fb","type":"ui_gauge","z":"22bbee26.d91a62","name":"","group":"1485a8fe.3b4187","order":2,"width":6,"height":5,"gtype":"donut","title":"JUMLAH MOBIL KELUAR HARI INI","label":"MOBIL","format":"{{value}}","min":0,"max":"200","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":720,"y":320,"wires":[]},{"id":"fe46536b.82274","type":"counter","z":"22bbee26.d91a62","name":"","init":"0","step":"0","lower":null,"upper":null,"mode":"increment","outputs":"2","x":480,"y":400,"wires":[["225d1af5.5872b6"],[]]},{"id":"225d1af5.5872b6","type":"ui_gauge","z":"22bbee26.d91a62","name":"","group":"1485a8fe.3b4187","order":3,"width":6,"height":5,"gtype":"donut","title":"JUMLAH MOBIL MASUK HARI INI","label":"MOBIL","format":"{{value}}","min":0,"max":"200","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":720,"y":400,"wires":[]},{"id":"ac2b4066.91b36","type":"ui_chart","z":"22bbee26.d91a62","name":"","group":"1485a8fe.3b4187","order":18,"width":26,"height":8,"label":"GRAFIK SLOT KOSONG","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":true,"ymin":"","ymax":"","removeOlder":"10","removeOlderPoints":"","removeOlderUnit":"60","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"x":710,"y":480,"wires":[[]]},{"id":"b11d964d.4aaf98","type":"function","z":"22bbee26.d91a62","name":"msg object","func":"msg.increment = 1;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":290,"y":400,"wires":[["fe46536b.82274"]]},{"id":"b6da288b.675448","type":"function","z":"22bbee26.d91a62","name":"msg object","func":"msg.reset = 0;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":290,"y":360,"wires":[["f39ecc18.f8e0c","fe46536b.82274"]]},{"id":"2979c492.32e8cc","type":"inject","z":"22bbee26.d91a62","name":"reset","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":"","topic":"","payload":"0","payloadType":"msg","x":90,"y":360,"wires":[["b6da288b.675448"]]},{"id":"6703512c.e6a1b","type":"ui_button","z":"22bbee26.d91a62","name":"","group":"1485a8fe.3b4187","order":11,"width":2,"height":2,"passthru":false,"label":"RESET","tooltip":"","color":"","bgcolor":"BLUE","icon":"","payload":"0","payloadType":"num","topic":"","x":120,"y":400,"wires":[["b6da288b.675448"]]},{"id":"25d40a98.5fd9c6","type":"ui_button","z":"22bbee26.d91a62","name":"","group":"1485a8fe.3b4187","order":9,"width":2,"height":2,"passthru":false,"label":"START","tooltip":"","color":"","bgcolor":"BLUE","icon":"","payload":"200","payloadType":"num","topic":"","x":280,"y":60,"wires":[["1012f694.b49289"]]},{"id":"1485a8fe.3b4187","type":"ui_group","name":"Default","tab":"9ddb2941.5788f8","order":1,"disp":false,"width":"26","collapse":false},{"id":"9ddb2941.5788f8","type":"ui_tab","name":"MONITORING PARKIR","icon":"dashboard","order":3,"disabled":false,"hidden":false}]

Tidak ada komentar:

Posting Komentar

Frekwensi LoRa yang legal di Indonesia

 menurut kepmen 2024-05 standar teknis perangkat LPWAN berikut frekwensi LoRa : link KEPMEN: download