gismo141 / homebridge-server

Server plugin for homebridge
https://gismo141.github.io/configure-your-homebridge-2/
152 stars 20 forks source link

Present the user an editable JSON-tree for parameter manipulation #34

Open gismo141 opened 7 years ago

gismo141 commented 7 years ago

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

fafoulon commented 7 years ago

I agree it would be really practical.

normen commented 7 years ago

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.

gismo141 commented 7 years ago

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!

normen commented 7 years ago

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