94 lines
1.8 KiB
JSON
94 lines
1.8 KiB
JSON
{
|
|
"id": "167",
|
|
"name": "Smart Factory Data Generator",
|
|
"nodes": [
|
|
{
|
|
"name": "Set",
|
|
"type": "n8n-nodes-base.set",
|
|
"position": [
|
|
650,
|
|
300
|
|
],
|
|
"parameters": {
|
|
"values": {
|
|
"number": [],
|
|
"string": [
|
|
{
|
|
"name": "machine_id.name",
|
|
"value": "n8n_cr8"
|
|
},
|
|
{
|
|
"name": "temperature_celsius",
|
|
"value": "={{Math.floor(Math.random() * 100);}}"
|
|
},
|
|
{
|
|
"name": "machine_id.uptime",
|
|
"value": "={{Math.floor(Math.random() * 100);}}"
|
|
},
|
|
{
|
|
"name": "time_stamp",
|
|
"value": "={{Date.now();}}"
|
|
}
|
|
],
|
|
"boolean": []
|
|
},
|
|
"options": {}
|
|
},
|
|
"typeVersion": 1
|
|
},
|
|
{
|
|
"name": "Interval",
|
|
"type": "n8n-nodes-base.interval",
|
|
"position": [
|
|
450,
|
|
300
|
|
],
|
|
"parameters": {},
|
|
"typeVersion": 1
|
|
},
|
|
{
|
|
"name": "AMQP Sender",
|
|
"type": "n8n-nodes-base.amqp",
|
|
"position": [
|
|
850,
|
|
300
|
|
],
|
|
"parameters": {
|
|
"sink": "berlin_factory_01",
|
|
"options": {
|
|
"dataAsObject": true
|
|
}
|
|
},
|
|
"credentials": {
|
|
"amqp": ""
|
|
},
|
|
"typeVersion": 1
|
|
}
|
|
],
|
|
"active": false,
|
|
"settings": {},
|
|
"connections": {
|
|
"Set": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "AMQP Sender",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Interval": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Set",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
}
|
|
}
|
|
} |