When using a jsonata payload in cron-plus eg.
with a basic flow like:
[
{
"id": "5b82d39f1670e2ed",
"type": "cronplus",
"z": "8238839dc502e4bd",
"name": "",
"outputField": "payload",
"timeZone": "",
"persistDynamic": false,
"commandResponseMsgOutput": "output1",
"outputs": 1,
"options": [
{
"name": "schedule1",
"topic": "test",
"payloadType": "jsonata",
"payload": "$millis()",
"expressionType": "cron",
"expression": "0 */5 * * * * *",
"location": "",
"offset": "0",
"solarType": "all",
"solarEvents": "sunrise,sunset"
}
],
"x": 340,
"y": 1240,
"wires": [
[
"7589755339c740ec"
]
]
},
{
"id": "7589755339c740ec",
"type": "debug",
"z": "8238839dc502e4bd",
"name": "debug 303",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 550,
"y": 1240,
"wires": []
}
]
Produces these errors messages:
"Deprecated API warning: Calls to RED.util.evaluateJSONataExpression must include a callback. This will not be optional in Node-RED 4.0. Please identify the node from the following stack and check for an update on npm. If none is available, please notify the node author."
And:
Error at evaluateJSONataExpression (/usr/src/node-red/node_modules/@node-red/util/lib/util.js:777:18) at Object.evaluateNodeProperty (/usr/src/node-red/node_modules/@node-red/util/lib/util.js:675:18) at sendMsg (/data/node_modules/node-red-contrib-cron-plus/cronplus.js:867:39) at CronPlus._inputCallback (/data/node_modules/node-red-contrib-cron-plus/cronplus.js:1432:17) at /usr/src/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:210:26 at Object.trigger (/usr/src/node-red/node_modules/@node-red/util/lib/hooks.js:166:13) at CronPlus.Node._emitInput (/usr/src/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:202:11) at CronPlus.Node.emit (/usr/src/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:186:25) at CronPlus.Node.receive (/usr/src/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:494:10) at /data/node_modules/node-red-contrib-cron-plus/cronplus.js:1686:22
I guess cron-plus will require some kind of update.
The flow works though.