Quick Start
Run your first Miravo simulation and see data flowing in under two minutes. Start with Docker, subscribe to MQTT topics, inject faults, and switch templates.
Get data flowing over industrial protocols in under two minutes.
1. Start Miravo
Section titled “1. Start Miravo”docker run --rm -p 1883:1883 -p 8080:8080 amineamaach/miravo:latestbunx miravo start./miravo startMiravo auto-selects the smart-factory template and starts an embedded MQTT broker on port 1883.
2. Subscribe to Data
Section titled “2. Subscribe to Data”Open a second terminal and subscribe to all topics using any MQTT client:
Using mosquitto_sub (install: apt install mosquitto-clients or brew install mosquitto):
mosquitto_sub -h 127.0.0.1 -t '#' -vOr using MQTTX CLI (install: npm install -g mqttx):
mqttx sub -t '#' -h localhostTopics follow the Unified Namespace structure:
MiravoWorks/smart-factory/production/line-1/belt-conveyor-001/speed_feedbackMiravoWorks/smart-factory/production/line-1/centrifugal-pump-001/discharge_pressureMiravoWorks/smart-factory/utilities/compressed-air/air-compressor-001/header_pressureEach message is a JSON payload:
{ "value": 5.21, "timestamp": 1710000000000, "quality": "good", "unit": "bar", "instanceId": "centrifugal-pump-001", "model": "centrifugal-pump", "dataType": "Double"}3. Check Status
Section titled “3. Check Status”View the simulation state through the admin API:
curl -s http://127.0.0.1:8080/state | jq .Or open the web console at http://127.0.0.1:8080 for a real-time dashboard with instance status, metrics, and live events.
4. Inject a Fault
Section titled “4. Inject a Fault”Trigger a fault on a running pump:
curl -s http://127.0.0.1:8080/commands \ -H 'content-type: application/json' \ -d '{"type":"triggerFault","instanceId":"centrifugal-pump-001","fault":"cavitation"}'Watch the MQTT subscriber — vibration values spike, flow rate drops.
5. Try Another Template
Section titled “5. Try Another Template”docker run --rm -p 1883:1883 -p 8080:8080 \ amineamaach/miravo:latest start --template water-treatmentmiravo start --template water-treatmentFour built-in templates are available: smart-factory, water-treatment, commercial-building, and backup-power.
Next Steps
Section titled “Next Steps”- Core Concepts — Understand twins, templates, generators, and the tick loop
- Twin Models — Define your own asset types
- CLI Reference — All commands and options