This example reuses the Incubator digital twin. Only the configuration and lifecycle scripts are explained on this page.
There is one configuration file: simulation.conf
.
The RabbitMQ and InfluxDB configuration parameters need to be updated.
The lifecycles that are covered include:
Lifecycle Phase | Completed Tasks |
---|---|
Create | Potentially updates the system and installs Python dependencies |
Execute | Executes the Incubator digital twin and produces output in the terminal and in incubator/log.log. |
Clean | Removes the log file. |
To run the example, change your present directory.
cd /workspace/examples/digital_twins/incubator
If required, change the execute permission of lifecycle scripts you need to execute, for example:
chmod +x lifecycle/create
Now, run the following scripts:
Potentially updates the system and installs Python dependencies.
lifecycle/create
Executes the Incubator digital twin with a mock physical twin. Pushes the results in the terminal, incubator/log.log, and in InfluxDB.
lifecycle/execute
Removes the output log file.
lifecycle/clean