Node-RED Actyx Pond V2 integration
Node-red contribution to write you fish as nodes or emit events to ActyxOS
installation:
-
Install in node red:
Menu
->Manage Pallet
->Install
->@actyx-contrib/node-red-contrib-actyx-pond
-
Install in node-project:
npm install @actyx-contrib/node-red-contrib-actyx-pond
New Nodes
Fore new nodes are added to node-red in the 'Actyx Pond' Category
- Pond Emit
- Fish
- Pond Observe
- Pond Observe
Pond Emit:
Behaves like
Pond.emit(tag, payload).
msg.payload
is used as the payload of the published event.
If the tags
are defined as mustache template it is rendered with the data in the msg
(e.g.: {{topic}} machine:{{payload.name}})
You will finde more details in the Node Help.
Fish:
Behaves like
Fish<State, Event>
Fish definition for Pond Observe Fish
Except from the FishId.version, all fields support mustache as template engine (e.g.: Name: {{payload.name}})
You will finde more details in the Node Help.
Pond Observe Fish:
Behaves like
Pond.observe(Fish(parameter), onStateChanged).
Observe the fish
in the input signal and emit signals when the fish state
changes.
Use the Fish
node to inject a fish property into the signal
You will finde more details in the Node Help.
Pond Observe:
Behaves like
Pond.observe(Fish, onStateChanged).
Combines Fish and observe Fish in one node. This Node do not support inputs and can be used for singleton fish.
You will finde more details in the Node Help.