Application Deployment Context¶
When your application connects to Kelvin, it receives runtime information about its deployment environment. The KelvinApp instance provides access to:
| Attribute | Description |
|---|---|
| app.app_configuration | Application-specific configuration settings. |
| app.inputs | Input datastreams configured for your application. |
| app.outputs | Output datastreams configured for your application. |
| app.assets | The assets your application is deployed to (most important). |
Working with Configuration¶
Note
You will also need to setup the app.yaml properly for this feature to function properly.
You can read the full documentation on App Configurations in the Develop SmartApps section here.
This an example on how to access the global configuration variables in a Kelvin SmartApp™:
| Get Configuration Values Python Example | |
|---|---|
Info
app.app_configuration will only be available after app.connect()
You can also get nested App Configuration values;
| Get Nested Configuration Values Python Example | |
|---|---|
Working with Assets¶
The app.assets dictionary contains all assets available to your application. Each asset provides access to its properties, parameters, and datastreams:
Assets are the core resources in Kelvin, representing physical or logical entities (machines, sensors, systems, etc.). Your application interacts with assets by reading from their datastreams and publishing data or control changes back to them.