1284 lines
30 KiB
JSON
1284 lines
30 KiB
JSON
[
|
|
{
|
|
"id": "bbdb5efab785691e",
|
|
"type": "tab",
|
|
"label": "Tugas Akhir",
|
|
"disabled": false,
|
|
"info": "",
|
|
"env": []
|
|
},
|
|
{
|
|
"id": "4edddcd26d72c9e3",
|
|
"type": "ui_led",
|
|
"z": "bbdb5efab785691e",
|
|
"order": 3,
|
|
"group": "9bd08ee53d03a9b0",
|
|
"width": 2,
|
|
"height": 1,
|
|
"label": "",
|
|
"labelPlacement": "left",
|
|
"labelAlignment": "left",
|
|
"colorForValue": [
|
|
{
|
|
"color": "#008000",
|
|
"value": "on",
|
|
"valueType": "str"
|
|
},
|
|
{
|
|
"color": "#ff0000",
|
|
"value": "off",
|
|
"valueType": "str"
|
|
}
|
|
],
|
|
"allowColorForValueInMessage": false,
|
|
"shape": "circle",
|
|
"showGlow": true,
|
|
"name": "led1",
|
|
"x": 650,
|
|
"y": 220,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "937904e63f1d9eac",
|
|
"type": "ui_switch",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "",
|
|
"label": "KranAir 1 Off/On",
|
|
"tooltip": "",
|
|
"group": "9bd08ee53d03a9b0",
|
|
"order": 1,
|
|
"width": "5",
|
|
"height": 1,
|
|
"passthru": true,
|
|
"decouple": "false",
|
|
"topic": "switch/servo1",
|
|
"topicType": "str",
|
|
"style": "",
|
|
"onvalue": "on",
|
|
"onvalueType": "str",
|
|
"onicon": "",
|
|
"oncolor": "green",
|
|
"offvalue": "off",
|
|
"offvalueType": "str",
|
|
"officon": "",
|
|
"offcolor": "red",
|
|
"animate": false,
|
|
"className": "",
|
|
"x": 400,
|
|
"y": 260,
|
|
"wires": [
|
|
[
|
|
"4edddcd26d72c9e3",
|
|
"f3cfe3bb0fc56c08",
|
|
"d05cbc310d9e43c2"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "f3cfe3bb0fc56c08",
|
|
"type": "mqtt out",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "",
|
|
"topic": "switch/servo1",
|
|
"qos": "2",
|
|
"retain": "",
|
|
"respTopic": "",
|
|
"contentType": "",
|
|
"userProps": "",
|
|
"correl": "",
|
|
"expiry": "",
|
|
"broker": "095f46f867d32241",
|
|
"x": 680,
|
|
"y": 280,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "9593b8b46fcf1f27",
|
|
"type": "ui_switch",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "",
|
|
"label": "Kran Air 2 Off/On",
|
|
"tooltip": "",
|
|
"group": "9bd08ee53d03a9b0",
|
|
"order": 5,
|
|
"width": "5",
|
|
"height": 1,
|
|
"passthru": true,
|
|
"decouple": "false",
|
|
"topic": "switch/servo2",
|
|
"topicType": "str",
|
|
"style": "",
|
|
"onvalue": "on",
|
|
"onvalueType": "str",
|
|
"onicon": "",
|
|
"oncolor": "",
|
|
"offvalue": "off",
|
|
"offvalueType": "str",
|
|
"officon": "",
|
|
"offcolor": "",
|
|
"animate": false,
|
|
"className": "",
|
|
"x": 890,
|
|
"y": 260,
|
|
"wires": [
|
|
[
|
|
"11c4ecafc5e80071",
|
|
"f862477244fb66c3",
|
|
"9e3e31c4fd42046b"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "11c4ecafc5e80071",
|
|
"type": "mqtt out",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "",
|
|
"topic": "switch/servo2",
|
|
"qos": "2",
|
|
"retain": "",
|
|
"respTopic": "",
|
|
"contentType": "",
|
|
"userProps": "",
|
|
"correl": "",
|
|
"expiry": "",
|
|
"broker": "095f46f867d32241",
|
|
"x": 1200,
|
|
"y": 300,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "936f33db58e76e0c",
|
|
"type": "mqtt in",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "",
|
|
"topic": "esp32/jarak",
|
|
"qos": "2",
|
|
"datatype": "auto-detect",
|
|
"broker": "095f46f867d32241",
|
|
"nl": false,
|
|
"rap": true,
|
|
"rh": 0,
|
|
"inputs": 0,
|
|
"x": 850,
|
|
"y": 120,
|
|
"wires": [
|
|
[
|
|
"2f17ed06cae2f351"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "ad91ce25d7a74033",
|
|
"type": "ui_gauge",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "Water Level",
|
|
"group": "4db64a673b50612d",
|
|
"order": 1,
|
|
"width": 5,
|
|
"height": 4,
|
|
"gtype": "gage",
|
|
"title": "Water Level",
|
|
"label": "cm",
|
|
"format": "{{value}}",
|
|
"min": "1",
|
|
"max": "17",
|
|
"colors": [
|
|
"#b30000",
|
|
"#e6e600",
|
|
"#3acb52"
|
|
],
|
|
"seg1": "",
|
|
"seg2": "",
|
|
"diff": false,
|
|
"className": "",
|
|
"x": 1130,
|
|
"y": 40,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "2fb81d135e94b891",
|
|
"type": "ui_switch",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "",
|
|
"label": "Kran Air 3 Off/On",
|
|
"tooltip": "",
|
|
"group": "9bd08ee53d03a9b0",
|
|
"order": 11,
|
|
"width": "5",
|
|
"height": 1,
|
|
"passthru": true,
|
|
"decouple": "false",
|
|
"topic": "switch/servo3",
|
|
"topicType": "str",
|
|
"style": "",
|
|
"onvalue": "on",
|
|
"onvalueType": "str",
|
|
"onicon": "",
|
|
"oncolor": "",
|
|
"offvalue": "off",
|
|
"offvalueType": "str",
|
|
"officon": "",
|
|
"offcolor": "",
|
|
"animate": false,
|
|
"className": "",
|
|
"x": 410,
|
|
"y": 460,
|
|
"wires": [
|
|
[
|
|
"d2878a7109115ce8",
|
|
"e13865a191941886",
|
|
"cdb9ac58676d2664"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "d2878a7109115ce8",
|
|
"type": "mqtt out",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "",
|
|
"topic": "switch/servo3",
|
|
"qos": "2",
|
|
"retain": "",
|
|
"respTopic": "",
|
|
"contentType": "",
|
|
"userProps": "",
|
|
"correl": "",
|
|
"expiry": "",
|
|
"broker": "095f46f867d32241",
|
|
"x": 720,
|
|
"y": 480,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "82e210793ffc1104",
|
|
"type": "ui_switch",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "",
|
|
"label": "Kran Air 4 Off/On",
|
|
"tooltip": "",
|
|
"group": "9bd08ee53d03a9b0",
|
|
"order": 16,
|
|
"width": "5",
|
|
"height": 1,
|
|
"passthru": true,
|
|
"decouple": "false",
|
|
"topic": "switch/servo4",
|
|
"topicType": "str",
|
|
"style": "",
|
|
"onvalue": "on",
|
|
"onvalueType": "str",
|
|
"onicon": "",
|
|
"oncolor": "",
|
|
"offvalue": "off",
|
|
"offvalueType": "str",
|
|
"officon": "",
|
|
"offcolor": "",
|
|
"animate": false,
|
|
"className": "",
|
|
"x": 890,
|
|
"y": 440,
|
|
"wires": [
|
|
[
|
|
"1f235d657cf05aa1",
|
|
"8f8622eec16ffbde",
|
|
"8ade4c3e1549796b"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "1f235d657cf05aa1",
|
|
"type": "mqtt out",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "",
|
|
"topic": "switch/servo4",
|
|
"qos": "2",
|
|
"retain": "",
|
|
"respTopic": "",
|
|
"contentType": "",
|
|
"userProps": "",
|
|
"correl": "",
|
|
"expiry": "",
|
|
"broker": "095f46f867d32241",
|
|
"x": 1200,
|
|
"y": 500,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "2ce0cc3a91c4058d",
|
|
"type": "ui_switch",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "",
|
|
"label": "Kran Air 5 Off/On",
|
|
"tooltip": "",
|
|
"group": "9bd08ee53d03a9b0",
|
|
"order": 21,
|
|
"width": "5",
|
|
"height": 1,
|
|
"passthru": true,
|
|
"decouple": "false",
|
|
"topic": "switch/servo5",
|
|
"topicType": "str",
|
|
"style": "",
|
|
"onvalue": "on",
|
|
"onvalueType": "str",
|
|
"onicon": "",
|
|
"oncolor": "",
|
|
"offvalue": "off",
|
|
"offvalueType": "str",
|
|
"officon": "",
|
|
"offcolor": "",
|
|
"animate": false,
|
|
"className": "",
|
|
"x": 410,
|
|
"y": 640,
|
|
"wires": [
|
|
[
|
|
"fbb47f10e64e0613",
|
|
"d735b9e6598e5491",
|
|
"bcd0b917de6d154e"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "fbb47f10e64e0613",
|
|
"type": "mqtt out",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "",
|
|
"topic": "switch/servo5",
|
|
"qos": "2",
|
|
"retain": "",
|
|
"respTopic": "",
|
|
"contentType": "",
|
|
"userProps": "",
|
|
"correl": "",
|
|
"expiry": "",
|
|
"broker": "095f46f867d32241",
|
|
"x": 720,
|
|
"y": 700,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "f862477244fb66c3",
|
|
"type": "ui_led",
|
|
"z": "bbdb5efab785691e",
|
|
"order": 8,
|
|
"group": "9bd08ee53d03a9b0",
|
|
"width": 2,
|
|
"height": 1,
|
|
"label": "",
|
|
"labelPlacement": "left",
|
|
"labelAlignment": "left",
|
|
"colorForValue": [
|
|
{
|
|
"color": "#008000",
|
|
"value": "on",
|
|
"valueType": "str"
|
|
},
|
|
{
|
|
"color": "#ff0000",
|
|
"value": "off",
|
|
"valueType": "str"
|
|
}
|
|
],
|
|
"allowColorForValueInMessage": false,
|
|
"shape": "circle",
|
|
"showGlow": true,
|
|
"name": "led2",
|
|
"x": 1170,
|
|
"y": 180,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "e13865a191941886",
|
|
"type": "ui_led",
|
|
"z": "bbdb5efab785691e",
|
|
"order": 13,
|
|
"group": "9bd08ee53d03a9b0",
|
|
"width": 2,
|
|
"height": 1,
|
|
"label": "",
|
|
"labelPlacement": "left",
|
|
"labelAlignment": "left",
|
|
"colorForValue": [
|
|
{
|
|
"color": "#008000",
|
|
"value": "on",
|
|
"valueType": "str"
|
|
},
|
|
{
|
|
"color": "#ff0000",
|
|
"value": "off",
|
|
"valueType": "str"
|
|
}
|
|
],
|
|
"allowColorForValueInMessage": false,
|
|
"shape": "circle",
|
|
"showGlow": true,
|
|
"name": "led3",
|
|
"x": 690,
|
|
"y": 420,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "8f8622eec16ffbde",
|
|
"type": "ui_led",
|
|
"z": "bbdb5efab785691e",
|
|
"order": 18,
|
|
"group": "9bd08ee53d03a9b0",
|
|
"width": 2,
|
|
"height": 1,
|
|
"label": "",
|
|
"labelPlacement": "left",
|
|
"labelAlignment": "left",
|
|
"colorForValue": [
|
|
{
|
|
"color": "#008000",
|
|
"value": "on",
|
|
"valueType": "str"
|
|
},
|
|
{
|
|
"color": "#ff0000",
|
|
"value": "off",
|
|
"valueType": "str"
|
|
}
|
|
],
|
|
"allowColorForValueInMessage": false,
|
|
"shape": "circle",
|
|
"showGlow": true,
|
|
"name": "led4",
|
|
"x": 1170,
|
|
"y": 360,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "d735b9e6598e5491",
|
|
"type": "ui_led",
|
|
"z": "bbdb5efab785691e",
|
|
"order": 23,
|
|
"group": "9bd08ee53d03a9b0",
|
|
"width": 2,
|
|
"height": 1,
|
|
"label": "",
|
|
"labelPlacement": "left",
|
|
"labelAlignment": "left",
|
|
"colorForValue": [
|
|
{
|
|
"color": "#008000",
|
|
"value": "on",
|
|
"valueType": "str"
|
|
},
|
|
{
|
|
"color": "#ff0000",
|
|
"value": "off",
|
|
"valueType": "str"
|
|
}
|
|
],
|
|
"allowColorForValueInMessage": false,
|
|
"shape": "circle",
|
|
"showGlow": true,
|
|
"name": "led5",
|
|
"x": 690,
|
|
"y": 640,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "656c68c33e1839e4",
|
|
"type": "ui_switch",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "",
|
|
"label": "Pompa Air Off/On",
|
|
"tooltip": "",
|
|
"group": "9bd08ee53d03a9b0",
|
|
"order": 26,
|
|
"width": "5",
|
|
"height": 1,
|
|
"passthru": true,
|
|
"decouple": "false",
|
|
"topic": "switch/relay6",
|
|
"topicType": "str",
|
|
"style": "",
|
|
"onvalue": "on",
|
|
"onvalueType": "str",
|
|
"onicon": "",
|
|
"oncolor": "",
|
|
"offvalue": "off",
|
|
"offvalueType": "str",
|
|
"officon": "",
|
|
"offcolor": "",
|
|
"animate": false,
|
|
"className": "",
|
|
"x": 908.8888778686523,
|
|
"y": 648.8889064788818,
|
|
"wires": [
|
|
[
|
|
"811ccbda4c43d270",
|
|
"81b84716fd4ca200",
|
|
"fce61c816e20874e"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "811ccbda4c43d270",
|
|
"type": "mqtt out",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "",
|
|
"topic": "switch/relay1",
|
|
"qos": "2",
|
|
"retain": "",
|
|
"respTopic": "",
|
|
"contentType": "",
|
|
"userProps": "",
|
|
"correl": "",
|
|
"expiry": "",
|
|
"broker": "095f46f867d32241",
|
|
"x": 1188.8888778686523,
|
|
"y": 708.8889064788818,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "81b84716fd4ca200",
|
|
"type": "ui_led",
|
|
"z": "bbdb5efab785691e",
|
|
"order": 28,
|
|
"group": "9bd08ee53d03a9b0",
|
|
"width": 2,
|
|
"height": 1,
|
|
"label": "",
|
|
"labelPlacement": "left",
|
|
"labelAlignment": "left",
|
|
"colorForValue": [
|
|
{
|
|
"color": "#008000",
|
|
"value": "on",
|
|
"valueType": "str"
|
|
},
|
|
{
|
|
"color": "#ff0000",
|
|
"value": "off",
|
|
"valueType": "str"
|
|
}
|
|
],
|
|
"allowColorForValueInMessage": false,
|
|
"shape": "circle",
|
|
"showGlow": true,
|
|
"name": "led6",
|
|
"x": 1168.8888778686523,
|
|
"y": 568.8889064788818,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "84011d4430599fc6",
|
|
"type": "ui_switch",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "",
|
|
"label": "Auto / Manual",
|
|
"tooltip": "",
|
|
"group": "f0dc88d52a8e97e0",
|
|
"order": 1,
|
|
"width": 0,
|
|
"height": 0,
|
|
"passthru": true,
|
|
"decouple": "false",
|
|
"topic": "esp32/mode",
|
|
"topicType": "str",
|
|
"style": "",
|
|
"onvalue": "manual",
|
|
"onvalueType": "str",
|
|
"onicon": "",
|
|
"oncolor": "",
|
|
"offvalue": "auto",
|
|
"offvalueType": "str",
|
|
"officon": "",
|
|
"offcolor": "",
|
|
"animate": false,
|
|
"className": "",
|
|
"x": 280,
|
|
"y": 80,
|
|
"wires": [
|
|
[
|
|
"8834a0f7e045e017",
|
|
"2a28b3ba72dac169"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "8834a0f7e045e017",
|
|
"type": "mqtt out",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "",
|
|
"topic": "esp32/mode",
|
|
"qos": "2",
|
|
"retain": "",
|
|
"respTopic": "",
|
|
"contentType": "",
|
|
"userProps": "",
|
|
"correl": "",
|
|
"expiry": "",
|
|
"broker": "095f46f867d32241",
|
|
"x": 610,
|
|
"y": 80,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "1f1f7b357bc1e349",
|
|
"type": "mqtt in",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "",
|
|
"topic": "esp32/servo1",
|
|
"qos": "2",
|
|
"datatype": "auto-detect",
|
|
"broker": "095f46f867d32241",
|
|
"nl": false,
|
|
"rap": true,
|
|
"rh": 0,
|
|
"inputs": 0,
|
|
"x": 390,
|
|
"y": 180,
|
|
"wires": [
|
|
[
|
|
"4edddcd26d72c9e3",
|
|
"d05cbc310d9e43c2"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "2c6996a19222d782",
|
|
"type": "mqtt in",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "",
|
|
"topic": "esp32/servo2",
|
|
"qos": "2",
|
|
"datatype": "auto-detect",
|
|
"broker": "095f46f867d32241",
|
|
"nl": false,
|
|
"rap": true,
|
|
"rh": 0,
|
|
"inputs": 0,
|
|
"x": 910,
|
|
"y": 180,
|
|
"wires": [
|
|
[
|
|
"f862477244fb66c3",
|
|
"9e3e31c4fd42046b"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "fd72eea94d5e63c4",
|
|
"type": "mqtt in",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "",
|
|
"topic": "esp32/servo3",
|
|
"qos": "2",
|
|
"datatype": "auto-detect",
|
|
"broker": "095f46f867d32241",
|
|
"nl": false,
|
|
"rap": true,
|
|
"rh": 0,
|
|
"inputs": 0,
|
|
"x": 430,
|
|
"y": 380,
|
|
"wires": [
|
|
[
|
|
"e13865a191941886",
|
|
"cdb9ac58676d2664"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "57bcd86d8143be97",
|
|
"type": "mqtt in",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "",
|
|
"topic": "esp32/servo4",
|
|
"qos": "2",
|
|
"datatype": "auto-detect",
|
|
"broker": "095f46f867d32241",
|
|
"nl": false,
|
|
"rap": true,
|
|
"rh": 0,
|
|
"inputs": 0,
|
|
"x": 910,
|
|
"y": 360,
|
|
"wires": [
|
|
[
|
|
"8f8622eec16ffbde",
|
|
"8ade4c3e1549796b"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "d351b213c6947686",
|
|
"type": "mqtt in",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "",
|
|
"topic": "esp32/servo5",
|
|
"qos": "2",
|
|
"datatype": "auto-detect",
|
|
"broker": "095f46f867d32241",
|
|
"nl": false,
|
|
"rap": true,
|
|
"rh": 0,
|
|
"inputs": 0,
|
|
"x": 430,
|
|
"y": 560,
|
|
"wires": [
|
|
[
|
|
"d735b9e6598e5491",
|
|
"bcd0b917de6d154e"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "7d3c84f3d5c3447f",
|
|
"type": "mqtt in",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "",
|
|
"topic": "esp32/relay1",
|
|
"qos": "2",
|
|
"datatype": "auto-detect",
|
|
"broker": "095f46f867d32241",
|
|
"nl": false,
|
|
"rap": true,
|
|
"rh": 0,
|
|
"inputs": 0,
|
|
"x": 910,
|
|
"y": 560,
|
|
"wires": [
|
|
[
|
|
"81b84716fd4ca200",
|
|
"fce61c816e20874e"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "533cce56427834d5",
|
|
"type": "ui_media",
|
|
"z": "bbdb5efab785691e",
|
|
"group": "235ff79be71d747f",
|
|
"name": "",
|
|
"width": 20,
|
|
"height": 11,
|
|
"order": 3,
|
|
"category": "visual",
|
|
"file": "project ta.png",
|
|
"layout": "adjust",
|
|
"showcontrols": true,
|
|
"loop": true,
|
|
"onstart": false,
|
|
"scope": "local",
|
|
"tooltip": "",
|
|
"x": 1170,
|
|
"y": 120,
|
|
"wires": [
|
|
[]
|
|
]
|
|
},
|
|
{
|
|
"id": "9e3e31c4fd42046b",
|
|
"type": "ui_led",
|
|
"z": "bbdb5efab785691e",
|
|
"order": 5,
|
|
"group": "235ff79be71d747f",
|
|
"width": 2,
|
|
"height": 1,
|
|
"label": "",
|
|
"labelPlacement": "left",
|
|
"labelAlignment": "left",
|
|
"colorForValue": [
|
|
{
|
|
"color": "#008000",
|
|
"value": "on",
|
|
"valueType": "str"
|
|
},
|
|
{
|
|
"color": "#ff0000",
|
|
"value": "off",
|
|
"valueType": "str"
|
|
}
|
|
],
|
|
"allowColorForValueInMessage": false,
|
|
"shape": "circle",
|
|
"showGlow": true,
|
|
"name": "led2",
|
|
"x": 1170,
|
|
"y": 240,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "d05cbc310d9e43c2",
|
|
"type": "ui_led",
|
|
"z": "bbdb5efab785691e",
|
|
"order": 4,
|
|
"group": "235ff79be71d747f",
|
|
"width": 5,
|
|
"height": 1,
|
|
"label": "",
|
|
"labelPlacement": "left",
|
|
"labelAlignment": "left",
|
|
"colorForValue": [
|
|
{
|
|
"color": "#008000",
|
|
"value": "on",
|
|
"valueType": "str"
|
|
},
|
|
{
|
|
"color": "#ff0000",
|
|
"value": "off",
|
|
"valueType": "str"
|
|
}
|
|
],
|
|
"allowColorForValueInMessage": false,
|
|
"shape": "circle",
|
|
"showGlow": true,
|
|
"name": "led1",
|
|
"x": 650,
|
|
"y": 160,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "cdb9ac58676d2664",
|
|
"type": "ui_led",
|
|
"z": "bbdb5efab785691e",
|
|
"order": 6,
|
|
"group": "235ff79be71d747f",
|
|
"width": 5,
|
|
"height": 1,
|
|
"label": "",
|
|
"labelPlacement": "left",
|
|
"labelAlignment": "left",
|
|
"colorForValue": [
|
|
{
|
|
"color": "#008000",
|
|
"value": "on",
|
|
"valueType": "str"
|
|
},
|
|
{
|
|
"color": "#ff0000",
|
|
"value": "off",
|
|
"valueType": "str"
|
|
}
|
|
],
|
|
"allowColorForValueInMessage": false,
|
|
"shape": "circle",
|
|
"showGlow": true,
|
|
"name": "led3",
|
|
"x": 690,
|
|
"y": 360,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "bcd0b917de6d154e",
|
|
"type": "ui_led",
|
|
"z": "bbdb5efab785691e",
|
|
"order": 8,
|
|
"group": "235ff79be71d747f",
|
|
"width": 5,
|
|
"height": 1,
|
|
"label": "",
|
|
"labelPlacement": "left",
|
|
"labelAlignment": "left",
|
|
"colorForValue": [
|
|
{
|
|
"color": "#008000",
|
|
"value": "on",
|
|
"valueType": "str"
|
|
},
|
|
{
|
|
"color": "#ff0000",
|
|
"value": "off",
|
|
"valueType": "str"
|
|
}
|
|
],
|
|
"allowColorForValueInMessage": false,
|
|
"shape": "circle",
|
|
"showGlow": true,
|
|
"name": "led5",
|
|
"x": 690,
|
|
"y": 560,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "fce61c816e20874e",
|
|
"type": "ui_led",
|
|
"z": "bbdb5efab785691e",
|
|
"order": 2,
|
|
"group": "235ff79be71d747f",
|
|
"width": "3",
|
|
"height": "1",
|
|
"label": "",
|
|
"labelPlacement": "left",
|
|
"labelAlignment": "left",
|
|
"colorForValue": [
|
|
{
|
|
"color": "#008000",
|
|
"value": "on",
|
|
"valueType": "str"
|
|
},
|
|
{
|
|
"color": "#ff0000",
|
|
"value": "off",
|
|
"valueType": "str"
|
|
}
|
|
],
|
|
"allowColorForValueInMessage": false,
|
|
"shape": "circle",
|
|
"showGlow": true,
|
|
"name": "led6",
|
|
"x": 1210,
|
|
"y": 640,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "8ade4c3e1549796b",
|
|
"type": "ui_led",
|
|
"z": "bbdb5efab785691e",
|
|
"order": 7,
|
|
"group": "235ff79be71d747f",
|
|
"width": 2,
|
|
"height": 1,
|
|
"label": "",
|
|
"labelPlacement": "left",
|
|
"labelAlignment": "left",
|
|
"colorForValue": [
|
|
{
|
|
"color": "#008000",
|
|
"value": "on",
|
|
"valueType": "str"
|
|
},
|
|
{
|
|
"color": "#ff0000",
|
|
"value": "off",
|
|
"valueType": "str"
|
|
}
|
|
],
|
|
"allowColorForValueInMessage": false,
|
|
"shape": "circle",
|
|
"showGlow": true,
|
|
"name": "led4",
|
|
"x": 1170,
|
|
"y": 440,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "2f17ed06cae2f351",
|
|
"type": "function",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "function 1",
|
|
"func": "var jarak = msg.payload;\nvar jarakMaksimum = 17;\nvar nilaiGauge = jarakMaksimum - jarak + 3;\n\nnilaiGauge = Math.round(nilaiGauge);\nmsg.payload = nilaiGauge;\n\nreturn msg;",
|
|
"outputs": 1,
|
|
"timeout": 0,
|
|
"noerr": 0,
|
|
"initialize": "",
|
|
"finalize": "",
|
|
"libs": [],
|
|
"x": 980,
|
|
"y": 80,
|
|
"wires": [
|
|
[
|
|
"ad91ce25d7a74033"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "77e566ae7c8a13bd",
|
|
"type": "ui_ui_control",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "",
|
|
"events": "change",
|
|
"x": 700,
|
|
"y": 20,
|
|
"wires": [
|
|
[]
|
|
]
|
|
},
|
|
{
|
|
"id": "2a28b3ba72dac169",
|
|
"type": "function",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "Set ui_control",
|
|
"func": "if (msg.payload === 'auto') {\n msg.payload = {\n group: {\n hide: ['PenyaluranAirOtomatis_ManualSwitchPenyaluranAir']\n }\n };\n} else {\n msg.payload = {\n group: {\n show: ['PenyaluranAirOtomatis_Monitoring', 'PenyaluranAirOtomatis_Visual', 'PenyaluranAirOtomatis_Pemilihan Mode', 'PenyaluranAirOtomatis_pompa', 'PenyaluranAirOtomatis_ManualSwitchPenyaluranAir']\n }\n };\n}\nreturn msg;",
|
|
"outputs": 1,
|
|
"timeout": "",
|
|
"noerr": 0,
|
|
"initialize": "",
|
|
"finalize": "",
|
|
"libs": [],
|
|
"x": 420,
|
|
"y": 40,
|
|
"wires": [
|
|
[
|
|
"77e566ae7c8a13bd"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "9ba0bdffbc8660dc",
|
|
"type": "mqtt in",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "",
|
|
"topic": "time/ntp",
|
|
"qos": "2",
|
|
"datatype": "auto-detect",
|
|
"broker": "095f46f867d32241",
|
|
"nl": false,
|
|
"rap": true,
|
|
"rh": 0,
|
|
"inputs": 0,
|
|
"x": 70,
|
|
"y": 200,
|
|
"wires": [
|
|
[
|
|
"17f32dbcb7f36fd4"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "17f32dbcb7f36fd4",
|
|
"type": "ui_text",
|
|
"z": "bbdb5efab785691e",
|
|
"group": "4db64a673b50612d",
|
|
"order": 1,
|
|
"width": 0,
|
|
"height": 0,
|
|
"name": "",
|
|
"label": "Waktu",
|
|
"format": "{{msg.payload}}",
|
|
"layout": "row-spread",
|
|
"className": "",
|
|
"style": false,
|
|
"font": "",
|
|
"fontSize": 16,
|
|
"color": "#000000",
|
|
"x": 230,
|
|
"y": 240,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "cb55674d03d08bd2",
|
|
"type": "mqtt in",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "",
|
|
"topic": "time/rtc",
|
|
"qos": "2",
|
|
"datatype": "auto-detect",
|
|
"broker": "095f46f867d32241",
|
|
"nl": false,
|
|
"rap": true,
|
|
"rh": 0,
|
|
"inputs": 0,
|
|
"x": 70,
|
|
"y": 280,
|
|
"wires": [
|
|
[
|
|
"17f32dbcb7f36fd4"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "d6471574fbdb10f8",
|
|
"type": "mqtt in",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "",
|
|
"topic": "esp32/statusAir",
|
|
"qos": "2",
|
|
"datatype": "auto-detect",
|
|
"broker": "095f46f867d32241",
|
|
"nl": false,
|
|
"rap": true,
|
|
"rh": 0,
|
|
"inputs": 0,
|
|
"x": 120,
|
|
"y": 380,
|
|
"wires": [
|
|
[
|
|
"14b58cfb3bef96bd"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "14b58cfb3bef96bd",
|
|
"type": "ui_text",
|
|
"z": "bbdb5efab785691e",
|
|
"group": "4db64a673b50612d",
|
|
"order": 1,
|
|
"width": 0,
|
|
"height": 0,
|
|
"name": "",
|
|
"label": "Status",
|
|
"format": "{{msg.payload}}",
|
|
"layout": "row-spread",
|
|
"className": "",
|
|
"style": false,
|
|
"font": "",
|
|
"fontSize": 16,
|
|
"color": "#000000",
|
|
"x": 270,
|
|
"y": 340,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "b95651f9e75df6ba",
|
|
"type": "ui_spacer",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "spacer",
|
|
"group": "9bd08ee53d03a9b0",
|
|
"order": 7,
|
|
"width": "2",
|
|
"height": "1"
|
|
},
|
|
{
|
|
"id": "f588c4bf44ffd629",
|
|
"type": "ui_spacer",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "spacer",
|
|
"group": "9bd08ee53d03a9b0",
|
|
"order": 12,
|
|
"width": "2",
|
|
"height": "1"
|
|
},
|
|
{
|
|
"id": "0a416774c7eeaab0",
|
|
"type": "ui_spacer",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "spacer",
|
|
"group": "9bd08ee53d03a9b0",
|
|
"order": 2,
|
|
"width": "2",
|
|
"height": "1"
|
|
},
|
|
{
|
|
"id": "a617f169d8a77aca",
|
|
"type": "ui_spacer",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "spacer",
|
|
"group": "9bd08ee53d03a9b0",
|
|
"order": 4,
|
|
"width": "1",
|
|
"height": "1"
|
|
},
|
|
{
|
|
"id": "0a6fc412db765d76",
|
|
"type": "ui_spacer",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "spacer",
|
|
"group": "9bd08ee53d03a9b0",
|
|
"order": 17,
|
|
"width": "2",
|
|
"height": "1"
|
|
},
|
|
{
|
|
"id": "0899719a44be97d5",
|
|
"type": "ui_spacer",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "spacer",
|
|
"group": "9bd08ee53d03a9b0",
|
|
"order": 27,
|
|
"width": "2",
|
|
"height": "1"
|
|
},
|
|
{
|
|
"id": "1a4c6241de37549a",
|
|
"type": "ui_spacer",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "spacer",
|
|
"group": "9bd08ee53d03a9b0",
|
|
"order": 22,
|
|
"width": "2",
|
|
"height": "1"
|
|
},
|
|
{
|
|
"id": "2581828da3c6487d",
|
|
"type": "ui_spacer",
|
|
"z": "bbdb5efab785691e",
|
|
"name": "spacer",
|
|
"group": "235ff79be71d747f",
|
|
"order": 1,
|
|
"width": "17",
|
|
"height": "1"
|
|
},
|
|
{
|
|
"id": "9bd08ee53d03a9b0",
|
|
"type": "ui_group",
|
|
"name": "ManualSwitchPenyaluranAir",
|
|
"tab": "65bc4cc8232c59ee",
|
|
"order": 5,
|
|
"disp": true,
|
|
"width": "10",
|
|
"collapse": false,
|
|
"className": ""
|
|
},
|
|
{
|
|
"id": "095f46f867d32241",
|
|
"type": "mqtt-broker",
|
|
"name": "tugasakhir",
|
|
"broker": "54.251.81.137",
|
|
"port": "1883",
|
|
"clientid": "",
|
|
"autoConnect": true,
|
|
"usetls": false,
|
|
"protocolVersion": "4",
|
|
"keepalive": "60",
|
|
"cleansession": true,
|
|
"autoUnsubscribe": true,
|
|
"birthTopic": "",
|
|
"birthQos": "0",
|
|
"birthRetain": "false",
|
|
"birthPayload": "",
|
|
"birthMsg": {},
|
|
"closeTopic": "",
|
|
"closeQos": "0",
|
|
"closeRetain": "false",
|
|
"closePayload": "",
|
|
"closeMsg": {},
|
|
"willTopic": "",
|
|
"willQos": "0",
|
|
"willRetain": "false",
|
|
"willPayload": "",
|
|
"willMsg": {},
|
|
"userProps": "",
|
|
"sessionExpiry": ""
|
|
},
|
|
{
|
|
"id": "4db64a673b50612d",
|
|
"type": "ui_group",
|
|
"name": "Monitoring",
|
|
"tab": "65bc4cc8232c59ee",
|
|
"order": 1,
|
|
"disp": true,
|
|
"width": 10,
|
|
"collapse": false,
|
|
"className": ""
|
|
},
|
|
{
|
|
"id": "f0dc88d52a8e97e0",
|
|
"type": "ui_group",
|
|
"name": "Pemilihanmode",
|
|
"tab": "65bc4cc8232c59ee",
|
|
"order": 3,
|
|
"disp": true,
|
|
"width": "10",
|
|
"collapse": false,
|
|
"className": ""
|
|
},
|
|
{
|
|
"id": "235ff79be71d747f",
|
|
"type": "ui_group",
|
|
"name": "Visual",
|
|
"tab": "65bc4cc8232c59ee",
|
|
"order": 2,
|
|
"disp": true,
|
|
"width": 20,
|
|
"collapse": false,
|
|
"className": ""
|
|
},
|
|
{
|
|
"id": "65bc4cc8232c59ee",
|
|
"type": "ui_tab",
|
|
"name": "PenyaluranAirOtomatis",
|
|
"icon": "dashboard",
|
|
"order": 1,
|
|
"disabled": false,
|
|
"hidden": false
|
|
}
|
|
] |