Replies: 6 comments 2 replies
-
Thanks for sharing your idea. I'll take a look |
Beta Was this translation helpful? Give feedback.
-
@mirams I've implemented your idea in https://github.com/slipx06/sunsynk-power-flow-card/releases/tag/v4.11.0. Give it a try. The logic is slightly different. It requires the global card attribute |
Beta Was this translation helpful? Give feedback.
-
Works a treat, thanks very much for including it. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Ok great. I'll take a look at the revised logic. |
Beta Was this translation helpful? Give feedback.
-
I've applied a more linear scaling affect in v4.1.2 |
Beta Was this translation helpful? Give feedback.
-
I played around with altering the line thickness (and circle size) to represent power flow, and I think it makes the diagram a bit more useful in terms of seeing what is happening at a glance, without having to read all the numbers.
Here's a screenshot:
Some of the asthetics might want tweaking in terms of the sizes of the circles relative to lines.
Code changes were pretty simple with one method to set the line width (I guess you'd want peak power flow to be configurable, to set these more flexibly):
(a log-scale might be nicer, I have a bit more resolution at the bottom with only 500W to get to linewidth of 2)
with calls to this from the top:
and changes to the svg like this
It's not a proper pull request because I just found the lines I need for my diagram, but hopefully you get the idea
Beta Was this translation helpful? Give feedback.
All reactions