From 5b12b03d024015e0fbfceaf4652c818c56d86725 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Thu, 10 Oct 2013 20:50:22 +0200 Subject: Use an area graph for the switches so the graphs don't overlap --- pellematic-switches | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pellematic-switches b/pellematic-switches index 853a587..6d63d1c 100755 --- a/pellematic-switches +++ b/pellematic-switches @@ -53,14 +53,16 @@ graph_category Heating graph_info This graph shows the values for different on/off switches """ + draw = "AREA" out = fetch_raw(url) for item in out: if item['name'] in items: name = fixup_name(item) print "%s.label %s" % (canon(name), name) print "%s.type GAUGE" % canon(name) - thickness = 1 if name.endswith('soll') else 2 - print "%s.draw LINE%d" % (canon(name), thickness) + print "%s.draw %s" % (canon(name), draw) + if draw == "AREA": + draw = "STACK" def fetch_raw(url): # Perform authentication and get the cookie -- cgit v1.2.3