Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ixoncloud/edge-app-node-red-opc-ua-ixon-cloud
Edge App - Node-RED with OPC UA Server writing data to IXON Cloud
https://github.com/ixoncloud/edge-app-node-red-opc-ua-ixon-cloud
Last synced: 16 days ago
JSON representation
Edge App - Node-RED with OPC UA Server writing data to IXON Cloud
- Host: GitHub
- URL: https://github.com/ixoncloud/edge-app-node-red-opc-ua-ixon-cloud
- Owner: ixoncloud
- License: mit
- Created: 2024-08-20T11:48:00.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-11-25T12:30:39.000Z (about 2 months ago)
- Last Synced: 2024-11-25T13:30:00.403Z (about 2 months ago)
- Language: Dockerfile
- Homepage: https://marketplace.ixon.cloud/en/apps/nodered-edge
- Size: 232 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Edge App - Node-RED with OPC UA Server writing data to IXON Cloud
This project demonstrates the integration of Node-RED with an OPC UA Server, specifically designed for deployment on IXON's SecureEdge Pro device and seamless integration with IXON Cloud. It showcases how to leverage IXON's industrial IoT ecosystem for efficient edge computing and cloud connectivity.
Key components of this project include:
1. A custom Node-RED image with OPC UA nodes, optimized for SecureEdge Pro
2. An OPC UA Server configuration within Node-RED
3. Docker-based deployment tailored for SecureEdge Pro
4. Direct integration with IXON Cloud for secure data storage and visualizationThis solution demonstrates the power of IXON's SecureEdge Pro as an edge computing platform, capable of running containerized applications like Node-RED. It also highlights the seamless connectivity between edge devices and IXON Cloud, enabling remote monitoring, data analysis, and device management through a unified platform.
Users can take this project as a template and adapt it for their specific use cases within the IXON ecosystem. The flexibility of Node-RED combined with the robustness of SecureEdge Pro allows for easy customization of data flows and integration with various industrial protocols. Whether you need to collect data from PLCs, implement custom data processing logic, or create tailored dashboards in IXON Cloud, this project provides a solid foundation that can be extended to meet diverse requirements in various industrial IoT scenarios.
## Prerequisites
Ensure your environment is properly set up by following this guide: [Running custom Docker applications on the SecureEdge Pro](https://support.ixon.cloud/hc/en-us/articles/14231117531420-Running-custom-Docker-applications-on-the-SecureEdge-Pro).
## Steps to Deploy Node-RED with OPC UA Nodes
### 1. Build and Push the Node-RED Container
Ensure you have the correct builder in use:
For Unix-based systems:
```bash
./setup-buildx-env.sh
```For Windows:
```cmd
setup-buildx-env.cmd
```Run the script to build and push the Node-RED container with OPC-UA nodes to the SecureEdge Pro:
For Unix-based systems:
```bash
./build_and_push_containers.sh
```For Windows:
```cmd
build_and_push_containers.cmd
```### 2. Set Up the Container on SecureEdge Pro
- Access the local web interface of the SecureEdge Pro.
- Create a `node-red-opc-ua` container using the `node-red-opc-ua` image with the following port mappings:```
Port Mapping: 1880:1880
Port Mapping: 53881:53881
```- Create a volume with the following settings:
```
Volume: node-red-data -> /data
```Refer to the screenshot for configuration details:
![Create Container](secure_edge_pro_settings/create_container.png)### 3. Start the Container
- Wait for the container to be created.
- Start the container.Refer to the screenshot for details:
![Running Container](secure_edge_pro_settings/running_container.png)### 4. Access Node-RED Web Interface
- In IXON Cloud, create an HTTP Web Server to easily access the Node-RED web interface on the SecureEdge Pro.
Refer to the screenshot for configuration details:
![HTTP Server](ixon_cloud_settings/http_server_node_red.png)- You can now access the Node-RED web interface on the SecureEdge Pro via the HTTP Web Server you created in IXON Cloud.
- The flow in Node-RED is already configured to write to the OPC UA server. It waits for the server to be ready to inject the variables and then starts the loop to update the variable.### 6. Access Virtual HMI Web Interface
- In IXON Cloud, create an HTTP Web Server to easily access the Virtual HMI web interface on the SecureEdge Pro.
Refer to the screenshot for configuration details:
![HTTP Server](ixon_cloud_settings/http_server_virtual_hmi.png)- You can now access the Virtual HMI web interface on the SecureEdge Pro via the HTTP Web Server you created in IXON Cloud.
### 6. Set Up OPC UA Data Source in IXON Cloud
- In IXON Cloud, create an OPC UA datasource to access the OPC UA server running in Node-RED on the SecureEdge Pro.
- Import the variables using the provided CSV file: `ixon_cloud_settings/variables.csv`.
- Run the test to ensure the connection is working.Refer to the screenshots for configuration and testing details:
![Data Source](ixon_cloud_settings/data_source.png)
![Variables Run Test](ixon_cloud_settings/variables_run_test.png)### 7. You can now access the data from the OPC UA server in IXON Cloud.