Open gismo141 opened 7 years ago
I agree it would be really practical.
https://github.com/josdejong/jsoneditor
This is a nice JSON editor written in JavaScript, it should allow editing the config.json file conveniently even without templates. I looked into adding it but with all the HTML being generated in strings I didn't quite find the place to insert it.
Hi @normen!
Thanks for the help so far - the editor looks great!
A good starting point is the v2.0.0 branch, there are still some problems in removing and adding accessories but for UI-improvements its easier than the release version. There is a content
-folder, where the websites are prepared, maybe you could implement the editor there?
Thanks again and hope I could help!
Hey. I'll have a look, currently I am working on a few differnet homebridge plugins and another app. When my homebridge setup settles I might look into this again. It shouldn't be that hard as the JSON data is already in the browser so if anyone wants to take a whack at it before you now know about jsoneditor ;)
The parameters could be read from the plugins repository and an
config_sample.json
-file or equivalent.