7 Dec 09:17:27 - [info] Node-RED version: v3.1.0
7 Dec 09:17:27 - [info] Node.js version: v18.18.2
7 Dec 09:17:27 - [info] Linux 6.1.0-rpi6-rpi-v8 arm64 LE
How to change value="{{global.cvMode}}" to get the variable from "file" ?
I also tried function getDocGVF which is called by windows.onload as part of :
function getDocGVF() {
document.getElementById('cvMode').value = global.get('cvMode', "file");
}
t is possible to use a property from the flow context or global context. Just use {{flow.name}} or {{global.name}} , or for persistable store store use {{flow[store].name}} or {{global[store].name}} .
All GlobalVariables work now fine in functions and can be used in html.
On RPi I can observe them landing in directory /home/rpi/.node-red/context/global/global.json.
But when I drag an Inject, the Persistent-Global-Context and a Debug node on a flow, then I get :
"Error: ENOENT: no such file or directory, open 'undefined/GlobalContext.json'"
and
"Cannot find json file inside [undefined/GlobalContext.json]!" from the Debug node
A Stop/Start of Node-Red does not show errors on the CommandLine of RPi.