bwssytems / ha-bridge

Home automation bridge that emulates a Philips Hue light system and can control other systems such as a Vera, Harmony Hub, Nest, MiLight bulbs or any other system that has an http/https/tcp/udp interface. This is a compact impl to run on small format computers. This is impl started from this project https://github.com/armzilla/amazon-echo-ha-bridge.
Apache License 2.0
1.45k stars 199 forks source link

how to write "pretty print" JSON for the HA-Bridge .db files (device.db, group.db) #1299

Closed jayjupdhig closed 3 years ago

jayjupdhig commented 3 years ago

Because that is much more easy to debug...

Thank you for your feedbacks!! :-)

With kind regards, Jan

bwssytems commented 3 years ago

http://jsonprettyprint.net/

jayjupdhig commented 3 years ago

Is that possible or not? Thanks in advance for your feedback.

If there are any questions, so please don't heisitate to ask me.

bwssytems commented 3 years ago

Just cut and paste it into the json pretty print on the web page listed above. There are tools you can download as well. There is no real need for the ha-bridge to provide that in itself.

jayjupdhig commented 3 years ago

Thank you very much for your feedback.

I meant the the habridge will create pretty-printed files... much more easy to debug.

Or can i create a "hook" that executes a shellscript with uses ´jq´ and ´sponge´ (e.g.) for format the habridge JSON config files?

jayjupdhig commented 3 years ago

https://github.com/bwssytems/ha-bridge/issues/1300

jayjupdhig commented 3 years ago

Is that not possible??

jayjupdhig commented 3 years ago

anyway...