Skip to content

Commit

Permalink
Update advanced_ftp_db_flow_group.json
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfwithSword committed Sep 10, 2023
1 parent b450175 commit 4e4ffde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/nodered/advanced_ftp_db_flow_group.json
Original file line number Diff line number Diff line change
Expand Up @@ -1517,7 +1517,7 @@
"z": "fbda6ab16491b918",
"g": "a3e765e96362759b",
"name": "Set Topic",
"func": "msg.topic = \"print_start_epoch\";\nmsg.model = flow.get(\"model\");\nmsg.machine_name = msg.model + \"_\" + msg.machine_name;\nmsg.payload = msg.start_epoch;\nif(msg.values != undefined) {\n delete msg.values;\n}\nnode.send([msg, null]);\n\nflow.set(\"print_start_epoch\", msg.payload);\n\nmsg.topic = \"print_start_time\";\nmsg.payload = msg.start_epoch;\nif (msg.values != undefined) {\n delete msg.values;\n}\nif(msg.payload != 0 && msg.payload != \"0\") {\n node.send([null, msg]);\n}\nif(msg.payload != 0 && msg.payload != \"0\") {\n flow.set(msg.machine_name+\"_forced_startepoch\", true);\n}\nelse {\n flow.set(msg.machine_name + \"_forced_startepoch\", false);\n}",
"func": "msg.topic = \"print_start_epoch\";\nmsg.model = flow.get(\"model\");\nmsg.machine_name = msg.model + \"_\" + msg.machine_name;\nmsg.payload = msg.start_epoch;\nif(msg.values != undefined) {\n delete msg.values;\n}\nnode.send([msg, null]);\n\nflow.set(\"print_start_epoch\", msg.payload);\n\nmsg.topic = \"print_start_time\";\nmsg.payload = msg.start_epoch * 1000;\nif (msg.values != undefined) {\n delete msg.values;\n}\nif(msg.payload != 0 && msg.payload != \"0\") {\n node.send([null, msg]);\n}\nif(msg.payload != 0 && msg.payload != \"0\") {\n flow.set(msg.machine_name+\"_forced_startepoch\", true);\n}\nelse {\n flow.set(msg.machine_name + \"_forced_startepoch\", false);\n}",
"outputs": 2,
"noerr": 0,
"initialize": "",
Expand Down

0 comments on commit 4e4ffde

Please sign in to comment.