Open christianparpart opened 1 year ago
I think it's a very good idea, but I'm not sure if this is something for the SDK, at least up until now we don't have any CLI tools in the SDK and it seems like a tool like this might be useful even for people not developing with the SDK (the tool could just use the microgrid API directly). Maybe it could be added to the frequenz-api-microgrid
repo? @tiyash-basu-frequenz opinions?
I'd suggest not adding it to the microgrid API now. Because:
That said, we have an internal tool which we used in the early days during development of the microgrid API and the server. I'll share it with you.
What's needed?
Having looked at the pure numerical output today, I think it might be an awesome addition for improved and quicker understanding the component graph by having it rendered as graph (of components).
Proposed solution
For this we might want to look into graphviz's .dot file syntax. This could be used by the user to either feed it into the
dot
CLI tool or directly render it via Sixel to the terminal, if desired.Use cases
I am aware that this doesn't sound like a top priority feature, but visualization might help quickly understanding a graph or even be good for passing over to others for inspection (better than numbers).
Alternatives and workarounds
number printing, as-is.
Additional context
https://graphviz.org/