from dahua_rpc import DahuaRpc

dahua = DahuaRpc(host="192.168.1.108" , username="admin",password="")

dahua.login()
#object_id = dahua.get_traffic_info() 
print(dahua.current_time())



### Change IP address on dahua Camera


params = {"name":"Network","table":{"DefaultInterface":"eth0","Domain":"dauha","Hostname":"IPC","eth0":{"DefaultGateway":"192.168.1.1","SubnetMask": "255.255.255.0","IPAddress":"192.168.1.108"}}}

dahua.set_config(params)
#dahua.set_time()
#print(object_id)
#print(dahua.current_time())

57ae7b7add8da4bf7566a99a9e98df9b2bc7e679
<mask token>

<mask token>
dahua.login()
print(dahua.current_time())
<mask token>
dahua.set_config(params)

<mask token>
dahua = DahuaRpc(host='192.168.1.108', username='admin', password='')
dahua.login()
print(dahua.current_time())
params = {'name': 'Network', 'table': {'DefaultInterface': 'eth0', 'Domain':
    'dauha', 'Hostname': 'IPC', 'eth0': {'DefaultGateway': '192.168.1.1',
    'SubnetMask': '255.255.255.0', 'IPAddress': '192.168.1.108'}}}
dahua.set_config(params)

from dahua_rpc import DahuaRpc
dahua = DahuaRpc(host='192.168.1.108', username='admin', password='')
dahua.login()
print(dahua.current_time())
params = {'name': 'Network', 'table': {'DefaultInterface': 'eth0', 'Domain':
    'dauha', 'Hostname': 'IPC', 'eth0': {'DefaultGateway': '192.168.1.1',
    'SubnetMask': '255.255.255.0', 'IPAddress': '192.168.1.108'}}}
dahua.set_config(params)

from dahua_rpc import DahuaRpc

dahua = DahuaRpc(host="192.168.1.108" , username="admin",password="")

dahua.login()
#object_id = dahua.get_traffic_info() 
print(dahua.current_time())



### Change IP address on dahua Camera


params = {"name":"Network","table":{"DefaultInterface":"eth0","Domain":"dauha","Hostname":"IPC","eth0":{"DefaultGateway":"192.168.1.1","SubnetMask": "255.255.255.0","IPAddress":"192.168.1.108"}}}

dahua.set_config(params)
#dahua.set_time()
#print(object_id)
#print(dahua.current_time())
