Created
February 27, 2022 11:51
-
-
Save elzup/1443aae9a937ac271f65f29572921669 to your computer and use it in GitHub Desktop.
Node RED flow 5s to 1s pub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "877f0c504eb0eb9e", | |
"type": "websocket out", | |
"z": "bf3d520d6566704c", | |
"name": "", | |
"server": "b94d746ecdec7aad", | |
"client": "", | |
"x": 910, | |
"y": 220, | |
"wires": [] | |
}, | |
{ | |
"id": "624912bb9af5f558", | |
"type": "inject", | |
"z": "bf3d520d6566704c", | |
"name": "", | |
"props": [ | |
{ | |
"p": "payload" | |
}, | |
{ | |
"p": "topic", | |
"vt": "str" | |
} | |
], | |
"repeat": "5", | |
"crontab": "", | |
"once": false, | |
"onceDelay": 0.1, | |
"topic": "", | |
"payloadType": "date", | |
"x": 300, | |
"y": 220, | |
"wires": [ | |
[ | |
"075a56da4943aa68" | |
] | |
] | |
}, | |
{ | |
"id": "075a56da4943aa68", | |
"type": "change", | |
"z": "bf3d520d6566704c", | |
"name": "load flow.last", | |
"rules": [ | |
{ | |
"t": "set", | |
"p": "payload", | |
"pt": "msg", | |
"to": "last", | |
"tot": "flow" | |
} | |
], | |
"action": "", | |
"property": "", | |
"from": "", | |
"to": "", | |
"reg": false, | |
"x": 570, | |
"y": 220, | |
"wires": [ | |
[ | |
"877f0c504eb0eb9e" | |
] | |
] | |
}, | |
{ | |
"id": "9106f7b76d2502f6", | |
"type": "inject", | |
"z": "bf3d520d6566704c", | |
"name": "", | |
"props": [ | |
{ | |
"p": "payload" | |
}, | |
{ | |
"p": "topic", | |
"vt": "str" | |
} | |
], | |
"repeat": "1", | |
"crontab": "", | |
"once": false, | |
"onceDelay": 0.1, | |
"topic": "", | |
"payloadType": "date", | |
"x": 300, | |
"y": 160, | |
"wires": [ | |
[ | |
"6e1e7113dab20299" | |
] | |
] | |
}, | |
{ | |
"id": "6e1e7113dab20299", | |
"type": "change", | |
"z": "bf3d520d6566704c", | |
"name": "save flow.last", | |
"rules": [ | |
{ | |
"t": "set", | |
"p": "last", | |
"pt": "flow", | |
"to": "payload", | |
"tot": "msg" | |
} | |
], | |
"action": "", | |
"property": "", | |
"from": "", | |
"to": "", | |
"reg": false, | |
"x": 580, | |
"y": 160, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "b94d746ecdec7aad", | |
"type": "websocket-listener", | |
"path": "/ws/last", | |
"wholemsg": "false" | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment