Mercurial > code > home > repos > homeauto
changeset 840:afc74853a1a4
don't break automsg when livingroom temp is missing
Ignore-this: 44e1b7c6c671833338af6ad99d93554d
darcs-hash:20120807031829-312f9-ccb09e5f8ae3121d95b2ebfae7c57991b23157e3
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Mon, 06 Aug 2012 20:18:29 -0700 |
parents | 9cf01cee74f6 |
children | ddc2cdbfde50 |
files | service/frontDoorMessage/automsg.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/service/frontDoorMessage/automsg.py Mon Jun 25 00:50:33 2012 -0700 +++ b/service/frontDoorMessage/automsg.py Mon Aug 06 20:18:29 2012 -0700 @@ -17,7 +17,7 @@ now = datetime.now() line = "%02d:%02d %02dF in, %02dF out" % (now.hour, now.minute, - allTemp['livingRoom'], + allTemp.get('livingRoom', 0), allTemp.get('frontDoor', 0)) fd.put("lastLine", payload=line) time.sleep(60)