-
Notifications
You must be signed in to change notification settings - Fork 10
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
EmonHub.conf configuration editor #3
Labels
Comments
Initial implementation: https://github.com/emoncms/config/tree/editor Python loader:
|
Python code above included in emonhub development branch: https://github.com/openenergymonitor/emonhub/compare/redis_config_interface |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At the moment the emonhub.conf configuration editor is a simple text file editor:
It would be really nice to have a web ui version of the editor to make configuration easier to edit.
The configuration format used is python ConfigObj. There is no php parser of the configobj format. Eemoncms could load the config file via a socket request, MQTT or redis key made available by emonhub.
The configuration would be shared as a JSON object and changes transposed back into the original confobj object in emonhub when edits are made.
Basic example of reading from ConfigObj file, changing the apikey and writing the change back to the original file:
If the settings are transfered to emoncms as a json object, the json changes need to be merged with the original settings in the configobj class, preserving orignal comments, ordering, spacing and indentation:
The text was updated successfully, but these errors were encountered: