From 080d3bd0b40aaab62d182d7760e0bbf71d5c4cb1 Mon Sep 17 00:00:00 2001 From: Rich Date: Sat, 18 Mar 2017 20:19:44 -0400 Subject: [PATCH] Removed unused functions --- hue_off.py | 36 +----------------------------------- 1 file changed, 1 insertion(+), 35 deletions(-) diff --git a/hue_off.py b/hue_off.py index 8f7de42..a235617 100755 --- a/hue_off.py +++ b/hue_off.py @@ -138,40 +138,6 @@ def optUsage(): return 0 -''' -No Longer Needed: broke out into subprocess -def updateLightStatus(bridgeIP): - bridge = Bridge(bridgeIP) - while True: - try: - lights_list = bridge.get_light_objects('list') - #print "Got list of lights" - lights_file = open("off.lights", 'w') - #print "Opened off.lights" - lights_file.truncate() - #print "Truncated off.lights" - lights_file.write(datestamp()) - #print "Wrote datestamp to file" - lights_file.write("\n") - #print "Wrote newline" - lights_file.write(bridgeIP) - #print "Wrote BridgeIP" - lights_file.write("\n") - # Store list of lights that are currently off - off_lights = [] - for light in lights_list: - if not light.on: - off_lights.append(light) - lights_file.write(light.name) - lights_file.write("\n") - lights_file.close() - except: - # Unknown exception! - print("%s: An unknown exception has appeared..." % datestamp()) - bridge.get_api() - time.sleep(5) -''' - def turnOffLights(bridge): try: @@ -276,4 +242,4 @@ def datestamp(): if __name__ == "__main__": - main(sys.argv[1:]) \ No newline at end of file + main(sys.argv[1:]) -- 2.39.5