aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2013-10-10 20:50:22 +0200
committerGuido Günther <agx@sigxcpu.org>2013-10-10 20:50:22 +0200
commit5b12b03d024015e0fbfceaf4652c818c56d86725 (patch)
treed0520e68d4892f03fde308e00f4b4a52053e4861
parentb8bcb1344f4f32d352bda7aa21e0d0b96ff4217a (diff)
Use an area graph for the switches
so the graphs don't overlap
-rwxr-xr-xpellematic-switches6
1 files 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