User Tools

Site Tools


onboarding:mobile:mdctranslatoruiconfig

This is an old revision of the document!


MDC Translator Ui Configuration for Mobile

Anna Dowling 2022/05/27 11:25

Overview

The mdc-translator application is leveraged for both mobile and ems-nova to process performance and configuration parameters and assign UiProperty entries to them. At a high level these values can be configured using YAML files per technology which are loaded on bootstrap by the translator application. They can also be inserted via the database directly. (See translator README linked above for more information).

These entries are used to render the performance and configuration cards on the device or component overview pages in mobile. If a UiProperty is found on a parameter object, it uses the UiProperty specification to attempt to render the parameter in a card.

See sample of UiProperty object for mobile below:

 "uiProperty": [
                    {
                        "title": "PSU Current 1",
                        "uiType": "GAUGE",
                        "row": 2,
                        "column": 1,
                        "order": 12,
                        "uiCategory": "POWER",
                        "properties": {
                            "showOnComponent": "true",
                            "showOnOverView": "true"
                        }
                    }
                ],
onboarding/mobile/mdctranslatoruiconfig.1653647774.txt.gz · Last modified: 2022/05/27 11:36 by 10.91.110.100