aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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