Module: MQTT <--> Powerplug Enegenie
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122
  1. #!/usr/bin/env python
  2. # -*- coding: UTF-8 -*-
  3. import os
  4. import report
  5. MQTT_USER = "{{ smart_sat_powerplug_username }}"
  6. MQTT_PASS = "{{ smart_sat_powerplug_password }}"
  7. MQTT_SERVER = "{{ smart_sat_powerplug_hostname }}"
  8. MQTT_TOPIC = "{{ smart_sat_powerplug_topic }}"
  9. #
  10. # Logging
  11. #
  12. __BASEPATH__ = os.path.abspath(os.path.dirname(__file__))
  13. APP_NAME = "powerplug"
  14. LOGTARGET = 'stdout' # possible choices are: 'logfile' or 'stdout'
  15. LOGLVL = 'INFO'
  16. LOGHOST = 'cutelog'
  17. LOGPORT = 19996
  18. formatter = report.SHORT_FMT