node-red-contrib-uos-nats 0.2.67 → 0.2.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ Maintained by [IoTUeli](https://iotueli.ch). Source: [GitHub](https://github.com
|
|
|
9
9
|
|
|
10
10
|
---
|
|
11
11
|
|
|
12
|
-
##
|
|
12
|
+
## Nodes Overview
|
|
13
13
|
|
|
14
14
|
| Node | Icon | Purpose |
|
|
15
15
|
|------|------|---------|
|
|
@@ -20,7 +20,7 @@ Maintained by [IoTUeli](https://iotueli.ch). Source: [GitHub](https://github.com
|
|
|
20
20
|
|
|
21
21
|
---
|
|
22
22
|
|
|
23
|
-
##
|
|
23
|
+
## Installation
|
|
24
24
|
|
|
25
25
|
Run the following command in your Node-RED user directory (usually `~/.node-red`):
|
|
26
26
|
|
|
@@ -32,7 +32,7 @@ Restart Node-RED. The nodes will appear in the **"Weidmüller DataHub"** categor
|
|
|
32
32
|
|
|
33
33
|
---
|
|
34
34
|
|
|
35
|
-
##
|
|
35
|
+
## Quick Start
|
|
36
36
|
|
|
37
37
|
### 1. Create OAuth Client (in u-OS)
|
|
38
38
|
|
|
@@ -62,20 +62,20 @@ Import this flow to test reading and writing immediately:
|
|
|
62
62
|
|
|
63
63
|
---
|
|
64
64
|
|
|
65
|
-
##
|
|
65
|
+
## Node Usage
|
|
66
66
|
|
|
67
|
-
###
|
|
67
|
+
### DataHub - Read
|
|
68
68
|
Reads values from existing providers (like `u_os_adm`).
|
|
69
69
|
- **Provider ID:** Name of the source provider.
|
|
70
70
|
- **Variables:** Enter `Key:ID` manually.
|
|
71
71
|
- **Trigger:** "Event" (instant update) or "Poll" (interval).
|
|
72
72
|
|
|
73
|
-
###
|
|
73
|
+
### DataHub - Write
|
|
74
74
|
Changes values in other providers.
|
|
75
75
|
- **Input:** Send `msg.payload` with the new value.
|
|
76
76
|
- **Config:** Target `Provider ID` and `Variable ID` (or Key).
|
|
77
77
|
|
|
78
|
-
###
|
|
78
|
+
### DataHub - Provider
|
|
79
79
|
Publishes your own data to the Data Hub.
|
|
80
80
|
- **Provider ID:** Leave empty to use your Client ID (Recommended).
|
|
81
81
|
- **Input:** Send a JSON object: `{ "machine": { "status": "active" } }`.
|
|
@@ -83,7 +83,7 @@ Publishes your own data to the Data Hub.
|
|
|
83
83
|
|
|
84
84
|
---
|
|
85
85
|
|
|
86
|
-
##
|
|
86
|
+
## Troubleshooting
|
|
87
87
|
|
|
88
88
|
- **Provider not visible?** Ensure **Provider ID** matches your **Client ID**. Easiest way: Leave Provider ID empty in the node.
|
|
89
89
|
- **Connection Failed?** Check Host/IP and ensure Client ID/Secret are correct.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-red-contrib-uos-nats",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.68",
|
|
4
4
|
"description": "Node-RED nodes for Weidmüller u-OS Data Hub. Read, write, and provide variables via NATS protocol with OAuth2 authentication. Features: Variable Key resolution, custom icons, example flows, and provider definition caching.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "IoTUeli",
|