This is the Node-RED project for the PlanktoScope.
/ps/node-red-v2/dashboard/ to access the dashboard /admin/ps/node-red-v2/ to access the Node-RED editor
Follow Development Environment
You should then be able to commit and push to the dashboard repository.
You can commit via CLI or Node-RED. You can only push via CLI.
cd PlanktoScope/node-red/projects/dashboard
git pushData is stored in a file located at: /home/pi/PlanktoScope/node-red/context/global/global.json.
To retrieve a value stored in this file, use the following script in a Function Node:
// Retrieve the global variable
msg.variable = global.get("variable")
return msg<template>
<v-text-field
label="My variable"
variant="outlined"
v-model="msg.variable"
@update:model-value="send({ variable: msg.variable })"
></v-text-field>
</template>To set a value in the file, use the following script in a Function Node:
// Set a value in the global context
global.set("variable", msg.variable)
return msg