브로드케스트 도메인이 달라 그냥 지정
This commit is contained in:
parent
8e0beec40f
commit
5529816d3c
3
main.py
3
main.py
|
@ -36,7 +36,8 @@ if __name__ == '__main__':
|
||||||
metric = InfluxDBClient('db', database='core',
|
metric = InfluxDBClient('db', database='core',
|
||||||
use_udp=True, udp_port=8089)
|
use_udp=True, udp_port=8089)
|
||||||
air_addr=socket.gethostbyname("air")
|
air_addr=socket.gethostbyname("air")
|
||||||
dev = create_device(air_addr,AirPurifier)
|
#dev = create_device(air_addr,AirPurifier)
|
||||||
|
dev = AirPurifier(air_addr,'6e1e05b87d9f7cd10a3f8f43616896fa')
|
||||||
tags = {
|
tags = {
|
||||||
'source': 'mi_air_2',
|
'source': 'mi_air_2',
|
||||||
'position': 'center_room',
|
'position': 'center_room',
|
||||||
|
|
Loading…
Reference in New Issue