Skip to content

Instantly share code, notes, and snippets.

@genecyber
Created November 15, 2015 06:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save genecyber/b23955eed2697aa4ed39 to your computer and use it in GitHub Desktop.
Save genecyber/b23955eed2697aa4ed39 to your computer and use it in GitHub Desktop.
[
{
"id": "e7d36084.182ca",
"type": "subflow",
"name": "Watch total received",
"info": "",
"in": [
{
"x": 517,
"y": 289,
"wires": [
{
"id": "37a51a87.c85ae6"
}
]
}
],
"out": [
{
"x": 1011,
"y": 289,
"wires": [
{
"id": "1aae5633.e551aa",
"port": 0
}
]
}
]
},
{
"id": "1aae5633.e551aa",
"type": "rbe",
"z": "e7d36084.182ca",
"name": "",
"func": "rbe",
"gap": "45%",
"x": 881,
"y": 289,
"wires": [
[
]
]
},
{
"id": "37a51a87.c85ae6",
"type": "change",
"z": "e7d36084.182ca",
"name": "Watch for totalReceived",
"rules": [
{
"t": "set",
"p": "data",
"to": "msg.payload"
},
{
"t": "set",
"p": "payload",
"to": "msg.payload.totalReceived"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 701,
"y": 289,
"wires": [
[
"1aae5633.e551aa"
]
]
},
{
"id": "cc6924c6.3396d8",
"type": "subflow",
"name": "Address History",
"info": "",
"in": [
{
"x": -23.5,
"y": 549,
"wires": [
{
"id": "d2c59ae5.2d3a68"
}
]
}
],
"out": [
{
"x": 1247.5,
"y": 465,
"wires": [
{
"id": "2d748120.d28b7e",
"port": 0
}
]
}
]
},
{
"id": "f67c899c.098378",
"type": "template",
"z": "cc6924c6.3396d8",
"name": "Combine pieces into url",
"field": "payload",
"format": "json",
"template": "\"{{{base}}}{{{endpoint}}}{{{address}}}\"",
"x": 629,
"y": 549,
"wires": [
[
"198fa2ef.e6705d"
]
]
},
{
"id": "d2c59ae5.2d3a68",
"type": "change",
"z": "cc6924c6.3396d8",
"name": "Address Endpoint",
"rules": [
{
"t": "set",
"p": "endpoint",
"to": "\/addr\/"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 141,
"y": 549,
"wires": [
[
"e6428e35.19bd7"
]
]
},
{
"id": "b275a58d.4d8a58",
"type": "change",
"z": "cc6924c6.3396d8",
"name": "Address",
"rules": [
{
"t": "set",
"p": "address",
"to": "msg.payload"
},
{
"t": "delete",
"p": "payload"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 444,
"y": 549,
"wires": [
[
"f67c899c.098378"
]
]
},
{
"id": "e6428e35.19bd7",
"type": "change",
"z": "cc6924c6.3396d8",
"name": "Base",
"rules": [
{
"t": "set",
"p": "base",
"to": "http:\/\/104.236.100.208:3055\/api"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 311,
"y": 549,
"wires": [
[
"b275a58d.4d8a58"
]
]
},
{
"id": "2d748120.d28b7e",
"type": "http request",
"z": "cc6924c6.3396d8",
"name": "Perform Call",
"method": "GET",
"ret": "obj",
"url": "",
"x": 1205,
"y": 549,
"wires": [
[
]
]
},
{
"id": "38706bb5.c78f94",
"type": "change",
"z": "cc6924c6.3396d8",
"name": "Make Url Property",
"rules": [
{
"t": "set",
"p": "url",
"to": "msg.payload"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1030,
"y": 549,
"wires": [
[
"2d748120.d28b7e"
]
]
},
{
"id": "198fa2ef.e6705d",
"type": "json",
"z": "cc6924c6.3396d8",
"name": "Parse into JSON",
"x": 837,
"y": 549,
"wires": [
[
"38706bb5.c78f94"
]
]
},
{
"id": "3e2a77cb.c1d588",
"type": "inject",
"z": "39f7bd16.c60842",
"name": "Inject Address",
"topic": "",
"payload": "Rh2ohZHLWQ9Fkigk589VpTdDT13PrPtomW",
"payloadType": "string",
"repeat": "15",
"crontab": "",
"once": true,
"x": 241,
"y": 221,
"wires": [
[
"f3496b85.0cb698"
]
]
},
{
"id": "717cd250.8e832c",
"type": "debug",
"z": "39f7bd16.c60842",
"name": "",
"active": true,
"console": "false",
"complete": "true",
"x": 917,
"y": 181,
"wires": [
]
},
{
"id": "f3496b85.0cb698",
"type": "subflow:cc6924c6.3396d8",
"z": "39f7bd16.c60842",
"name": "Get Address History",
"x": 438,
"y": 187,
"wires": [
[
"6ac780b0.95388"
]
]
},
{
"id": "6ac780b0.95388",
"type": "subflow:e7d36084.182ca",
"z": "39f7bd16.c60842",
"name": "Wait for total received increase",
"x": 691,
"y": 269,
"wires": [
[
"717cd250.8e832c"
]
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment