새 시스템으로 적용
This commit is contained in:
parent
52db18af21
commit
27f5c49aec
4
main.py
4
main.py
|
@ -1,4 +1,4 @@
|
||||||
from mirobo.airpurifier import AirPurifier, OperationMode, LedBrightness
|
from miio.airpurifier import AirPurifier, OperationMode, LedBrightness
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
import time
|
import time
|
||||||
|
@ -35,7 +35,7 @@ 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)
|
||||||
|
|
||||||
dev = AirPurifier('10.0.1.13', '7e538c9fb31f6f6bfcc3354f46c421ca')
|
dev = AirPurifier('air', '6e1e05b87d9f7cd10a3f8f43616896fa')
|
||||||
tags = {
|
tags = {
|
||||||
'source': 'mi_air_2',
|
'source': 'mi_air_2',
|
||||||
'position': 'center_room',
|
'position': 'center_room',
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
https://github.com/rytilahti/python-mirobo/archive/master.zip
|
https://github.com/rytilahti/python-miio/archive/master.zip
|
||||||
influxdb
|
influxdb
|
||||||
git+https://github.com/systemd/python-systemd.git#egg=systemd
|
git+https://github.com/systemd/python-systemd.git#egg=systemd
|
Loading…
Reference in New Issue