I want to know how to use fill in node in Raspberry Pi.
On Windows, I need to use escape path separators, for example: \Users\myUser.
But in Raspberry Pi I don't know how to fill in the address of the document.
Below is the json code of my process:
[
{
"id": "99d8cb51.cf4ce8",
"type": "tab",
"label": "test fill",
"disabled": false,
"info": ""
},
{
"id": "348e443f.2578ac",
"type": "inject",
"z": "99d8cb51.cf4ce8",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 120,
"y": 380,
"wires": [
[
"eb7198f5.d48468"
]
]
},
{
"id": "21ee1722.c20778",
"type": "debug",
"z": "99d8cb51.cf4ce8",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 530,
"y": 360,
"wires": []
},
{
"id": "eb7198f5.d48468",
"type": "function",
"z": "99d8cb51.cf4ce8",
"name": "",
"func": "var tmp = new Date(msg.payload);\nmsg.payload = tmp\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 320,
"y": 380,
"wires": [
[
"21ee1722.c20778"
]
]
},
{
"id": "cc9b4c3d.eb30c",
"type": "inject",
"z": "99d8cb51.cf4ce8",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 130,
"y": 140,
"wires": [
[
"bd1f76a0.ec28e8"
]
]
},
{
"id": "bd1f76a0.ec28e8",
"type": "function",
"z": "99d8cb51.cf4ce8",
"name": "",
"func": "msg.filename = \"\\\\/:home\\\\pi\\\\1.txt\"\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 290,
"y": 180,
"wires": [
[
"a941e8b1.478778"
]
]
},
{
"id": "e09e72a5.45955",
"type": "debug",
"z": "99d8cb51.cf4ce8",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 650,
"y": 120,
"wires": []
},
{
"id": "a941e8b1.478778",
"type": "file in",
"z": "99d8cb51.cf4ce8",
"name": "",
"filename": "",
"format": "utf8",
"chunk": false,
"sendError": false,
"encoding": "none",
"x": 460,
"y": 200,
"wires": [
[
"e09e72a5.45955"
]
]
}
]