Closed zehnm closed 4 years ago
Enhancements are merged into develop branch and will be included in the next release.
Command line options:
mzehnder$ ./remote --help
Aufruf: ./remote [Optionen]
YIO remote app
Optionen:
-h, --help Zeigt diese Hilfe an.
-v, --version Zeigt Versionsinformation an.
-p, --profile <NAME> Use configuration profile.
-c, --cfg <FILE> Use configuration file.
--cfg-schema <FILE> Use configuration schema file.
--hw-cfg <FILE> Use hardware configuration file.
--hw-schema <FILE> Use hardware configuration schema file.
--validate Validate json configuration files and exit.
Note: German texts are default Qt strings and auto-translated based on OS country settings. The custom texts still need to be translated.
--profile
option allows simple configuration profiles.foobar
will try to load config-foobar.json
and hardware-foobar.json
(with their corresponding schema files).--validate
options only validates the json configuration files and then exit.ajv validate -s config-schema.json -d config.json
) since the validator doesn't fully support json schema v7!
Enhance the app and hardware configuration handling.
Expected Behavior or Design
The following features should be implemented:
If a device is disabled then simply use the mock implementation.
At the moment the configuration file names are hard coded.
Current Behavior or Design
Only a small part of the hardware devices can be configured in hardware.json. However, the devices are mostly prepared to be configured in the hardware factory. What is missing is some glue code, enhancing the configuration file and exposing missing parameters in the devices.
Possible Solution
E.g. add profile name as configuration file suffix
This allows to the factory to do whatever it needs to do for a specific profile.