@transai/connector-runner-factorynebula-mqtt 0.0.0-stage → 0.2.0
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/CHANGELOG.md +14 -0
- package/DOCUMENTATION.md +107 -0
- package/README.md +73 -2
- package/assets/logo.png +0 -0
- package/assets/template.json +403 -0
- package/index.cjs +83 -0
- package/index.cjs.map +7 -0
- package/integrations/connector-runner-factorynebula-mqtt/src/index.d.ts +1 -0
- package/integrations/connector-runner-factorynebula-mqtt/src/lib/config.d.ts +10 -0
- package/integrations/connector-runner-factorynebula-mqtt/src/lib/connector-runner-factorynebula-mqtt.d.ts +8 -0
- package/integrations/connector-runner-factorynebula-mqtt/src/lib/payload.d.ts +43 -0
- package/integrations/connector-runner-factorynebula-mqtt/src/lib/processor.d.ts +8 -0
- package/integrations/connector-runner-factorynebula-mqtt/src/lib/types.d.ts +17 -0
- package/libs/connector-runtime-sdk/src/index.d.ts +5 -0
- package/libs/connector-runtime-sdk/src/lib/connector-runtime.d.ts +17 -0
- package/libs/connector-runtime-sdk/src/lib/connector-runtime.interface.d.ts +5 -0
- package/libs/connector-runtime-sdk/src/lib/sdk/files.sdk.interface.d.ts +25 -0
- package/libs/connector-runtime-sdk/src/lib/sdk/http-client.interface.d.ts +49 -0
- package/libs/connector-runtime-sdk/src/lib/sdk/index.d.ts +10 -0
- package/libs/connector-runtime-sdk/src/lib/sdk/logger.sdk.interface.d.ts +7 -0
- package/libs/connector-runtime-sdk/src/lib/sdk/offset-store.sdk.interface.d.ts +13 -0
- package/libs/connector-runtime-sdk/src/lib/sdk/processing.sdk.interface.d.ts +30 -0
- package/libs/connector-runtime-sdk/src/lib/sdk/receiver.sdk.interface.d.ts +15 -0
- package/libs/connector-runtime-sdk/src/lib/sdk/sdk.interface.d.ts +31 -0
- package/libs/connector-runtime-sdk/src/lib/sdk/sender.sdk.interface.d.ts +32 -0
- package/libs/connector-runtime-sdk/src/lib/sdk/telemetry.sdk.interface.d.ts +15 -0
- package/libs/connector-runtime-sdk/src/lib/sdk/templating.sdk.interface.d.ts +12 -0
- package/libs/connector-runtime-sdk/src/lib/support/index.d.ts +1 -0
- package/libs/connector-runtime-sdk/src/lib/support/null-logger.d.ts +8 -0
- package/libs/connector-runtime-sdk/src/lib/types/action.d.ts +69 -0
- package/libs/connector-runtime-sdk/src/lib/types/kafka.d.ts +41 -0
- package/libs/connector-runtime-sdk/src/lib/types.d.ts +26 -0
- package/package.json +17 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
## 0.1.0 (2026-12-04)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **factorynebula-mqtt:** add CNC machine ingestion ([#2158](https://github.com/xip-online-applications/xod-core/pull/2158))
|
|
6
|
+
|
|
7
|
+
### 🩹 Fixes
|
|
8
|
+
|
|
9
|
+
- **factorynebula-mqtt:** drop the bundled runtime SDK from package dependencies ([#2163](https://github.com/xip-online-applications/xod-core/pull/2163))
|
|
10
|
+
|
|
11
|
+
### ❤️ Thank You
|
|
12
|
+
|
|
13
|
+
- frankdikker
|
|
14
|
+
- Youri Lefers @yourilefers
|
package/DOCUMENTATION.md
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
---
|
|
2
|
+
logo: logo.png
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# FactoryNebula MQTT
|
|
6
|
+
|
|
7
|
+
Read CNC-machine data from a FactoryNebula MQTT broker and make production
|
|
8
|
+
counters, machine status, alarms, operator messages and active CNC programs
|
|
9
|
+
available in transAI. Supports the FANUC and Heidenhain beta message format.
|
|
10
|
+
|
|
11
|
+
## Configuration
|
|
12
|
+
|
|
13
|
+
This connector stores its data through the transAI ingestion service only.
|
|
14
|
+
Ask transAI to enable the ingestion service for your environment before you
|
|
15
|
+
enable the connector; without it the data does not reach your datasets.
|
|
16
|
+
|
|
17
|
+
Run the connector where it can reach the FactoryNebula broker. Supply your
|
|
18
|
+
installation's broker address and read-only credentials. No MQTT publishing
|
|
19
|
+
permissions are required.
|
|
20
|
+
|
|
21
|
+
```json
|
|
22
|
+
{
|
|
23
|
+
"brokerUrl": "mqtt://<BROKER_HOST>:1883",
|
|
24
|
+
"clientId": "transai-factorynebula-01",
|
|
25
|
+
"username": "<MQTT_USERNAME>",
|
|
26
|
+
"password": "<MQTT_PASSWORD>",
|
|
27
|
+
"topicPrefix": "factorynebula",
|
|
28
|
+
"machines": [
|
|
29
|
+
{
|
|
30
|
+
"topic": "factorynebula/<ENTERPRISE>/<SITE>/<AREA>/<FANUC_MACHINE>",
|
|
31
|
+
"name": "FANUC machine",
|
|
32
|
+
"counterField": "production.partCount"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"topic": "factorynebula/<ENTERPRISE>/<SITE>/<AREA>/<HEIDENHAIN_MACHINE>",
|
|
36
|
+
"name": "Heidenhain machine",
|
|
37
|
+
"counterField": "production.partCountMachine"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
| Parameter | Description |
|
|
44
|
+
| ------------------------- | -------------------------------------------------------------------------------------------------------------- |
|
|
45
|
+
| `brokerUrl` | Required MQTT broker URL. Use `mqtt://` or `mqtts://`; TLS certificates are verified. |
|
|
46
|
+
| `clientId` | Optional client ID. Each simultaneously connected client must have a unique ID; otherwise one is generated. |
|
|
47
|
+
| `username`, `password` | Broker credentials, if authentication is required. |
|
|
48
|
+
| `topicPrefix` | First topic segment; defaults to `factorynebula`. |
|
|
49
|
+
| `machines` | Optional list of machines to consume. Omit to discover all machines under the prefix. |
|
|
50
|
+
| `machines[].topic` | Full machine topic path, without `/state` or `/availability`. This is the stable machine identity. |
|
|
51
|
+
| `machines[].name` | Optional display name overriding the source name. |
|
|
52
|
+
| `machines[].counterField` | Optional explicit counter source. Missing selected values are omitted rather than replaced by another counter. |
|
|
53
|
+
|
|
54
|
+
The connector subscribes to both `/state` and `/availability` at QoS 1.
|
|
55
|
+
State messages must include `timestamp` or `received_at_tz` as an ISO date with
|
|
56
|
+
timezone. Broker addresses and machine topic codes are installation-specific;
|
|
57
|
+
obtain the final values from FactoryNebula.
|
|
58
|
+
|
|
59
|
+
Without an explicit counter field, the connector uses `production.partCount`
|
|
60
|
+
when present, otherwise `production.partCountMachine`. Heidenhain also allows
|
|
61
|
+
`production.partcounters.machine`, `.cyclus`, `.puls`, `.delta`, or `.regel`.
|
|
62
|
+
Those test counters can have different meanings and reset behavior; agree the
|
|
63
|
+
correct choice per machine with FactoryNebula.
|
|
64
|
+
|
|
65
|
+
The integration template uses collection prefix `factorynebula-mqtt`. If you
|
|
66
|
+
configure a different data-source identifier, update the template's collections
|
|
67
|
+
to match. Fill the connection settings and enable the template connector when
|
|
68
|
+
ready.
|
|
69
|
+
|
|
70
|
+
## Available data
|
|
71
|
+
|
|
72
|
+
| Data | Available information |
|
|
73
|
+
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
74
|
+
| Part count | A gauge containing the reported counter value, including zero. |
|
|
75
|
+
| Machine status | Unknown, offline, running, idle, hold, alarm or emergency stop. |
|
|
76
|
+
| Availability | Online/offline status from the source. |
|
|
77
|
+
| Machine alarms | Current alarm documents with text, active state, machine and source timestamp. A cleared or replaced alarm is marked inactive. Textless alarms use a general key; PLC warnings are separate documents. Alarms are not available as metrics. |
|
|
78
|
+
| Operator messages | Current message per machine; explicit empty/null messages are marked inactive. |
|
|
79
|
+
| Active CNC programs | Current program, name, path, execution text and program line, where supplied by the machine. |
|
|
80
|
+
|
|
81
|
+
Metrics include the enterprise, site, area and machine code from the MQTT topic.
|
|
82
|
+
Documents also include a readable machine name. Source timestamps are preserved.
|
|
83
|
+
The source currently reports one alarm state/text; a combined text is treated as
|
|
84
|
+
one alarm. It cannot provide separate simultaneous alarm codes from that text.
|
|
85
|
+
|
|
86
|
+
## Failure behavior
|
|
87
|
+
|
|
88
|
+
The connector reconnects automatically and subscribes again. Retained MQTT
|
|
89
|
+
messages restore the latest known state. Repeated snapshots and unchanged
|
|
90
|
+
heartbeat documents are suppressed, including after a connector restart.
|
|
91
|
+
Intermediate changes made while disconnected cannot be reconstructed from the
|
|
92
|
+
latest retained snapshot.
|
|
93
|
+
|
|
94
|
+
Missing fields leave their previous documents untouched. Explicit null values
|
|
95
|
+
clear operator/program documents. Offline snapshots produce offline metrics
|
|
96
|
+
while preserving the last known documents and alarm state. Unknown machine
|
|
97
|
+
status strings map to Unknown.
|
|
98
|
+
|
|
99
|
+
Records use the source timestamp. A timestamp more than one minute ahead of the
|
|
100
|
+
moment the connector received the message is replaced by that receive time, so a
|
|
101
|
+
machine clock that runs ahead cannot block ingestion. Plain `ONLINE`/`OFFLINE`
|
|
102
|
+
availability messages carry no timestamp: they use the receive time and are
|
|
103
|
+
applied in the order they arrive.
|
|
104
|
+
|
|
105
|
+
Invalid messages are logged and skipped. If transAI rejects ingestion, the
|
|
106
|
+
connector retries before acknowledging a QoS 1 message. It does not advance its
|
|
107
|
+
saved processing state until all records from that message have been accepted.
|
package/README.md
CHANGED
|
@@ -1,3 +1,74 @@
|
|
|
1
|
-
#
|
|
1
|
+
# FactoryNebula MQTT connector
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Read-only MQTT 3.1.1 ingestion for FactoryNebula's FANUC and Heidenhain beta
|
|
4
|
+
payloads, based on the Abbink contract of 17 November 2026. Registered as
|
|
5
|
+
`factorynebula-mqtt`; the older HTTP runner remains separate.
|
|
6
|
+
|
|
7
|
+
See [DOCUMENTATION.md](./DOCUMENTATION.md) for configuration and available data.
|
|
8
|
+
The reusable integration is [assets/template.json](./assets/template.json), with
|
|
9
|
+
its vendor logo in [assets/logo.png](./assets/logo.png). The template starts
|
|
10
|
+
disabled and contains placeholders. Set the actual broker credentials and
|
|
11
|
+
installation location before enabling it. It is not published automatically.
|
|
12
|
+
|
|
13
|
+
## Processing
|
|
14
|
+
|
|
15
|
+
- Identity is the full topic path before `/state` or `/availability`. Changing
|
|
16
|
+
`machine.name` does not change document keys. A changed topic code is a new
|
|
17
|
+
machine identity; finalize these codes before deployment.
|
|
18
|
+
- State messages require an ISO timestamp with timezone, using `timestamp` or
|
|
19
|
+
`received_at_tz`. JSON availability messages follow the same contract. Bare
|
|
20
|
+
`ONLINE`/`OFFLINE` availability messages use receipt time and are applied in
|
|
21
|
+
arrival order; they are never compared with the machine clock.
|
|
22
|
+
- Gauges use FANUC `production.partCount`, then Heidenhain
|
|
23
|
+
`production.partCountMachine`. An explicit per-machine `counterField` selects
|
|
24
|
+
a test counter. Missing values stay missing; a selected counter never silently
|
|
25
|
+
falls back to another source.
|
|
26
|
+
- Alarms and PLC warnings are sent as documents only, not as metrics.
|
|
27
|
+
- Alarm text is trimmed and hashed with SHA-256. A changed/cleared alarm marks
|
|
28
|
+
the document of the preceding key inactive. Textless alarms use
|
|
29
|
+
`general`; PLC warnings use `warning` independently. Only the single alarm
|
|
30
|
+
provided by the source can be represented; simultaneous individual alarms
|
|
31
|
+
require an expanded upstream payload.
|
|
32
|
+
- Documents use stable keys: machine plus alarm key for alarms, machine for the
|
|
33
|
+
current operator message and program. Explicit null clears a message/program;
|
|
34
|
+
absent fields leave current documents untouched. A changed program line or
|
|
35
|
+
execution text is a document update.
|
|
36
|
+
- Deduplication fingerprints, active alarms and per-channel event-time watermarks
|
|
37
|
+
are stored in the SDK offset store only after all sends succeed. Document
|
|
38
|
+
state is flushed at once; watermarks alone are saved by the store's 60-second
|
|
39
|
+
interval, so a restart can resend the metrics of that last minute. An
|
|
40
|
+
unreadable stored state is logged and replaced by a fresh one.
|
|
41
|
+
Repeated state timestamps and old messages are ignored. New heartbeats retain
|
|
42
|
+
metric samples but do not rewrite unchanged documents.
|
|
43
|
+
- An offline snapshot freezes source values: only offline metrics are emitted.
|
|
44
|
+
It does not claim that a frozen counter is live or that an alarm has cleared.
|
|
45
|
+
- Records go through the ingestion api only (`sender.useIngestionApi()`).
|
|
46
|
+
Enable the tenant flags `ingestionApi` and `kafkaDocumentsDisabled` before
|
|
47
|
+
enabling the connector: the document datasets are typed
|
|
48
|
+
(`collection.projection`), so a Kafka copy only reaches the bulk sink, and
|
|
49
|
+
its metric samples would be stored a second time next to the api's. The SDK
|
|
50
|
+
does not expose the routing to a runner, so the connector cannot check this.
|
|
51
|
+
A source timestamp more than 1 minute ahead of the receive time is replaced
|
|
52
|
+
by the receive time, because the api rejects event times over 5 minutes ahead and a rejected
|
|
53
|
+
packet would block every later one.
|
|
54
|
+
- MQTT.js `handleMessage` applies backpressure. Ingestion failures retry every
|
|
55
|
+
second before QoS 1 acknowledgement; the log names the topic. Malformed
|
|
56
|
+
messages are logged and skipped. A refused broker connection is retried too.
|
|
57
|
+
Clean sessions plus retained snapshots restore the latest state on reconnect;
|
|
58
|
+
this does not replay intermediate changes missed while disconnected.
|
|
59
|
+
|
|
60
|
+
Default collection prefix is `factorynebula-mqtt`. A custom
|
|
61
|
+
`datasourceIdentifier` requires matching template collection overrides.
|
|
62
|
+
|
|
63
|
+
## Development
|
|
64
|
+
|
|
65
|
+
```sh
|
|
66
|
+
pnpm nx test connector-runner-factorynebula-mqtt
|
|
67
|
+
pnpm nx lint connector-runner-factorynebula-mqtt
|
|
68
|
+
pnpm nx build connector-runner-factorynebula-mqtt
|
|
69
|
+
pnpm nx build documentation
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
The build includes the template, logo and documentation. No live broker or
|
|
73
|
+
credentials are required for unit tests. Validate the final topic mapping and
|
|
74
|
+
Heidenhain counter choice against the actual installation before enabling it.
|
package/assets/logo.png
ADDED
|
Binary file
|
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
{
|
|
2
|
+
"identifier": "factorynebula-mqtt",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"name": "FactoryNebula MQTT",
|
|
5
|
+
"prefix": "factoryNebulaMqtt",
|
|
6
|
+
"description": "FactoryNebula MQTT CNC metrics, alarms, operator messages and active programs.",
|
|
7
|
+
"logo": "/static/assets/images/integrations/factory-nebula.png",
|
|
8
|
+
"author": {
|
|
9
|
+
"name": "transAI",
|
|
10
|
+
"website": "https://transai.com"
|
|
11
|
+
},
|
|
12
|
+
"connectors": {
|
|
13
|
+
"factorynebula_mqtt": {
|
|
14
|
+
"identifier": "factorynebula-mqtt",
|
|
15
|
+
"connectorType": "factorynebula-mqtt",
|
|
16
|
+
"name": "FactoryNebula MQTT",
|
|
17
|
+
"location": "default",
|
|
18
|
+
"enabled": false,
|
|
19
|
+
"actions": [],
|
|
20
|
+
"config": {
|
|
21
|
+
"brokerUrl": "mqtt://<BROKER_HOST>:1883",
|
|
22
|
+
"username": "<MQTT_USERNAME>",
|
|
23
|
+
"password": "<MQTT_PASSWORD>",
|
|
24
|
+
"topicPrefix": "factorynebula"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"datasets": {
|
|
29
|
+
"alarm_documents": {
|
|
30
|
+
"name": "Machine alarms",
|
|
31
|
+
"description": "Machine alarms reported by FactoryNebula MQTT.",
|
|
32
|
+
"type": "documents",
|
|
33
|
+
"prefix": "alarm_documents",
|
|
34
|
+
"collection": {
|
|
35
|
+
"collection": "factorynebula-mqtt_alarm_documents",
|
|
36
|
+
"projection": {}
|
|
37
|
+
},
|
|
38
|
+
"dimensions": {
|
|
39
|
+
"machineId": {
|
|
40
|
+
"name": "machineId",
|
|
41
|
+
"type": "string",
|
|
42
|
+
"field": "machineId",
|
|
43
|
+
"description": "Full MQTT machine topic path"
|
|
44
|
+
},
|
|
45
|
+
"machineName": {
|
|
46
|
+
"name": "machineName",
|
|
47
|
+
"type": "string",
|
|
48
|
+
"field": "machineName",
|
|
49
|
+
"description": "Readable machine name"
|
|
50
|
+
},
|
|
51
|
+
"enterprise": {
|
|
52
|
+
"name": "enterprise",
|
|
53
|
+
"type": "string",
|
|
54
|
+
"field": "enterprise",
|
|
55
|
+
"description": "Enterprise segment of the machine topic"
|
|
56
|
+
},
|
|
57
|
+
"site": {
|
|
58
|
+
"name": "site",
|
|
59
|
+
"type": "string",
|
|
60
|
+
"field": "site",
|
|
61
|
+
"description": "Site segment of the machine topic"
|
|
62
|
+
},
|
|
63
|
+
"area": {
|
|
64
|
+
"name": "area",
|
|
65
|
+
"type": "string",
|
|
66
|
+
"field": "area",
|
|
67
|
+
"description": "Area segment of the machine topic"
|
|
68
|
+
},
|
|
69
|
+
"line": {
|
|
70
|
+
"name": "line",
|
|
71
|
+
"type": "string",
|
|
72
|
+
"field": "line",
|
|
73
|
+
"description": "Machine topic code, the last segment of the machine topic"
|
|
74
|
+
},
|
|
75
|
+
"id": {
|
|
76
|
+
"name": "id",
|
|
77
|
+
"type": "string",
|
|
78
|
+
"field": "id",
|
|
79
|
+
"primaryKey": true,
|
|
80
|
+
"description": "Stable document identity"
|
|
81
|
+
},
|
|
82
|
+
"timestamp": {
|
|
83
|
+
"name": "timestamp",
|
|
84
|
+
"type": "time",
|
|
85
|
+
"field": "timestamp",
|
|
86
|
+
"description": "Source event timestamp"
|
|
87
|
+
},
|
|
88
|
+
"active": {
|
|
89
|
+
"name": "active",
|
|
90
|
+
"type": "boolean",
|
|
91
|
+
"field": "active",
|
|
92
|
+
"description": "Whether this item is currently active"
|
|
93
|
+
},
|
|
94
|
+
"alarmKey": {
|
|
95
|
+
"name": "alarmKey",
|
|
96
|
+
"type": "string",
|
|
97
|
+
"field": "alarmKey",
|
|
98
|
+
"description": "Alarm identity: a hash of the alarm text, general or warning"
|
|
99
|
+
},
|
|
100
|
+
"text": {
|
|
101
|
+
"name": "text",
|
|
102
|
+
"type": "string",
|
|
103
|
+
"field": "text",
|
|
104
|
+
"description": "Alarm text as reported by the control"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"measures": {
|
|
108
|
+
"count": {
|
|
109
|
+
"name": "Count",
|
|
110
|
+
"description": "Number of machine alarms",
|
|
111
|
+
"type": "count",
|
|
112
|
+
"dimension": "id"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"meta": {
|
|
116
|
+
"locale": {
|
|
117
|
+
"en": {
|
|
118
|
+
"name": "Machine alarms"
|
|
119
|
+
},
|
|
120
|
+
"nl": {
|
|
121
|
+
"name": "Machinealarmen"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"operator_messages": {
|
|
127
|
+
"name": "Operator messages",
|
|
128
|
+
"description": "Operator messages reported by FactoryNebula MQTT.",
|
|
129
|
+
"type": "documents",
|
|
130
|
+
"prefix": "operator_messages",
|
|
131
|
+
"collection": {
|
|
132
|
+
"collection": "factorynebula-mqtt_operator_messages",
|
|
133
|
+
"projection": {}
|
|
134
|
+
},
|
|
135
|
+
"dimensions": {
|
|
136
|
+
"machineId": {
|
|
137
|
+
"name": "machineId",
|
|
138
|
+
"type": "string",
|
|
139
|
+
"field": "machineId",
|
|
140
|
+
"description": "Full MQTT machine topic path"
|
|
141
|
+
},
|
|
142
|
+
"machineName": {
|
|
143
|
+
"name": "machineName",
|
|
144
|
+
"type": "string",
|
|
145
|
+
"field": "machineName",
|
|
146
|
+
"description": "Readable machine name"
|
|
147
|
+
},
|
|
148
|
+
"enterprise": {
|
|
149
|
+
"name": "enterprise",
|
|
150
|
+
"type": "string",
|
|
151
|
+
"field": "enterprise",
|
|
152
|
+
"description": "Enterprise segment of the machine topic"
|
|
153
|
+
},
|
|
154
|
+
"site": {
|
|
155
|
+
"name": "site",
|
|
156
|
+
"type": "string",
|
|
157
|
+
"field": "site",
|
|
158
|
+
"description": "Site segment of the machine topic"
|
|
159
|
+
},
|
|
160
|
+
"area": {
|
|
161
|
+
"name": "area",
|
|
162
|
+
"type": "string",
|
|
163
|
+
"field": "area",
|
|
164
|
+
"description": "Area segment of the machine topic"
|
|
165
|
+
},
|
|
166
|
+
"line": {
|
|
167
|
+
"name": "line",
|
|
168
|
+
"type": "string",
|
|
169
|
+
"field": "line",
|
|
170
|
+
"description": "Machine topic code, the last segment of the machine topic"
|
|
171
|
+
},
|
|
172
|
+
"id": {
|
|
173
|
+
"name": "id",
|
|
174
|
+
"type": "string",
|
|
175
|
+
"field": "id",
|
|
176
|
+
"primaryKey": true,
|
|
177
|
+
"description": "Stable document identity"
|
|
178
|
+
},
|
|
179
|
+
"timestamp": {
|
|
180
|
+
"name": "timestamp",
|
|
181
|
+
"type": "time",
|
|
182
|
+
"field": "timestamp",
|
|
183
|
+
"description": "Source event timestamp"
|
|
184
|
+
},
|
|
185
|
+
"active": {
|
|
186
|
+
"name": "active",
|
|
187
|
+
"type": "boolean",
|
|
188
|
+
"field": "active",
|
|
189
|
+
"description": "Whether this item is currently active"
|
|
190
|
+
},
|
|
191
|
+
"message": {
|
|
192
|
+
"name": "message",
|
|
193
|
+
"type": "string",
|
|
194
|
+
"field": "message",
|
|
195
|
+
"description": "Operator message as reported by the control"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"measures": {
|
|
199
|
+
"count": {
|
|
200
|
+
"name": "Count",
|
|
201
|
+
"description": "Number of operator messages",
|
|
202
|
+
"type": "count",
|
|
203
|
+
"dimension": "id"
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"meta": {
|
|
207
|
+
"locale": {
|
|
208
|
+
"en": {
|
|
209
|
+
"name": "Operator messages"
|
|
210
|
+
},
|
|
211
|
+
"nl": {
|
|
212
|
+
"name": "Operatormeldingen"
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"programs": {
|
|
218
|
+
"name": "Active CNC programs",
|
|
219
|
+
"description": "Active CNC programs reported by FactoryNebula MQTT.",
|
|
220
|
+
"type": "documents",
|
|
221
|
+
"prefix": "programs",
|
|
222
|
+
"collection": {
|
|
223
|
+
"collection": "factorynebula-mqtt_programs",
|
|
224
|
+
"projection": {}
|
|
225
|
+
},
|
|
226
|
+
"dimensions": {
|
|
227
|
+
"machineId": {
|
|
228
|
+
"name": "machineId",
|
|
229
|
+
"type": "string",
|
|
230
|
+
"field": "machineId",
|
|
231
|
+
"description": "Full MQTT machine topic path"
|
|
232
|
+
},
|
|
233
|
+
"machineName": {
|
|
234
|
+
"name": "machineName",
|
|
235
|
+
"type": "string",
|
|
236
|
+
"field": "machineName",
|
|
237
|
+
"description": "Readable machine name"
|
|
238
|
+
},
|
|
239
|
+
"enterprise": {
|
|
240
|
+
"name": "enterprise",
|
|
241
|
+
"type": "string",
|
|
242
|
+
"field": "enterprise",
|
|
243
|
+
"description": "Enterprise segment of the machine topic"
|
|
244
|
+
},
|
|
245
|
+
"site": {
|
|
246
|
+
"name": "site",
|
|
247
|
+
"type": "string",
|
|
248
|
+
"field": "site",
|
|
249
|
+
"description": "Site segment of the machine topic"
|
|
250
|
+
},
|
|
251
|
+
"area": {
|
|
252
|
+
"name": "area",
|
|
253
|
+
"type": "string",
|
|
254
|
+
"field": "area",
|
|
255
|
+
"description": "Area segment of the machine topic"
|
|
256
|
+
},
|
|
257
|
+
"line": {
|
|
258
|
+
"name": "line",
|
|
259
|
+
"type": "string",
|
|
260
|
+
"field": "line",
|
|
261
|
+
"description": "Machine topic code, the last segment of the machine topic"
|
|
262
|
+
},
|
|
263
|
+
"id": {
|
|
264
|
+
"name": "id",
|
|
265
|
+
"type": "string",
|
|
266
|
+
"field": "id",
|
|
267
|
+
"primaryKey": true,
|
|
268
|
+
"description": "Stable document identity"
|
|
269
|
+
},
|
|
270
|
+
"timestamp": {
|
|
271
|
+
"name": "timestamp",
|
|
272
|
+
"type": "time",
|
|
273
|
+
"field": "timestamp",
|
|
274
|
+
"description": "Source event timestamp"
|
|
275
|
+
},
|
|
276
|
+
"active": {
|
|
277
|
+
"name": "active",
|
|
278
|
+
"type": "boolean",
|
|
279
|
+
"field": "active",
|
|
280
|
+
"description": "Whether this item is currently active"
|
|
281
|
+
},
|
|
282
|
+
"program": {
|
|
283
|
+
"name": "program",
|
|
284
|
+
"type": "string",
|
|
285
|
+
"field": "program",
|
|
286
|
+
"description": "Active CNC program number"
|
|
287
|
+
},
|
|
288
|
+
"name": {
|
|
289
|
+
"name": "name",
|
|
290
|
+
"type": "string",
|
|
291
|
+
"field": "name",
|
|
292
|
+
"description": "Active CNC program name"
|
|
293
|
+
},
|
|
294
|
+
"path": {
|
|
295
|
+
"name": "path",
|
|
296
|
+
"type": "string",
|
|
297
|
+
"field": "path",
|
|
298
|
+
"description": "Path of the active CNC program on the control"
|
|
299
|
+
},
|
|
300
|
+
"execution": {
|
|
301
|
+
"name": "execution",
|
|
302
|
+
"type": "string",
|
|
303
|
+
"field": "execution",
|
|
304
|
+
"description": "Block of the active CNC program being executed"
|
|
305
|
+
},
|
|
306
|
+
"programLine": {
|
|
307
|
+
"name": "programLine",
|
|
308
|
+
"type": "number",
|
|
309
|
+
"field": "programLine",
|
|
310
|
+
"description": "Current CNC program line number"
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
"measures": {
|
|
314
|
+
"count": {
|
|
315
|
+
"name": "Count",
|
|
316
|
+
"description": "Number of machine programs",
|
|
317
|
+
"type": "count",
|
|
318
|
+
"dimension": "id"
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
"meta": {
|
|
322
|
+
"locale": {
|
|
323
|
+
"en": {
|
|
324
|
+
"name": "Active CNC programs"
|
|
325
|
+
},
|
|
326
|
+
"nl": {
|
|
327
|
+
"name": "Actieve CNC-programma’s"
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
"semanticTriggers": {},
|
|
334
|
+
"metrics": {
|
|
335
|
+
"machine": {
|
|
336
|
+
"name": "CNC machine",
|
|
337
|
+
"description": "Part count gauge and machine availability/status.",
|
|
338
|
+
"source": {
|
|
339
|
+
"collection": "factorynebula-mqtt_machine"
|
|
340
|
+
},
|
|
341
|
+
"dimensions": {
|
|
342
|
+
"machineId": {
|
|
343
|
+
"name": "Machine",
|
|
344
|
+
"description": "Full MQTT machine topic path",
|
|
345
|
+
"expr": "metadata.machineId"
|
|
346
|
+
},
|
|
347
|
+
"enterprise": {
|
|
348
|
+
"name": "Enterprise",
|
|
349
|
+
"description": "Enterprise segment of the machine topic",
|
|
350
|
+
"expr": "metadata.enterprise"
|
|
351
|
+
},
|
|
352
|
+
"site": {
|
|
353
|
+
"name": "Site",
|
|
354
|
+
"description": "Site segment of the machine topic",
|
|
355
|
+
"expr": "metadata.site"
|
|
356
|
+
},
|
|
357
|
+
"area": {
|
|
358
|
+
"name": "Area",
|
|
359
|
+
"description": "Area segment of the machine topic",
|
|
360
|
+
"expr": "metadata.area"
|
|
361
|
+
},
|
|
362
|
+
"line": {
|
|
363
|
+
"name": "Machine topic code",
|
|
364
|
+
"description": "Machine topic code, the last segment of the machine topic",
|
|
365
|
+
"expr": "metadata.line"
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
"measures": {
|
|
369
|
+
"part_count": {
|
|
370
|
+
"name": "Part count",
|
|
371
|
+
"description": "Absolute reported counter value; counter source can be selected per machine.",
|
|
372
|
+
"type": "gauge",
|
|
373
|
+
"expr": "data.part_count"
|
|
374
|
+
},
|
|
375
|
+
"status": {
|
|
376
|
+
"name": "Machine status",
|
|
377
|
+
"description": "Machine status reported by the control",
|
|
378
|
+
"type": "state_set",
|
|
379
|
+
"expr": "data.status_code",
|
|
380
|
+
"valueLabels": {
|
|
381
|
+
"-1": "Unknown",
|
|
382
|
+
"0": "Offline",
|
|
383
|
+
"1": "Running",
|
|
384
|
+
"2": "Idle",
|
|
385
|
+
"3": "Hold",
|
|
386
|
+
"4": "Alarm",
|
|
387
|
+
"5": "Emergency stop"
|
|
388
|
+
}
|
|
389
|
+
},
|
|
390
|
+
"availability": {
|
|
391
|
+
"name": "Availability",
|
|
392
|
+
"description": "Whether the machine is connected to FactoryNebula",
|
|
393
|
+
"type": "state_set",
|
|
394
|
+
"expr": "data.availability_code",
|
|
395
|
+
"valueLabels": {
|
|
396
|
+
"0": "Offline",
|
|
397
|
+
"1": "Online"
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|