--- title: "Using Node-RED with Edge MC" slug: "using-node-red-with-edge-mc" updated: 2024-03-26T16:42:18Z published: 2024-03-26T16:42:18Z canonical: "support.tulip.co/using-node-red-with-edge-mc" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.tulip.co/llms.txt > Use this file to discover all available pages before exploring further. # 将 Node-RED 与 Edge MC 结合使用 ## 在边缘 MC 上使用 Node-RED *如何在 Edge MC 上开始使用 Node-RED 的说明 在**Edge MC 上使用 FlowFuse 和 Node-Red 请参见[此处](https://support.tulip.co/r230/docs/edge-devices-and-flowfuse)* [Node-RED](https://nodered.org/)是一种基于流程的可视化编程工具,用于将硬件与在线服务和可用 API 端点连接起来。 Node RED 使用节点概念作为基本构件。节点由事件或信息触发,然后对信息进行处理,并可能产生输出。节点可以连接并组织成流。 ### 在本文中,您将... - 了解如何为边缘 MC 启用 Node-RED ## 前提条件 - 在使用您的 Edge MC 设置 Node RED 之前,请确保您已将设备注册到您的实例。有关注册 Edge MC 的说明,请查看**[本文](https://support.tulip.co/docs/setting-up-an-edge-mc)**。 - 您还需要根据**[本文](https://support.tulip.co/docs/how-to-use-the-machine-attributes-api)**在实例上配置机器属性 API。 ## 在您的 Edge MC 上启用 Node-RED 注意:如果您运行的是旧版 Edge MC 软件,在继续之前可能需要执行出厂重置。单击**[此处](https://support.tulip.co/docs/reset-edge-mc-to-factory-settings)**了解如何重置您的设备。 要为您的设备启用 Node-RED,您必须进入 Edge MC 门户,您可以在设备的 IP 地址上找到该门户。 1. 单击 "**车间**>**边缘**设备 "选项卡。 2. 找到您的 Edge MC 设备,并访问其门户网站,导航至设备的 IP 地址。 ![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/Using%20Node-RED%20with%20Edge%20MC_299187549.png) 1. 登录 Edge MC 设备门户。 2. 启用 Node-RED。 ![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/Using%20Node-RED%20with%20Edge%20MC_299188343.png) 1. 单击**Node-RED 编辑器**。 2. 在 Node-RED 登录屏幕中输入以下凭据: ![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/Using%20Node-RED%20with%20Edge%20MC_299188858.png) - 用户名: admin - 密码:您的 Edge MC 密码 您已正式将 Edge MC 连接到 Node-RED! ## 验证您的郁金香机器 API 节点 *注意:只有在 OS43.x 或更早版本中才需要此步骤。从 OS44 开始,节点会自动验证你的 Tulip 账户。* 1. 将 Tulip Machine API 节点拖放到编辑器中。 ![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/Using%20Node-RED%20with%20Edge%20MC_301902746.png) 1. 双击节点,打开其设置面板: ![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/Using%20Node-RED%20with%20Edge%20MC_301902544.png) 你需要添加**Tulip API 身份验证**和你的**设备**信息。 ### 郁金香 API 身份验证 - 工厂 URL:你的实例 URL(如 acme.tulip.co) - API 密钥:您设置的机器 API 的 API 密钥 - API Secret:您设置的机器 API 的 API Secret ![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/Using%20Node-RED%20with%20Edge%20MC_301903319.png) ### 设备信息 - 设备信息:从机器中复制并粘贴**设备信息**: ![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/Using%20Node-RED%20with%20Edge%20MC_301903237.png) 您的**tulip-machine-api**节点现已通过验证! 如有任何问题,请联系[node-red@tulip.co](mailto:node-red@tulip.co)。 ## 更多阅读 - [使用 Node-RED 创建计数器](https://support.tulip.co/docs/creating-a-counter-using-node-red)