homebridge-server icon indicating copy to clipboard operation
homebridge-server copied to clipboard

Present the user an editable JSON-tree for parameter manipulation

Open gismo141 opened this issue 8 years ago • 4 comments

The parameters could be read from the plugins repository and an config_sample.json-file or equivalent.

gismo141 avatar Jan 31 '17 21:01 gismo141

I agree it would be really practical.

fafoulon avatar Mar 08 '17 08:03 fafoulon

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.

normen avatar Jun 15 '17 09:06 normen

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!

gismo141 avatar Jun 15 '17 16:06 gismo141

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 ;)

normen avatar Jun 18 '17 15:06 normen