Skip to content

Instantly share code, notes, and snippets.

@Magoninho
Created April 18, 2024 22:20
Show Gist options
  • Save Magoninho/1902eccbf301a6935fb0a44e7cb31d04 to your computer and use it in GitHub Desktop.
Save Magoninho/1902eccbf301a6935fb0a44e7cb31d04 to your computer and use it in GitHub Desktop.
[
{
"id": "29995f86e5eca604",
"type": "tab",
"label": "Fluxo 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "fc1a669b67dadc3f",
"type": "mqtt in",
"z": "29995f86e5eca604",
"name": "Trancas das bikes",
"topic": "bicicletar/tranca",
"qos": "2",
"datatype": "auto-detect",
"broker": "3c3e9492af5ffa58",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 470,
"y": 540,
"wires": [
[
"544ac130df0a6f6c"
]
]
},
{
"id": "d4384f7c715f24b3",
"type": "mqtt out",
"z": "29995f86e5eca604",
"name": "Trancas das bikes",
"topic": "bicicletar/tranca",
"qos": "",
"retain": "",
"respTopic": "",
"contentType": "",
"userProps": "",
"correl": "",
"expiry": "",
"broker": "3c3e9492af5ffa58",
"x": 1550,
"y": 540,
"wires": []
},
{
"id": "715eb6cf57d549c9",
"type": "ui_button",
"z": "29995f86e5eca604",
"name": "1",
"group": "782d2a0fef915644",
"order": 0,
"width": 0,
"height": 0,
"passthru": false,
"label": "1",
"tooltip": "",
"color": "",
"bgcolor": "",
"icon": "",
"payload": "a",
"payloadType": "str",
"topic": "topic",
"topicType": "msg",
"x": 1270,
"y": 480,
"wires": [
[
"d4384f7c715f24b3"
]
]
},
{
"id": "08a612156578be89",
"type": "ui_button",
"z": "29995f86e5eca604",
"name": "2",
"group": "782d2a0fef915644",
"order": 0,
"width": 0,
"height": 0,
"passthru": false,
"label": "2",
"tooltip": "",
"color": "",
"bgcolor": "",
"icon": "",
"payload": "b",
"payloadType": "str",
"topic": "topic",
"topicType": "msg",
"x": 1270,
"y": 600,
"wires": [
[
"d4384f7c715f24b3"
]
]
},
{
"id": "9e4cc73daeead4a1",
"type": "change",
"z": "29995f86e5eca604",
"name": "Bloquear botão",
"rules": [
{
"t": "set",
"p": "enabled",
"pt": "msg",
"to": "false",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1020,
"y": 440,
"wires": [
[
"715eb6cf57d549c9"
]
]
},
{
"id": "544ac130df0a6f6c",
"type": "switch",
"z": "29995f86e5eca604",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "L1",
"vt": "str"
},
{
"t": "eq",
"v": "T1",
"vt": "str"
},
{
"t": "eq",
"v": "L2",
"vt": "str"
},
{
"t": "eq",
"v": "T2",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 4,
"x": 710,
"y": 540,
"wires": [
[
"9e4cc73daeead4a1"
],
[
"0f0929f0f1b420dd"
],
[
"d921611428c17d4a"
],
[
"f64639387d27a628"
]
]
},
{
"id": "d921611428c17d4a",
"type": "change",
"z": "29995f86e5eca604",
"name": "Bloquear botão",
"rules": [
{
"t": "set",
"p": "enabled",
"pt": "msg",
"to": "false",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1020,
"y": 560,
"wires": [
[
"08a612156578be89"
]
]
},
{
"id": "0f0929f0f1b420dd",
"type": "change",
"z": "29995f86e5eca604",
"name": "Desbloquear botão",
"rules": [
{
"t": "set",
"p": "enabled",
"pt": "msg",
"to": "true",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1030,
"y": 500,
"wires": [
[
"715eb6cf57d549c9"
]
]
},
{
"id": "f64639387d27a628",
"type": "change",
"z": "29995f86e5eca604",
"name": "Desbloquear botão",
"rules": [
{
"t": "set",
"p": "enabled",
"pt": "msg",
"to": "true",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1030,
"y": 620,
"wires": [
[
"08a612156578be89"
]
]
},
{
"id": "3c3e9492af5ffa58",
"type": "mqtt-broker",
"name": "",
"broker": "broker.hivemq.com",
"port": "1883",
"clientid": "CALUDgcxhh",
"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": "782d2a0fef915644",
"type": "ui_group",
"name": "Bicicletar",
"tab": "9a27508b728ec17d",
"order": 1,
"disp": true,
"width": "6",
"collapse": false
},
{
"id": "9a27508b728ec17d",
"type": "ui_tab",
"name": "Bicicletar",
"icon": "home",
"disabled": false,
"hidden": false
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment