Aniston NexusDocs
Open Aniston Nexus

Integrations

Send alarms, work orders and meter readings to SAP PM, IBM Maximo, ServiceNow or any REST API, bring data in from other IoT clouds, and store their passwords as secrets.

Tenant administrators open Automation > Integrations. The page has four tabs:

TabWhat it does
ConnectorsSends alarms, work orders and daily meter readings to maintenance and ERP systems
Delivery logEverything sent to those systems, with retry
Cloud bridgeBrings device data in from other IoT clouds, MQTT brokers, Google Cloud Pub/Sub and webhooks
SecretsPasswords and keys stored encrypted, used by connectors as secret:NAME

Switch it on

The integrations run in the nexus-services companion service and each part is off by default. Set the variables in docker-local/services/water.env (production: deploy/production/.env) and restart nexus-services:

TabSetting
Connectors and Delivery logWATER_CONNECTORS_ENABLED=true
Cloud bridgeWATER_CLOUDBRIDGE_ENABLED=true
SecretsNEXUS_SECRETS_ENABLED=true and a master key NEXUS_SECRETS_MASTER_KEY (32 bytes, openssl rand -base64 32) or NEXUS_SECRETS_MASTER_KEY_FILE

A tab whose part is off says so and names the variable. Only tenant administrators can use the page.

Connectors

Add connector and choose the system: SAP Plant Maintenance, IBM Maximo, ServiceNow or Other REST API. The system fills in sensible defaults for paths and message templates.

FieldWhat to enter
ID2-64 characters a-z, 0-9, - or _. Cannot be changed later
NameShown in lists and the delivery log
Base addressThe system's https:// address
Sign-inNone, user name and password, bearer token, API key header, or OAuth 2.0 client credentials (token address, client ID, client secret, optional scope and audience; credentials in the Authorization header or the request body)
OverridesOptional JSON that replaces defaults of the chosen system: events (paths, templates, filters such as alarm types and severities), headers, value maps, CSRF

Passwords, tokens and client secrets can be typed in or refer to a stored secret: secret:NAME, env:NAME or file:/run/secrets/name. A stored value is shown as ********; leave it to keep it.

Row actions:

  • Check now looks for new work orders and alarms and delivers them.
  • Deliver now sends everything that is due instead of waiting for the next cycle.
  • Send meter readings sends the readings of a chosen day (default yesterday).
  • Preview or test: Preview shows the exact request without sending anything; Send test queues one event for this connector only. Without event data a built-in sample is used.
  • Deleting a connector also deletes its delivery log entries.

Check the request in Preview against your system before switching a connector on: field names and paths differ between installations of the same product.

Delivery log

Every event sent to a connector, newest first, filtered by connector, status and event (alarm, work order, meter reading). Failed deliveries are retried automatically, waiting twice as long after each attempt (30 seconds up to one hour by default); Retry now tries one again at once. Open a row for the event time, the next attempt, the last error, the request body and the answer.

Cloud bridge

Add connector and choose how the data arrives:

TypeHow it works
MQTTAniston Nexus subscribes to a broker: The Things Network, AWS IoT Core, Azure Event Grid, HiveMQ or any MQTT 3.1.1 broker. Enter the broker address (ssl://host:8883, tcp://, ws://, wss://), client ID, user name, password and up to 50 topic filters with their QoS
WebhookThe other cloud posts to an address on this server with a secret (Sigfox, Azure Event Grid, AWS IoT rules, any HTTP sender). The secret is shown once after saving; New webhook secret replaces it
Google Pub/SubAniston Nexus pulls from a subscription with a service account key (best stored as secret:NAME)

Message format picks a ready mapping (for example The Things Network uplinks); Mapping (JSON) changes single fields: device name paths, telemetry, attributes and binary payload decoders. Create unknown devices creates a device with the chosen profile the first time an unknown name arrives.

Certificates for MQTT are files on the nexus-services server (mounted read-only); the page takes their paths.

  • Test mapping: paste a message as the other cloud sends it and see the readings it becomes. Nothing is stored.
  • Known devices lists the devices the bridge has seen with their Aniston Nexus device; Forget looks one up again on its next message.
  • The list shows per connector whether it is connected or receiving, and how many messages were stored, skipped or dropped.
  • Service settings shows the settings that apply to all connectors (device data address, queue size, delivery attempts, size limits, MQTT and Pub/Sub timing, webhook address). They are set on the nexus-services server and are read-only here.

Secrets

Add secret stores a password, token or key encrypted (AES-256-GCM) with a name such as sap-password (start with a letter; letters, digits, _, . or -; up to 128 characters). Use it in any connector field as secret:sap-password. The value cannot be read back, only replaced. Change value or description keeps the name, so connectors pick up the new value. A secret marked "Encrypted with an older key" is re-encrypted when you save a new value. Deleting a secret stops the connectors that use it.

REST API

All on nexus-services under /api/water/v1 (the same address as the UI):

PathWhat
/connectors/presets, /connectors/targets, /connectors/targets/{id}Systems and connectors
/connectors/targets/{id}/preview, /connectors/targets/{id}/testPreview a request, queue a test event
/connectors/poll, /connectors/send, /connectors/meter-readingsCheck now, deliver now, send meter readings
/connectors/outbox, /connectors/outbox/{id}/retryDelivery log, retry one delivery
/cloudbridge/connectors, /cloudbridge/connectors/{id}/test, /cloudbridge/connectors/{id}/secretCloud connectors, test mapping, new webhook secret
/cloudbridge/status, /cloudbridge/devices, /cloudbridge/presets, /cloudbridge/decodersStatus, known devices, message formats, binary decoders
GET /cloudbridge/settingsThe service-wide settings, read-only
/secrets, /secrets/{name}Tenant secrets (values are write-only)

The package READMEs in nexus-services/src/main/java/com/aniston/nexus/services/{connectors,cloudbridge}/ list every call and field.