Hi!
I want to display a chart which shows the (dis-)charging of the battery of my (Linux) notebook as xx% full.
I'm filling the chart with a function node.
BTW: I get the result from a exec node, which calls acpi -bi | head -1
.
But I want the line while discharging in orange and the (same?) line while charging in green.
So I'm just changing the topic
if (battery.payload)
{werte.topic = "discharge"}
else
{werte.topic = "charge"}
But the second line always make a straight line to the point, where I change the charge state.
How do I generate a single line with different colors for charging and discharging?