Skip to content

Latest commit

 

History

History
60 lines (39 loc) · 1.35 KB

File metadata and controls

60 lines (39 loc) · 1.35 KB

Incubator Digital Twin

This example reuses the Incubator digital twin. Only the configuration and lifecycle scripts are explained on this page.

Digital Twin Configuration

There is one configuration file: simulation.conf. The RabbitMQ and InfluxDB configuration parameters need to be updated.

Lifecycle Phases

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.

Run the example

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:

Create

Potentially updates the system and installs Python dependencies.

lifecycle/create

Execute

Executes the Incubator digital twin with a mock physical twin. Pushes the results in the terminal, incubator/log.log, and in InfluxDB.

lifecycle/execute

Clean

Removes the output log file.

lifecycle/clean