@@ -0,0 +1,909 @@
+%0Aimport random%0A#import datetime%0A#import time%0Aimport ouimeaux%0Afrom ouimeaux.environment import Environment%0A%0A# http://pydoc.net/Python/ouimeaux/0.7.3/ouimeaux.examples.watch/%0Aif __name__ == %22__main__%22:%0A    print %22%22%0A    print %22WeMo Randomizer%22%0A    print %22---------------%22%0A    env = Environment(with_cache=False)%0A    # TODO: run from 10am to 10pm%0A    try:%0A        env.start()%0A        env.discover(100)%0A        print env.list_switches()%0A        print env.list_motions()%0A        print %22---------------%22%0A        while True:%0A            # http://stackoverflow.com/questions/306400/how-do-i-randomly-select-an-item-from-a-list-using-python%0A            switchRND = env.get_switch( random.choice( env.list_switches() ) )%0A            print switchRND%0A            switchRND.toggle()%0A            env.wait(90)%0A        %0A    except (KeyboardInterrupt, SystemExit):%0A        print %22Goodbye!%22%0A        # TODO: Turn on all switches%0A

Create Randomize.py