Browse Source

Update read

master
sipp11 7 years ago
parent
commit
88a55fdb17
  1. 19
      read.py

19
read.py

@ -0,0 +1,19 @@
from .mijia.mijia.mijia_poller import MijiaPoller, \
MI_HUMIDITY, MI_TEMPERATURE, MI_BATTERY
from .miflora.miflora.miflora_poller import MiFloraPoller, \
MI_CONDUCTIVITY, MI_MOISTURE, MI_LIGHT
poller = MiFloraPoller("C4:7C:8D:66:2B:80")
print("Mi Flora: " + address)
print("Firmware: {}".format(poller.firmware_version()))
print("Name: {}".format(poller.name()))
poller = MijiaPoller("4C:65:A8:D5:66:D4")
print("Mijia: " + address)
print("Firmware: {}".format(poller.firmware_version()))
print("Name: {}".format(poller.name()))
Loading…
Cancel
Save