Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Arduino IoT Cloud - Node-RED Sample Flow
[
{
"id": "aba1269b.035938",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": ""
},
{
"id": "c928098d.1cced8",
"type": "property in",
"z": "aba1269b.035938",
"connection": "d5f296d3.8fffa8",
"thing": "90100dd9-1089-401f-a10f-1c967cbcbd77",
"property": "9e6bcc43-1a41-45c1-972b-64fa776bd004",
"name": "Luminosity",
"propname": "Luminosity",
"defaultname": true,
"variableName": "luminosity",
"x": 240,
"y": 260,
"wires": [
[
"6940f8bf.710378"
]
]
},
{
"id": "f7ec32f5.b4c44",
"type": "property out",
"z": "aba1269b.035938",
"connection": "d5f296d3.8fffa8",
"thing": "3ebeb5a3-1c08-4586-93b6-16ed6aa17678",
"property": "e03c92c4-fe0f-421d-8b9f-52f421a0c3be",
"name": "LED Switch",
"propname": "LED Switch",
"defaultname": true,
"x": 990,
"y": 260,
"wires": []
},
{
"id": "6940f8bf.710378",
"type": "switch",
"z": "aba1269b.035938",
"name": "Logical Switch",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "gte",
"v": "300",
"vt": "num"
},
{
"t": "lt",
"v": "300",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 460,
"y": 260,
"wires": [
[
"137c85f1.e0825a"
],
[
"c492b823.0b1bd8"
]
]
},
{
"id": "137c85f1.e0825a",
"type": "change",
"z": "aba1269b.035938",
"name": "Activate Switch",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "true",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 720,
"y": 180,
"wires": [
[
"f7ec32f5.b4c44"
]
]
},
{
"id": "c492b823.0b1bd8",
"type": "change",
"z": "aba1269b.035938",
"name": "Deactivate Switch",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "false",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 730,
"y": 340,
"wires": [
[
"f7ec32f5.b4c44"
]
]
},
{
"id": "d5f296d3.8fffa8",
"type": "arduino-connection",
"z": "",
"applicationname": "mastrolinux"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment