X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=myq_renderer.py;h=ca405346dc10f88d98689886ae198ecd98195e8b;hb=d6990436e08a57ce211b10058dc61fb223cb94ec;hp=91e946b9a621291046e56f4e681f2eb80ce9bd74;hpb=f2f05b2edb16cc6a8c4e183e5ae3451d291cc428;p=kiosk.git diff --git a/myq_renderer.py b/myq_renderer.py index 91e946b..ca40534 100644 --- a/myq_renderer.py +++ b/myq_renderer.py @@ -89,7 +89,7 @@ class garage_door_renderer(renderer.debuggable_abstaining_renderer): hours = divmod(days[1], constants.seconds_per_hour) minutes = divmod(hours[1], constants.seconds_per_minute) width = 0 - if is_night and door.get_status() == "open": + if is_night and door.state == "open": color = "border-color: #ff0000;" width = 15 else: @@ -115,6 +115,6 @@ class garage_door_renderer(renderer.debuggable_abstaining_renderer): return None # Test -#x = garage_door_renderer({"Test" : 1}) -#x.periodic_render("Poll MyQ") -#x.periodic_render("Update Page") +x = garage_door_renderer({"Test" : 1}) +x.periodic_render("Poll MyQ") +x.periodic_render("Update Page")