record_power.py 372 B

123456789101112131415
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. """
  4. demeter service
  5. name:record_power.py 处理电源数据
  6. author:rabin
  7. key:power/type/gateway/device
  8. """
  9. from demeter.core import *
  10. from record_sensor import Record_sensor
  11. class Record_power(object):
  12. def handle(self, record, config, value):
  13. sensor = Record_sensor()
  14. sensor.handle(record, config, value)