main.json: add machine name and output disable for steppers

This commit is contained in:
Romain Bazile 2020-11-24 16:23:58 +01:00
parent 3bb27b9e15
commit b57de2220d

View file

@ -36,23 +36,7 @@
"name": "Acquisition inputs", "name": "Acquisition inputs",
"info": "", "info": "",
"category": "", "category": "",
"in": [ "in": [],
{
"x": 40,
"y": 40,
"wires": [
{
"id": "8887f3e7.e79b5"
},
{
"id": "14be4afa.2ba67d"
},
{
"id": "600c2b46.83db14"
}
]
}
],
"out": [ "out": [
{ {
"x": 740, "x": 740,
@ -289,20 +273,7 @@
"name": "Pump actuation", "name": "Pump actuation",
"info": "", "info": "",
"category": "", "category": "",
"in": [ "in": [],
{
"x": 40,
"y": 40,
"wires": [
{
"id": "cc757614.c8fc58"
},
{
"id": "8ae06f9a.4b253"
}
]
}
],
"out": [ "out": [
{ {
"x": 700, "x": 700,
@ -329,21 +300,11 @@
"name": "Focus actuation", "name": "Focus actuation",
"info": "", "info": "",
"category": "", "category": "",
"in": [ "in": [],
{
"x": 40,
"y": 40,
"wires": [
{
"id": "411211be.745ef8"
}
]
}
],
"out": [ "out": [
{ {
"x": 1040, "x": 1040,
"y": 40, "y": 100,
"wires": [ "wires": [
{ {
"id": "b69e435f.b93558", "id": "b69e435f.b93558",
@ -477,7 +438,7 @@
"z": "", "z": "",
"name": "Monitor RPi", "name": "Monitor RPi",
"tab": "a3de84cd.c01b6", "tab": "a3de84cd.c01b6",
"order": 13, "order": 3,
"disp": true, "disp": true,
"width": "24", "width": "24",
"collapse": false "collapse": false
@ -735,11 +696,11 @@
"id": "adcd0ef7.81a7f8", "id": "adcd0ef7.81a7f8",
"type": "ui_group", "type": "ui_group",
"z": "", "z": "",
"name": "RPi commands", "name": "RPi commands (DANGER ZONE)",
"tab": "a3de84cd.c01b6", "tab": "a3de84cd.c01b6",
"order": 1, "order": 2,
"disp": true, "disp": true,
"width": 13, "width": "24",
"collapse": false "collapse": false
}, },
{ {
@ -764,24 +725,6 @@
"width": "24", "width": "24",
"collapse": true "collapse": true
}, },
{
"id": "f1dc35d9.99b9f8",
"type": "ui_spacer",
"name": "spacer",
"group": "adcd0ef7.81a7f8",
"order": 2,
"width": 13,
"height": 1
},
{
"id": "248136a7.29b74a",
"type": "ui_spacer",
"name": "spacer",
"group": "adcd0ef7.81a7f8",
"order": 4,
"width": 5,
"height": 1
},
{ {
"id": "7b7849e8.363288", "id": "7b7849e8.363288",
"type": "ui_group", "type": "ui_group",
@ -805,7 +748,7 @@
"collapse": true "collapse": true
}, },
{ {
"id": "2c0efb95.057c34", "id": "75af537.47398ac",
"type": "ui_spacer", "type": "ui_spacer",
"name": "spacer", "name": "spacer",
"group": "de7c8e82.7faa98", "group": "de7c8e82.7faa98",
@ -814,7 +757,7 @@
"height": 1 "height": 1
}, },
{ {
"id": "ddb0b515.5183c8", "id": "3ba80beb.b6b564",
"type": "ui_spacer", "type": "ui_spacer",
"name": "spacer", "name": "spacer",
"group": "de7c8e82.7faa98", "group": "de7c8e82.7faa98",
@ -822,6 +765,35 @@
"width": 10, "width": 10,
"height": 1 "height": 1
}, },
{
"id": "411742cf.3abb8c",
"type": "ui_group",
"z": "",
"name": "Machine Name",
"tab": "a3de84cd.c01b6",
"order": 1,
"disp": true,
"width": "24",
"collapse": false
},
{
"id": "fa24782f.abed2",
"type": "ui_spacer",
"name": "spacer",
"group": "adcd0ef7.81a7f8",
"order": 2,
"width": 24,
"height": 1
},
{
"id": "f36716e2.a9898",
"type": "ui_spacer",
"name": "spacer",
"group": "adcd0ef7.81a7f8",
"order": 4,
"width": 9,
"height": 1
},
{ {
"id": "98b8d88c.dc5d", "id": "98b8d88c.dc5d",
"type": "exec", "type": "exec",
@ -848,6 +820,18 @@
"type": "inject", "type": "inject",
"z": "21b3da63.2cef2e", "z": "21b3da63.2cef2e",
"name": "", "name": "",
"props": [
{
"p": "payload",
"v": "",
"vt": "num"
},
{
"p": "topic",
"v": "",
"vt": "string"
}
],
"repeat": "1", "repeat": "1",
"crontab": "", "crontab": "",
"once": false, "once": false,
@ -2107,8 +2091,8 @@
"z": "9c3e6ad4.7471a8", "z": "9c3e6ad4.7471a8",
"name": "", "name": "",
"group": "adcd0ef7.81a7f8", "group": "adcd0ef7.81a7f8",
"order": 3, "order": 5,
"width": 4, "width": 7,
"height": 1, "height": 1,
"passthru": false, "passthru": false,
"label": "Reboot", "label": "Reboot",
@ -2138,7 +2122,7 @@
"timer": "2", "timer": "2",
"oldrc": false, "oldrc": false,
"name": "cmd", "name": "cmd",
"x": 530, "x": 550,
"y": 80, "y": 80,
"wires": [ "wires": [
[], [],
@ -2152,8 +2136,8 @@
"z": "9c3e6ad4.7471a8", "z": "9c3e6ad4.7471a8",
"name": "", "name": "",
"group": "adcd0ef7.81a7f8", "group": "adcd0ef7.81a7f8",
"order": 5, "order": 3,
"width": 4, "width": 8,
"height": 1, "height": 1,
"passthru": false, "passthru": false,
"label": "Shutdown", "label": "Shutdown",
@ -2164,7 +2148,7 @@
"payload": "shutdown", "payload": "shutdown",
"payloadType": "str", "payloadType": "str",
"topic": "shutdown", "topic": "shutdown",
"x": 230, "x": 240,
"y": 160, "y": 160,
"wires": [ "wires": [
[ [
@ -2199,7 +2183,7 @@
"timer": "1", "timer": "1",
"oldrc": false, "oldrc": false,
"name": "i2c update", "name": "i2c update",
"x": 550, "x": 560,
"y": 160, "y": 160,
"wires": [ "wires": [
[], [],
@ -2615,7 +2599,7 @@
"func": "msg.payload = msg.payload.acq_id+1;\nreturn msg;", "func": "msg.payload = msg.payload.acq_id+1;\nreturn msg;",
"outputs": 1, "outputs": 1,
"noerr": 0, "noerr": 0,
"x": 210, "x": 200,
"y": 40, "y": 40,
"wires": [ "wires": [
[ [
@ -2711,6 +2695,8 @@
"func": "msg.payload = msg.payload.acq_fnumber_objective;\nreturn msg;", "func": "msg.payload = msg.payload.acq_fnumber_objective;\nreturn msg;",
"outputs": 1, "outputs": 1,
"noerr": 0, "noerr": 0,
"initialize": "",
"finalize": "",
"x": 260, "x": 260,
"y": 360, "y": 360,
"wires": [ "wires": [
@ -2990,28 +2976,12 @@
"mode": "number", "mode": "number",
"delay": 300, "delay": 300,
"topic": "pump_manual_volume", "topic": "pump_manual_volume",
"x": 510, "x": 500,
"y": 80, "y": 80,
"wires": [ "wires": [
[] []
] ]
}, },
{
"id": "8ae06f9a.4b253",
"type": "function",
"z": "977131e7.c2e76",
"name": "get pump_manual_volume",
"func": "msg.payload = msg.payload.pump_manual_volume;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 220,
"y": 80,
"wires": [
[
"f1b85f22.ac673"
]
]
},
{ {
"id": "b8bf2a9.be099d8", "id": "b8bf2a9.be099d8",
"type": "ui_slider", "type": "ui_slider",
@ -3035,22 +3005,6 @@
[] []
] ]
}, },
{
"id": "cc757614.c8fc58",
"type": "function",
"z": "977131e7.c2e76",
"name": "get pump_flowrate",
"func": "msg.payload = msg.payload.pump_flowrate;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 190,
"y": 40,
"wires": [
[
"b8bf2a9.be099d8"
]
]
},
{ {
"id": "f49b3397.2599f8", "id": "f49b3397.2599f8",
"type": "ui_text_input", "type": "ui_text_input",
@ -3074,25 +3028,6 @@
] ]
] ]
}, },
{
"id": "411211be.745ef8",
"type": "function",
"z": "a0f9bde.423644",
"name": "get focus_distance",
"func": "msg.payload = msg.payload.focus_distance;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 220,
"y": 40,
"wires": [
[
"f49b3397.2599f8",
"d9930546.489a58"
]
]
},
{ {
"id": "30718b7.3986b74", "id": "30718b7.3986b74",
"type": "ui_button", "type": "ui_button",
@ -3276,7 +3211,7 @@
"label": "Name of the ship", "label": "Name of the ship",
"tooltip": "", "tooltip": "",
"group": "71c63dd4.311c44", "group": "71c63dd4.311c44",
"order": 3, "order": 4,
"width": 0, "width": 0,
"height": 0, "height": 0,
"passthru": true, "passthru": true,
@ -3298,7 +3233,7 @@
"tooltip": "", "tooltip": "",
"place": "Select", "place": "Select",
"group": "71c63dd4.311c44", "group": "71c63dd4.311c44",
"order": 5, "order": 6,
"width": 0, "width": 0,
"height": 0, "height": 0,
"passthru": true, "passthru": true,
@ -3346,7 +3281,7 @@
"label": "Name of the operator", "label": "Name of the operator",
"tooltip": "", "tooltip": "",
"group": "71c63dd4.311c44", "group": "71c63dd4.311c44",
"order": 4, "order": 5,
"width": 0, "width": 0,
"height": 0, "height": 0,
"passthru": true, "passthru": true,
@ -3367,7 +3302,7 @@
"label": "Name of the project*", "label": "Name of the project*",
"tooltip": "", "tooltip": "",
"group": "71c63dd4.311c44", "group": "71c63dd4.311c44",
"order": 2, "order": 3,
"width": 0, "width": 0,
"height": 0, "height": 0,
"passthru": true, "passthru": true,
@ -3388,7 +3323,7 @@
"label": "ID of the station*", "label": "ID of the station*",
"tooltip": "", "tooltip": "",
"group": "71c63dd4.311c44", "group": "71c63dd4.311c44",
"order": 6, "order": 7,
"width": 0, "width": 0,
"height": 0, "height": 0,
"passthru": true, "passthru": true,
@ -3425,7 +3360,7 @@
"func": "msg.payload = msg.payload.sample_ship;\nreturn msg;", "func": "msg.payload = msg.payload.sample_ship;\nreturn msg;",
"outputs": 1, "outputs": 1,
"noerr": 0, "noerr": 0,
"x": 250, "x": 240,
"y": 160, "y": 160,
"wires": [ "wires": [
[ [
@ -3487,7 +3422,7 @@
"z": "81483277.2521e", "z": "81483277.2521e",
"group": "71c63dd4.311c44", "group": "71c63dd4.311c44",
"name": "Information message", "name": "Information message",
"order": 1, "order": 2,
"width": 24, "width": 24,
"height": 1, "height": 1,
"format": "<div layout=\"row\">Fill the different inputs concerning the sample you want to image.</div>", "format": "<div layout=\"row\">Fill the different inputs concerning the sample you want to image.</div>",
@ -3511,7 +3446,7 @@
"noerr": 0, "noerr": 0,
"initialize": "", "initialize": "",
"finalize": "", "finalize": "",
"x": 1300, "x": 1340,
"y": 220, "y": 220,
"wires": [ "wires": [
[ [
@ -3529,7 +3464,7 @@
"createDir": true, "createDir": true,
"overwriteFile": "true", "overwriteFile": "true",
"encoding": "none", "encoding": "none",
"x": 1710, "x": 1750,
"y": 220, "y": 220,
"wires": [ "wires": [
[] []
@ -3543,7 +3478,7 @@
"property": "payload", "property": "payload",
"action": "str", "action": "str",
"pretty": true, "pretty": true,
"x": 1460, "x": 1500,
"y": 220, "y": 220,
"wires": [ "wires": [
[ [
@ -3561,7 +3496,7 @@
"chunk": false, "chunk": false,
"sendError": false, "sendError": false,
"encoding": "none", "encoding": "none",
"x": 370, "x": 410,
"y": 80, "y": 80,
"wires": [ "wires": [
[ [
@ -3591,12 +3526,14 @@
"topic": "", "topic": "",
"payload": "", "payload": "",
"payloadType": "date", "payloadType": "date",
"x": 120, "x": 100,
"y": 80, "y": 240,
"wires": [ "wires": [
[ [
"83f2e27a.b59688", "83f2e27a.b59688",
"172d187b.ad216" "c31360e5.5d804",
"cdf769fd.a196",
"452af41c.43940c"
] ]
], ],
"info": "# PlanktonScope Help\nWhen the **Pi** is booting, **Node-RED** will be initiated and this node will be activated once and execute the following nodes." "info": "# PlanktonScope Help\nWhen the **Pi** is booting, **Node-RED** will be initiated and this node will be activated once and execute the following nodes."
@ -3609,17 +3546,14 @@
"property": "payload", "property": "payload",
"action": "", "action": "",
"pretty": false, "pretty": false,
"x": 610, "x": 650,
"y": 80, "y": 80,
"wires": [ "wires": [
[ [
"1f2d3f3d.5eeff9", "1f2d3f3d.5eeff9",
"64b58fc8.cdc4e", "64b58fc8.cdc4e",
"c94db91f.7cf2b8", "c94db91f.7cf2b8",
"70625f12.179948", "70625f12.179948"
"f56b39e5.245b4",
"24a381c3.761f56",
"6a7bbade.f3174c"
] ]
] ]
}, },
@ -3633,7 +3567,7 @@
"noerr": 0, "noerr": 0,
"initialize": "", "initialize": "",
"finalize": "", "finalize": "",
"x": 1300, "x": 1340,
"y": 140, "y": 140,
"wires": [ "wires": [
[ [
@ -3651,7 +3585,7 @@
"level": "0", "level": "0",
"freq": "", "freq": "",
"out": "out", "out": "out",
"x": 540, "x": 580,
"y": 180, "y": 180,
"wires": [] "wires": []
}, },
@ -3669,7 +3603,7 @@
"fwdInMessages": true, "fwdInMessages": true,
"resendOnRefresh": false, "resendOnRefresh": false,
"templateScope": "local", "templateScope": "local",
"x": 930, "x": 970,
"y": 440, "y": 440,
"wires": [ "wires": [
[] []
@ -3681,7 +3615,7 @@
"z": "e8d4d920.35344", "z": "e8d4d920.35344",
"name": "", "name": "",
"env": [], "env": [],
"x": 930, "x": 970,
"y": 140, "y": 140,
"wires": [ "wires": [
[ [
@ -3695,7 +3629,7 @@
"z": "e8d4d920.35344", "z": "e8d4d920.35344",
"name": "", "name": "",
"env": [], "env": [],
"x": 920, "x": 960,
"y": 360, "y": 360,
"wires": [ "wires": [
[ [
@ -3709,7 +3643,7 @@
"z": "e8d4d920.35344", "z": "e8d4d920.35344",
"name": "", "name": "",
"env": [], "env": [],
"x": 920, "x": 960,
"y": 400, "y": 400,
"wires": [ "wires": [
[ [
@ -3723,7 +3657,7 @@
"z": "e8d4d920.35344", "z": "e8d4d920.35344",
"name": "", "name": "",
"env": [], "env": [],
"x": 940, "x": 980,
"y": 180, "y": 180,
"wires": [ "wires": [
[ [
@ -3740,7 +3674,7 @@
"z": "e8d4d920.35344", "z": "e8d4d920.35344",
"name": "", "name": "",
"env": [], "env": [],
"x": 930, "x": 960,
"y": 220, "y": 220,
"wires": [ "wires": [
[ [
@ -3757,7 +3691,7 @@
"z": "e8d4d920.35344", "z": "e8d4d920.35344",
"name": "RPi commands", "name": "RPi commands",
"env": [], "env": [],
"x": 920, "x": 960,
"y": 820, "y": 820,
"wires": [] "wires": []
}, },
@ -3767,8 +3701,8 @@
"z": "e8d4d920.35344", "z": "e8d4d920.35344",
"name": "", "name": "",
"env": [], "env": [],
"x": 320, "x": 360,
"y": 320, "y": 460,
"wires": [] "wires": []
}, },
{ {
@ -3777,7 +3711,7 @@
"z": "e8d4d920.35344", "z": "e8d4d920.35344",
"name": "Process metadata", "name": "Process metadata",
"env": [], "env": [],
"x": 930, "x": 970,
"y": 260, "y": 260,
"wires": [ "wires": [
[ [
@ -3791,8 +3725,8 @@
"z": "e8d4d920.35344", "z": "e8d4d920.35344",
"name": "Acquisition inputs", "name": "Acquisition inputs",
"env": [], "env": [],
"x": 930, "x": 970,
"y": 540, "y": 580,
"wires": [ "wires": [
[ [
"6725d70.a4aed28" "6725d70.a4aed28"
@ -3806,8 +3740,8 @@
"z": "e8d4d920.35344", "z": "e8d4d920.35344",
"name": "", "name": "",
"env": [], "env": [],
"x": 930, "x": 970,
"y": 580, "y": 620,
"wires": [] "wires": []
}, },
{ {
@ -3816,7 +3750,7 @@
"z": "e8d4d920.35344", "z": "e8d4d920.35344",
"name": "Inject config.json in GUI inputs", "name": "Inject config.json in GUI inputs",
"info": "", "info": "",
"x": 660, "x": 700,
"y": 40, "y": 40,
"wires": [] "wires": []
}, },
@ -3826,7 +3760,7 @@
"z": "e8d4d920.35344", "z": "e8d4d920.35344",
"name": "Edit config.json on changes", "name": "Edit config.json on changes",
"info": "", "info": "",
"x": 1320, "x": 1360,
"y": 40, "y": 40,
"wires": [] "wires": []
}, },
@ -3836,7 +3770,7 @@
"z": "e8d4d920.35344", "z": "e8d4d920.35344",
"name": "", "name": "",
"env": [], "env": [],
"x": 920, "x": 960,
"y": 860, "y": 860,
"wires": [] "wires": []
}, },
@ -3846,8 +3780,8 @@
"z": "e8d4d920.35344", "z": "e8d4d920.35344",
"name": "Create and run python code receiving MQTT queries", "name": "Create and run python code receiving MQTT queries",
"info": "", "info": "",
"x": 420, "x": 450,
"y": 240, "y": 380,
"wires": [] "wires": []
}, },
{ {
@ -3856,8 +3790,8 @@
"z": "e8d4d920.35344", "z": "e8d4d920.35344",
"name": "On Load", "name": "On Load",
"info": "", "info": "",
"x": 120, "x": 100,
"y": 40, "y": 200,
"wires": [] "wires": []
}, },
{ {
@ -3866,7 +3800,7 @@
"z": "e8d4d920.35344", "z": "e8d4d920.35344",
"name": "Get metadata from config.json", "name": "Get metadata from config.json",
"info": "", "info": "",
"x": 350, "x": 390,
"y": 40, "y": 40,
"wires": [] "wires": []
}, },
@ -3876,7 +3810,7 @@
"z": "e8d4d920.35344", "z": "e8d4d920.35344",
"name": "White LED control", "name": "White LED control",
"info": "", "info": "",
"x": 310, "x": 350,
"y": 140, "y": 140,
"wires": [] "wires": []
}, },
@ -3886,7 +3820,7 @@
"z": "e8d4d920.35344", "z": "e8d4d920.35344",
"name": "Visible on the GUI", "name": "Visible on the GUI",
"info": "", "info": "",
"x": 930, "x": 970,
"y": 40, "y": 40,
"wires": [] "wires": []
}, },
@ -3896,7 +3830,7 @@
"z": "e8d4d920.35344", "z": "e8d4d920.35344",
"name": "RPi", "name": "RPi",
"info": "", "info": "",
"x": 890, "x": 930,
"y": 780, "y": 780,
"wires": [] "wires": []
}, },
@ -3906,7 +3840,7 @@
"z": "e8d4d920.35344", "z": "e8d4d920.35344",
"name": "Metadata", "name": "Metadata",
"info": "", "info": "",
"x": 900, "x": 940,
"y": 100, "y": 100,
"wires": [] "wires": []
}, },
@ -3916,7 +3850,7 @@
"z": "e8d4d920.35344", "z": "e8d4d920.35344",
"name": "Actuation", "name": "Actuation",
"info": "", "info": "",
"x": 900, "x": 940,
"y": 320, "y": 320,
"wires": [] "wires": []
}, },
@ -3926,8 +3860,8 @@
"z": "e8d4d920.35344", "z": "e8d4d920.35344",
"name": "Acquisition", "name": "Acquisition",
"info": "", "info": "",
"x": 900, "x": 940,
"y": 500, "y": 540,
"wires": [] "wires": []
}, },
{ {
@ -3953,7 +3887,7 @@
"offvalueType": "bool", "offvalueType": "bool",
"officon": "", "officon": "",
"offcolor": "", "offcolor": "",
"x": 390, "x": 430,
"y": 180, "y": 180,
"wires": [ "wires": [
[ [
@ -4215,7 +4149,7 @@
"z": "e8d4d920.35344", "z": "e8d4d920.35344",
"name": "", "name": "",
"env": [], "env": [],
"x": 930, "x": 970,
"y": 720, "y": 720,
"wires": [] "wires": []
}, },
@ -4225,7 +4159,7 @@
"z": "e8d4d920.35344", "z": "e8d4d920.35344",
"name": "Segmentation", "name": "Segmentation",
"info": "", "info": "",
"x": 910, "x": 950,
"y": 680, "y": 680,
"wires": [] "wires": []
}, },
@ -4403,8 +4337,8 @@
"z": "e8d4d920.35344", "z": "e8d4d920.35344",
"name": "", "name": "",
"env": [], "env": [],
"x": 920, "x": 960,
"y": 620, "y": 480,
"wires": [] "wires": []
}, },
{ {
@ -4448,12 +4382,12 @@
], ],
"repeat": "", "repeat": "",
"crontab": "", "crontab": "",
"once": false, "once": true,
"onceDelay": 0.1, "onceDelay": 0.1,
"topic": "", "topic": "",
"payload": "false", "payload": "false",
"payloadType": "bool", "payloadType": "bool",
"x": 270, "x": 310,
"y": 180, "y": 180,
"wires": [ "wires": [
[ [
@ -4542,8 +4476,8 @@
"z": "e8d4d920.35344", "z": "e8d4d920.35344",
"name": "", "name": "",
"env": [], "env": [],
"x": 300, "x": 340,
"y": 280, "y": 420,
"wires": [] "wires": []
}, },
{ {
@ -5014,7 +4948,7 @@
"max": "2000", "max": "2000",
"step": "25", "step": "25",
"x": 540, "x": 540,
"y": 100, "y": 120,
"wires": [ "wires": [
[ [
"f49b3397.2599f8" "f49b3397.2599f8"
@ -5212,5 +5146,171 @@
"e2913641.ea203" "e2913641.ea203"
] ]
] ]
},
{
"id": "c31360e5.5d804",
"type": "rpi-gpio out",
"z": "e8d4d920.35344",
"name": "Pump Enable",
"pin": "7",
"set": true,
"level": "1",
"freq": "",
"out": "out",
"x": 330,
"y": 280,
"wires": []
},
{
"id": "cdf769fd.a196",
"type": "rpi-gpio out",
"z": "e8d4d920.35344",
"name": "Focus Enable",
"pin": "32",
"set": true,
"level": "1",
"freq": "",
"out": "out",
"x": 340,
"y": 320,
"wires": []
},
{
"id": "7ed84a57.18378c",
"type": "comment",
"z": "e8d4d920.35344",
"name": "Initialize Waveshare HAT",
"info": "********",
"x": 370,
"y": 240,
"wires": []
},
{
"id": "4828d2f4.7c712c",
"type": "function",
"z": "e8d4d920.35344",
"name": "set global",
"func": "var value = msg.payload;\nvar key = msg.topic;\n\nglobal.set(key,value);\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 540,
"y": 540,
"wires": [
[]
]
},
{
"id": "452af41c.43940c",
"type": "python3-function",
"z": "e8d4d920.35344",
"name": "Get MachineName",
"func": "import sys\nsys.path.append('/home/pi/PlanktonScope/scripts')\nimport planktoscope.uuidName\n\nmsg['payload'] = planktoscope.uuidName.machineName(machine=planktoscope.uuidName.getSerial())\nmsg['topic'] = \"MachineName\"\nreturn msg",
"outputs": 1,
"x": 350,
"y": 540,
"wires": [
[
"4828d2f4.7c712c",
"c2abdf2b.f0a3e"
]
]
},
{
"id": "c2abdf2b.f0a3e",
"type": "ui_template",
"z": "e8d4d920.35344",
"group": "411742cf.3abb8c",
"name": "Machine Name",
"order": 1,
"width": 0,
"height": 0,
"format": "<div style=\"text-align: center;font-size: 2em;\"><span id=\"machine_name\" ng-bind-html=\"msg.payload\" ></span></div>",
"storeOutMessages": true,
"fwdInMessages": true,
"resendOnRefresh": true,
"templateScope": "local",
"x": 560,
"y": 600,
"wires": [
[]
]
},
{
"id": "fa22d6d5.f8a15",
"type": "inject",
"z": "a0f9bde.423644",
"name": "Default: 500µm",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": true,
"onceDelay": 0.1,
"topic": "",
"payload": "500",
"payloadType": "num",
"x": 220,
"y": 40,
"wires": [
[
"f49b3397.2599f8",
"d9930546.489a58"
]
]
},
{
"id": "a87e400c.aaf68",
"type": "inject",
"z": "977131e7.c2e76",
"name": "Default: 2ml/min",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": true,
"onceDelay": 0.1,
"topic": "",
"payload": "2",
"payloadType": "num",
"x": 180,
"y": 40,
"wires": [
[
"b8bf2a9.be099d8"
]
]
},
{
"id": "98e6d756.7dab38",
"type": "inject",
"z": "977131e7.c2e76",
"name": "Default: 1ml",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": true,
"onceDelay": 0.1,
"topic": "",
"payload": "1",
"payloadType": "num",
"x": 170,
"y": 80,
"wires": [
[
"f1b85f22.ac673"
]
]
} }
] ]