home_counter = 0 startup = True update_playlist = True print "Downloading Playlists" player = Mopidy() network = Networking() # Once above is done lets make it check every like... 5 seconds? # We will need a better way to scan the network. # Something quick that looks for the mac address of the phone print '-wwwwwwwuuuuuttttt' print network.check_macs() while True: print 'Scanning...' found = False mac = network.check_macs() if mac and not startup: print 'MAC: %s' % mac found = True print "Found" not_home_counter = 0 if home_counter < 0: home_counter = 0