I'm using the standard node-red: watch
node and I'm having trouble getting it to fire consistently, or allow me to filter the fires to continue the workflow one time.
It is the entry point for an AI inference model where a camera will send the image to the file system, node red then executes the .py and returns the inference result to be sent back to an HMI.
It's all working, except that it runs the workflow up to 4 times. (this kills the processor)
This is on Windows 10IOT, latest version of everything (started fresh yesterday). It seemed to work ok on Linux over WinSCP, but when I drag a file in to simulate the camera transfer it will fire multiple times. I filtered the 0 out, that was the easy one.
Some initial testing - the .png
fires twice (same payload), a .jpg
will fire four times also identical payloads.
From a single transfer/execution.
D:\\ai\\images : msg : Object
{ payload: "D:\ai\images\37gd2h.jpg", topic: "D:\\ai\\images", file: "37gd2h.jpg", filename: "D:\ai\images\37gd2h.jpg", size: 95320 … }
10/16/2019, 8:29:32 AMnode: 6a69fd99.a24024
D:\\ai\\images : msg : Object
{ payload: "D:\ai\images\37gd2h.jpg", topic: "D:\\ai\\images", file: "37gd2h.jpg", filename: "D:\ai\images\37gd2h.jpg", size: 95320 … }
10/16/2019, 8:29:32 AMnode: 6a69fd99.a24024
D:\\ai\\images : msg : Object
{ payload: "D:\ai\images\37gd2h.jpg", topic: "D:\\ai\\images", file: "37gd2h.jpg", filename: "D:\ai\images\37gd2h.jpg", size: 95320 … }
10/16/2019, 8:29:32 AMnode: 6a69fd99.a24024
D:\\ai\\images : msg : Object
{ payload: "D:\ai\images\37gd2h.jpg", topic: "D:\\ai\\images", file: "37gd2h.jpg", filename: "D:\ai\images\37gd2h.jpg", size: 95320 … }
Should I be using a different node here? Is there an updated one? Not sure what to do here.