diff --git a/hue_off.py b/hue_off.py index dc02e97..b6e88d5 100755 --- a/hue_off.py +++ b/hue_off.py @@ -77,22 +77,27 @@ def main(argv): raw_input("Press enter to continue") """ - """ + # Read in status from last time app ran + # try: with open("off.lights") as f: prev_status = f.readlines() f.close() + except: print "Error reading file." + # Print the read-in contents of file for line in prev_status: print(line) + + """ raw_input("Press Enter") print(prev_status[1]) raw_input("Press Enter Again") #if prev_status[1] == bridge: - """ + """ try: diff --git a/off.lights b/off.lights new file mode 100644 index 0000000..240fc75 --- /dev/null +++ b/off.lights @@ -0,0 +1,8 @@ +20160412-145432 +10.3.0.102 +Living Room FL2 +Living Room FL1 +Ugly FL +Living Room Pharmacy +Bedroom 1 +Back Door