Smick_000_console_v10

Smick console

[
    {
        "id": "1ba9c7f9.3fbaf8",
        "type": "subflow",
        "name": "Smick command",
        "info": "Send commands to Smick.",
        "in": [
            {
                "x": 160,
                "y": 120,
                "wires": [
                    {
                        "id": "8f9fba0e.9b5ee8"
                    }
                ]
            }
        ],
        "out": []
    },
    {
        "id": "9f619cec.f4d3d",
        "type": "mqtt out",
        "z": "1ba9c7f9.3fbaf8",
        "name": "smick cmd",
        "topic": "borot/feeds/I3300460880",
        "qos": "0",
        "retain": "true",
        "broker": "f1f7b732.115e58",
        "x": 610,
        "y": 160,
        "wires": []
    },
    {
        "id": "309c3fd0.df31d",
        "type": "debug",
        "z": "1ba9c7f9.3fbaf8",
        "name": "command",
        "active": true,
        "console": "false",
        "complete": "payload",
        "x": 600,
        "y": 80,
        "wires": []
    },
    {
        "id": "8f9fba0e.9b5ee8",
        "type": "ui_text_input",
        "z": "1ba9c7f9.3fbaf8",
        "name": "",
        "label": "command",
        "group": "88009d74.33b17",
        "order": 1,
        "width": "0",
        "height": "0",
        "passthru": true,
        "mode": "text",
        "delay": "0",
        "topic": "",
        "x": 360,
        "y": 120,
        "wires": [
            [
                "9f619cec.f4d3d",
                "309c3fd0.df31d"
            ]
        ]
    },
    {
        "id": "9c81f388.77cf",
        "type": "comment",
        "z": "1ba9c7f9.3fbaf8",
        "name": "Description",
        "info": "Smick_001_console_v4\n_______________________________________________________________________________\nPackage : Smick v.1\nModule  : console\nAuthor  : Curci\nLicence : (CC) BY-NC-SA\n\nThis work is licensed under a Creative Commons \nAttribution-NonCommercial-ShareAlike \n4.0 International License.\n\nHistory\n\nDate        Author  Description\n2016.12.26  Curci   genesis\n_______________________________________________________________________________\n\nDescription\n\nQuesto flusso costruisce un cruscotto console per interagire con smick tramite feed mqtt.\nSi possono inviare comandi sul feed di input di smick e ricevere risposte o eventi dal feed di output di smick.\nContiene inoltre un nodo link di input per consentire ad altri flussi l'invio di comandi e un nodo link di output per smistare risposte/eventi ricevuti ad altri flussi.\nInfine i messaggi inviati e le risposte / eventi ricevuti sono elencati su debug tab mediante nodi debug.\n\n\nThis flow builds a dashboard console to interact with Smick through MQTT feed.\nYou can send commands on Smick input feed and receive answers or events from Smick output feed.\nIt also contains an input node link to allow other flows sending commands and an output node link to direct responses / events received to other flows.\nFinally sent messages and replies / received events are listed on debug tab using debug nodes.\n\n_______________________________________________________________________________\n\nBill Of Material\n\nHardware:\n\n    1 Human internet terminal (PC, tablet or smartphone) connected to the internet\n    1 Smick Wi-Fi connected to the internet\n\nHW Connections:\n\n    None.\n\nFlow Connections:\n\n    None\n\nAccount:\n\n    Wi-Fi router\n    MQTT broker\n    FRED\n",
        "x": 140,
        "y": 40,
        "wires": []
    },
    {
        "id": "f1f7b732.115e58",
        "type": "mqtt-broker",
        "z": "",
        "broker": "io.adafruit.com",
        "port": "1883",
        "clientid": "",
        "usetls": false,
        "compatmode": true,
        "keepalive": "300",
        "cleansession": true,
        "willTopic": "",
        "willQos": "0",
        "willPayload": "",
        "birthTopic": "",
        "birthQos": "0",
        "birthPayload": ""
    },
    {
        "id": "88009d74.33b17",
        "type": "ui_group",
        "z": "",
        "name": "console",
        "tab": "40942cd6.be4c24",
        "order": 1,
        "disp": true,
        "width": "6"
    },
    {
        "id": "40942cd6.be4c24",
        "type": "ui_tab",
        "z": "",
        "name": "Console",
        "icon": "dashboard",
        "order": 1
    },
    {
        "id": "fd1f1b6f.c91058",
        "type": "subflow",
        "name": "Smick status",
        "info": "Detect Smick connection status.",
        "in": [
            {
                "x": 180,
                "y": 140,
                "wires": [
                    {
                        "id": "25c31110.a2043e"
                    }
                ]
            }
        ],
        "out": [
            {
                "x": 680,
                "y": 60,
                "wires": [
                    {
                        "id": "32f07919.263da6",
                        "port": 0
                    }
                ]
            }
        ]
    },
    {
        "id": "1ad6e63c.ea985a",
        "type": "ui_text",
        "z": "fd1f1b6f.c91058",
        "group": "88009d74.33b17",
        "order": 0,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "status: ",
        "format": "{{msg.payload}}",
        "layout": "row-center",
        "x": 690,
        "y": 140,
        "wires": []
    },
    {
        "id": "25c31110.a2043e",
        "type": "switch",
        "z": "fd1f1b6f.c91058",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "DISC",
                "vt": "str"
            },
            {
                "t": "else"
            }
        ],
        "checkall": "true",
        "outputs": 2,
        "x": 310,
        "y": 140,
        "wires": [
            [
                "114161f9.cd266e",
                "32f07919.263da6"
            ],
            [
                "d854a2bb.de28d"
            ]
        ]
    },
    {
        "id": "114161f9.cd266e",
        "type": "change",
        "z": "fd1f1b6f.c91058",
        "name": "disconnected",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "disconnected",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 510,
        "y": 140,
        "wires": [
            [
                "1ad6e63c.ea985a"
            ]
        ]
    },
    {
        "id": "d854a2bb.de28d",
        "type": "change",
        "z": "fd1f1b6f.c91058",
        "name": "connected",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "connected",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 510,
        "y": 200,
        "wires": [
            [
                "1ad6e63c.ea985a"
            ]
        ]
    },
    {
        "id": "32f07919.263da6",
        "type": "change",
        "z": "fd1f1b6f.c91058",
        "name": "connected",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "PING",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 510,
        "y": 60,
        "wires": [
            []
        ]
    },
    {
        "id": "88009d74.33b17",
        "type": "ui_group",
        "z": "",
        "name": "console",
        "tab": "40942cd6.be4c24",
        "order": 1,
        "disp": true,
        "width": "6"
    },
    {
        "id": "40942cd6.be4c24",
        "type": "ui_tab",
        "z": "",
        "name": "Console",
        "icon": "dashboard",
        "order": 1
    },
    {
        "id": "9b350d38.8dc94",
        "type": "subflow",
        "name": "Smick event",
        "info": "Receive command responses or events from Smick.",
        "in": [],
        "out": [
            {
                "x": 660,
                "y": 180,
                "wires": [
                    {
                        "id": "1bf140ce.9f285f",
                        "port": 0
                    }
                ]
            }
        ]
    },
    {
        "id": "fedfcf8.3050c3",
        "type": "ui_text",
        "z": "9b350d38.8dc94",
        "group": "88009d74.33b17",
        "order": 2,
        "width": "0",
        "height": "0",
        "name": "",
        "label": "response/event",
        "format": "{{msg.payload}}",
        "layout": "col-center",
        "x": 460,
        "y": 240,
        "wires": []
    },
    {
        "id": "1bf140ce.9f285f",
        "type": "mqtt in",
        "z": "9b350d38.8dc94",
        "name": "mqtt res/eve",
        "topic": "borot/feeds/O3300460880",
        "qos": "0",
        "broker": "f1f7b732.115e58",
        "x": 210,
        "y": 180,
        "wires": [
            [
                "fedfcf8.3050c3",
                "516a5287.38028c"
            ]
        ]
    },
    {
        "id": "516a5287.38028c",
        "type": "debug",
        "z": "9b350d38.8dc94",
        "name": "response/event",
        "active": true,
        "console": "false",
        "complete": "payload",
        "x": 460,
        "y": 120,
        "wires": []
    },
    {
        "id": "88009d74.33b17",
        "type": "ui_group",
        "z": "",
        "name": "console",
        "tab": "40942cd6.be4c24",
        "order": 1,
        "disp": true,
        "width": "6"
    },
    {
        "id": "f1f7b732.115e58",
        "type": "mqtt-broker",
        "z": "",
        "broker": "io.adafruit.com",
        "port": "1883",
        "clientid": "",
        "usetls": false,
        "compatmode": true,
        "keepalive": "300",
        "cleansession": true,
        "willTopic": "",
        "willQos": "0",
        "willPayload": "",
        "birthTopic": "",
        "birthQos": "0",
        "birthPayload": ""
    },
    {
        "id": "40942cd6.be4c24",
        "type": "ui_tab",
        "z": "",
        "name": "Console",
        "icon": "dashboard",
        "order": 1
    },
    {
        "id": "dcaac706.4d0188",
        "type": "subflow:9b350d38.8dc94",
        "z": "4913b9c6.f83e88",
        "x": 200,
        "y": 140,
        "wires": [
            [
                "c6af5d11.68a0d",
                "5a33c6d3.126368"
            ]
        ]
    },
    {
        "id": "c6af5d11.68a0d",
        "type": "subflow:fd1f1b6f.c91058",
        "z": "4913b9c6.f83e88",
        "x": 430,
        "y": 140,
        "wires": [
            [
                "fb7a3de8.0dcf6",
                "eaceff62.5dfb3"
            ]
        ]
    },
    {
        "id": "fb7a3de8.0dcf6",
        "type": "subflow:1ba9c7f9.3fbaf8",
        "z": "4913b9c6.f83e88",
        "x": 680,
        "y": 140,
        "wires": []
    },
    {
        "id": "eaceff62.5dfb3",
        "type": "link out",
        "z": "4913b9c6.f83e88",
        "name": "status",
        "links": [],
        "x": 615,
        "y": 260,
        "wires": []
    },
    {
        "id": "5a33c6d3.126368",
        "type": "link out",
        "z": "4913b9c6.f83e88",
        "name": "event",
        "links": [],
        "x": 375,
        "y": 260,
        "wires": []
    },
    {
        "id": "2490d579.44c81a",
        "type": "link in",
        "z": "4913b9c6.f83e88",
        "name": "command",
        "links": [],
        "x": 475,
        "y": 60,
        "wires": [
            [
                "fb7a3de8.0dcf6"
            ]
        ]
    },
    {
        "id": "3123addc.d70c32",
        "type": "comment",
        "z": "4913b9c6.f83e88",
        "name": "Description",
        "info": "Smick_000_console_v10\n_______________________________________________________________________________\nPackage : Smick v.1\nModule  : console\nAuthor  : Curci\nLicence : (CC) BY-NC-SA\n\nThis work is licensed under a Creative Commons \nAttribution-NonCommercial-ShareAlike \n4.0 International License.\n\nHistory\n\nDate        Author  Description\n2016.12.26  Curci   genesis\n_______________________________________________________________________________\n\nDescription\n\nQuesto flusso costruisce un cruscotto console per interagire con smick tramite feed mqtt.\nSi possono inviare comandi sul feed di input di smick e ricevere risposte o eventi dal feed di output di smick.\nContiene inoltre un nodo link di input per consentire ad altri flussi l'invio di comandi e un nodo link di output per smistare risposte/eventi ricevuti ad altri flussi.\nInfine i messaggi inviati e le risposte / eventi ricevuti sono elencati su debug tab mediante nodi debug.\n\n\nThis flow builds a dashboard console to interact with Smick through MQTT feed.\nYou can send commands on Smick input feed and receive answers or events from Smick output feed.\nIt also contains an input node link to allow other flows sending commands and an output node link to direct responses / events received to other flows.\nFinally sent messages and replies / received events are listed on debug tab using debug nodes.\n\n_______________________________________________________________________________\n\nBill Of Material\n\nHardware:\n\n    1 Human internet terminal (PC, tablet or smartphone) connected to the internet\n    1 Smick Wi-Fi connected to the internet\n\nHW Connections:\n\n    None.\n\nFlow Connections:\n\n    None\n\nAccount:\n\n    Wi-Fi router\n    MQTT broker\n    FRED\n",
        "x": 180,
        "y": 60,
        "wires": []
    }
]
infosmick

Flow Info

created 7 months, 1 week ago

Node Types

Core
  • change (x3)
  • comment (x2)
  • debug (x2)
  • mqtt in (x1)
  • mqtt out (x1)
  • mqtt-broker (x2)
  • switch (x1)
Other
  • link in (x1)
  • link out (x2)
  • subflow (x3)
  • subflow:1ba9c7f9.3fbaf8 (x1)
  • subflow:9b350d38.8dc94 (x1)
  • subflow:fd1f1b6f.c91058 (x1)
  • ui_group (x3)
  • ui_tab (x3)
  • ui_text (x2)
  • ui_text_input (x1)

Tags

Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option