Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SFOS] Add automatic generation of configuration #15

Closed
rinigus opened this issue Jul 6, 2016 · 1 comment
Closed

[SFOS] Add automatic generation of configuration #15

rinigus opened this issue Jul 6, 2016 · 1 comment

Comments

@rinigus
Copy link
Owner

rinigus commented Jul 6, 2016

Taking into account that most of the users on Sailfish would use default directories and makeconfig script to generate configuration, it should be possible to generate the configuration automatically. Proposed scheme:

  • user-specified dirs (use the current one) are checked for collectd datasets (like load/load.rrd). If this test is passed, proceed
  • makeconfig is run against the specified dir and its stdout received by c++ object.
  • makeconfig output is checked on whether its valid JSON (see if all required objects are defined)
  • if all tests are passed, give the loaded file in string form to QML. In QML, proceed with loading configuration, as usual.
@rinigus
Copy link
Owner Author

rinigus commented Jul 11, 2016

fixed

@rinigus rinigus closed this as completed Jul 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant