Example #1
0
def router_check():
    sc = AsusDeviceScanner(config['router_host'],config['router_user'],config['router_password'])
    if sc.client_connected("android-8c4066f") is True:
        isy.variables[2]['s.OC.JimConnected.Router'].val = 1
    else:
        isy.variables[2]['s.OC.JimConnected.Router'].val = 0
Example #2
0
#!/usr/bin/python3
#

#<form method="post" name="networkmapdRefresh" action="/apply.cgi" target="hidden_frame">
#<input type="hidden" name="action_mode" value="update_client_list">
#<input type="hidden" name="action_script" value="">
#<input type="hidden" name="action_wait" value="1">
#<input type="hidden" name="current_page" value="httpd_check.xml">
#<input type="hidden" name="next_page" value="httpd_check.xml">
#<input type="hidden" name="client_info_tmp" value="">
#</form>

from asus import AsusDeviceScanner

#http://190.53.26.252/apply.cgi?refresh_networkmap

#sc = AsusDeviceScanner('190.53.26.252','','*')
sc = AsusDeviceScanner('192.168.1.1','admin','Wmb540i*')
#print(sc.client_connected('foo'))
#print(sc.client_connected('MACBOOKAIR-EAFB'))
print(sc.client_connected('android-8c4066f'))