I'm working on my second flow ever. Trying to add a timestamp to output of ping before I store it in a file. What did I do wrong?
Node Red v3.0.2 running on a Pi2.
Thanks,
[
{
"id": "99ef514ed8f83fb0",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "f9bf451785ed5e44",
"type": "ping",
"z": "99ef514ed8f83fb0",
"protocol": "IPv4",
"mode": "timed",
"name": "IsMyPhoneHome",
"host": "192.168.1.129",
"timer": "60",
"inputs": 0,
"x": 200,
"y": 120,
"wires": [
[
"26eb2ed06669929e"
]
]
},
{
"id": "02821fe1a125e4f1",
"type": "debug",
"z": "99ef514ed8f83fb0",
"name": "debug 3",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 760,
"y": 120,
"wires": []
},
{
"id": "8422207d09edcb9d",
"type": "file",
"z": "99ef514ed8f83fb0",
"name": "PhoneHome",
"filename": "/home/pi/phonehome.txt",
"filenameType": "str",
"appendNewline": true,
"createDir": true,
"overwriteFile": "false",
"encoding": "utf8",
"x": 570,
"y": 120,
"wires": [
[
"02821fe1a125e4f1"
]
]
},
{
"id": "26eb2ed06669929e",
"type": "function",
"z": "99ef514ed8f83fb0",
"name": "AddTime2",
"func": "msg.payload.Time = new Date()\n\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 380,
"y": 120,
"wires": [
[
"8422207d09edcb9d"
]
]
}
]