Skip to content

Instantly share code, notes, and snippets.

@betahikaru
Created October 29, 2016 06:19
Show Gist options
  • Save betahikaru/bddf6032712722f399297724133e2a7e to your computer and use it in GitHub Desktop.
Save betahikaru/bddf6032712722f399297724133e2a7e to your computer and use it in GitHub Desktop.

Node-RED

install

npm install -g node-red
node-red

other

flow

  • http request/response
[
    {
        "id": "bb35b3f0.b2a2",
        "type": "http in",
        "z": "ed72fee5.a1274",
        "name": "",
        "url": "/hello",
        "method": "get",
        "swaggerDoc": "",
        "x": 77.5,
        "y": 67,
        "wires": [
            [
                "ed1c0614.d71ab8"
            ]
        ]
    },
    {
        "id": "c7d7c97c.5bf408",
        "type": "http response",
        "z": "ed72fee5.a1274",
        "name": "",
        "x": 502.5,
        "y": 72,
        "wires": []
    },
    {
        "id": "ed1c0614.d71ab8",
        "type": "json",
        "z": "ed72fee5.a1274",
        "name": "",
        "x": 271.5,
        "y": 69,
        "wires": [
            [
                "c7d7c97c.5bf408",
                "1905978f.f99698"
            ]
        ]
    }
]
  • twitter
[
    {
        "id": "8dcbe6a2.6ccd48",
        "type": "debug",
        "z": "ed72fee5.a1274",
        "name": "",
        "active": true,
        "console": "false",
        "complete": "false",
        "x": 524.5,
        "y": 199,
        "wires": []
    },
    {
        "id": "b9a93f64.c92b7",
        "type": "twitter in",
        "z": "ed72fee5.a1274",
        "twitter": "",
        "tags": "node-red",
        "user": "false",
        "name": "",
        "topic": "tweets",
        "inputs": 0,
        "x": 74.5,
        "y": 199,
        "wires": [
            [
                "8dcbe6a2.6ccd48"
            ]
        ]
    }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment