Node-Red integration - where can I find the demo files?

Where can I obtain the example flow mentioned on the youtube presentation by Massimo Lommi entitled …

“Milestone Developer Conference 2021 - Using XProtect with Non-Video IoT devices utilizing Node-RED”

There is mention of the code and a demo being available but no link is provided.

I would greatly appreciate if someone could please post the links?

Thank you

Alain

I am very sorry for delayed reply. Actually we realized that there wasn’t any relevant files on the Dev Conf folder so it took long time for searching them and we found them finally. Here is the link for the files:

https://download.milestonesys.com/DevCon2021/

File name: iotgateway-nodered.zip

Also, here are instructions, please read below.

------------

Three zip files:

  1.                    IoTGateway-NodeRed: plugin for XProtect’s management client to connect to an instance of nodered. You can set the address of it under General “Options”. Provided with VS 2022 project and source - optional
    
  2.                    VideoOS.NodeRed.Bridge: dll to include in your nodered flow, together with all dependencies: Basically all the VideoOS dlls and autofac.dll. Need to have Dotnet framework installed (I have 4.8)
    
  3.                    node-red-xprotect: both the nodes and my app. There is an INSTALL instruction on how to setup nodered and register the xprotect plugins.
    

You also need edge-js that is as of now compatible with Node.js vs 14.x and not 16 or 18 (yet). Therefore you need NodeJs v14.

Hi,

I’m trying to install the Node-Red integration, but I had several problems.

I was wondering if it was possible to have more in-depth installation instructions, in particular for:

-How to include the dependencies in VideoOS.NodeRed.Bridge folder

-There are 2 app in the node-red-xprotect folder: node-red-contrib-xprotect and node-red-xprotect-app.

The second one doesn’t work installing on node red, what is the problem?

-Where put the IoTGateway-NodeRed folder for the XProtect Plugin?(managment client or smart client for example)

-Which version of Node-Red is required?

I await reply thanks.

I appreciate you posting the material. I’ve had a quick look and this looks so promising. It’s too bad that edge-js as part of this solution isn’t compatible with Node 16 yet. I’m developing on node V16.16 and it would have been nice to just dive in and explore this type of integration.

I suppose I could use NVM and play with the demo but I have other dependencies related to Node 16 on this same project.

Thank you.

Alain

These are all we have but we appreciate your feedback, thank you.

Those commands are for windows, I want to be able to run those commands to a linux server, is there a possibility?

Just as a heads-up on Node-Red integration:

You can do a “low-code” integration, sending XProtect Events to Node-Red, by utilizing XProtect Webhooks, and let that trigger a “http in” node in Node-Red.

Read more here: https://doc.milestonesys.com/2023R2/en-US/add-ons/add-on_webhooks/create_webhooks.htm

From XProtect 2023 R2, you can use the Events API (beta) to trigger Events in XProtect, utilizing a http request node in Node-Red.

Read more here: Milestone XProtect Events API Reference (milestonesys.com)