Aniston NexusDocs
Open Aniston Nexus

Catalogue and contributions

Install content from the built-in catalogue, publish from the contributor workspace and keep a tenant under version control.

The catalogue (IoT Hub page)

The IoT Hub page of Aniston Nexus is served by your own installation. It lists the widgets, rule chains and other items of the Aniston content library (Database/ in the repository, baked into the nexus-services image) plus items published from the contributor workspace. Browsing and installing never contact an external marketplace, and install reports stay on your server (they only feed the install counts).

How it fits together:

PartWhere
Catalogue APInexus-services, /api/hub/... (same origin through nginx)
ContentDatabase/catalogue/catalogue.json and the files it lists (solutions/...)
InstallerThe platform's own IoT Hub installer (/api/iot-hub/...), which fetches the item from the catalogue on the internal network (IOT_HUB_BASE_URL)
Installed itemsRecorded per tenant by the platform (IoT Hub > Installed); the install plan marks items that are already installed, and updates are offered when the catalogue has a newer version

Devices lists onboarding packages (solutions/device-packages/): Water Level Unit (MQTT, HTTP) and Generic telemetry device (MQTT, HTTP, CoAP). The wizard asks for the device name, creates or reuses the profile, creates the device and shows the exact command to send a first reading with its token and your server's address.

Solutions: one-click install

Whole solutions (Water, BMS, Smart Campus, Kafka export) need more than the single-item installer does (tenant resources, the 3D map libraries, SCADA symbols, alarm rules, profile dashboards, customer assignments). IoT Hub > Solutions (/iot-hub/solutions, tenant administrators) installs a whole package into your tenant:

  • The list shows each package with its version, contents, dependencies (required or optional, installed or not) and its state on your tenant (installed, partly installed, not installed), from the names of its rule chains, profiles, dashboards and widget bundles.
  • Preview is a dry run: every lookup is made, nothing is changed, and the result lists what would be created, updated (with the first field that differs) or left unchanged. Install / Update shows that preview first and applies it after you confirm. Also install required dependencies installs them first, in the catalogue's install order (Smart Campus needs Water).
  • The installer acts with your own login, so the platform checks every change against your permissions. It matches by name, as the package tool does (rule chains, profiles and notification items by name, dashboards and customers by title, widget types by FQN, bundles by alias, alarm rules by name on their profile, SCADA symbols and JS resources by key), updates existing items in place and keeps their customer assignments and profile default dashboards. Running it again on an unchanged tenant changes nothing (everything is reported as unchanged).
  • What it cannot do from a tenant administrator's session is listed as manual steps, never skipped silently: secrets it does not have (the Water rule chain's ingest secret, the optional alarm-notification node, the nexus-services API key in the services widgets, Kafka credentials), the SequentialByOriginator queue timeout (system administrator), NEXUS_COMMANDS_ENABLED for the BMS and Smart Campus control widgets, device packages (installed per device under Devices) and IoT Gateway sample configurations.
  • Rule chain placeholders REPLACE_WITH_<NAME> are filled from the tenant secret store (a secret called <NAME>, see Security) or from nexus-services' own WATER_INGEST_SECRET / WATER_NOTIFY_ALARMSECRET; otherwise a value already set on the installed node is kept.

API (tenant administrators, X-Authorization: Bearer <token>): GET /api/water/v1/solutions and POST /api/water/v1/solutions/{packageId}/install?dryRun=true&withDependencies=true. Real installs are written to the activity log. The package tool still works from a shell:

python3 -I Database/tools/nexus_content.py install water --with-deps --url http://localhost:8080 --user <tenant admin> --password <password>

If the page shows "catalogue … not running", nexus-services is down: docker compose ps nexus-services.

The contributor workspace

IoT Hub > Become a creator opens the contributor workspace of this installation. No public sign-up and no Google or GitHub login is involved: every tenant administrator is a contributor.

  1. New contribution: upload a JSON file (an exported widget, dashboard, rule chain or calculated field/alarm rule) or paste it. Check validates it.
  2. Fix the errors. Validation rejects unsupported rule nodes, aliases bound to fixed entity IDs, stored secrets, REPLACE_WITH_… placeholders and names that clash with a library item; it warns about external hosts and CDN libraries.
  3. Submit for review. Reviewers (NEXUS_HUB_REVIEWERS, default: every tenant administrator) approve it, which publishes it to the catalogue, or request changes with a comment. Whether authors may approve their own submissions is set by NEXUS_HUB_ALLOW_SELF_REVIEW (default true, for single-administrator sites).
  4. A published item is frozen. New version starts the next version of the same item; it must have a higher version number.
  5. Download repository package gives a zip for Database/contrib/<name>/ so the approved item can be committed and versioned with the code.

Drafts with AI

Generate draft with AI turns a description ("raise an Overload alarm when currentA is above 30 A on pump devices") into a rule chain, dashboard, widget, alarm rule or calculated field draft. It uses the AI model set up under AI models (a local Ollama model keeps everything on site), with the same permissions, rate limit and activity log as the assistant. The model is told the schema of the type, the rule nodes this platform has, and to bind by profile, name or relation, never by entity ID. Descriptions that look like they contain a password, key or token are refused before anything is sent. The answer is validated like an upload; the draft shows its errors and warnings, and nothing is published or applied until a person submits it and a reviewer approves it.

Drafts, the audit trail and published versions are kept in the services-data volume (/opt/nexus-services/data/hub), which the backup script includes.

The content library (Database/)

Database/ in the repository is the versioned source of reusable content. It is not a database backup.

Command (from the repository root)Does
python3 -I Database/tools/nexus_content.py buildHashes every package file and writes the catalogue index
python3 -I Database/tools/nexus_content.py validate --strictChecks manifests, files, references, secrets and that the index is current (CI runs it)
python3 -I Database/tools/nexus_content.py export --out <dir> …Exports dashboards, widgets, profiles, rule chains, alarm rules, notifications, images and resources from a running installation
python3 -I Database/tools/nexus_content.py diff <export dir>Compares an export with the repository: same, changed in the UI, only live, only in the repository
python3 -I Database/tools/nexus_content.py install …Installs packages in dependency order with their installers

See Database/README.md for the package format.

Version control of a tenant

The platform's own Version control (Git sync of a tenant's entities, under Advanced features) also works against your own Git server; it is independent of the catalogue.