Module to run and control leyk lightning
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516171819202122232425
  1. #!/usr/bin/env python
  2. # -*- coding: UTF-8 -*-
  3. import geo
  4. import os
  5. import report
  6. MQTT_USER = "<mqtt_smarthome_username>"
  7. MQTT_PASS = "<mqtt_smarthome_password>"
  8. MQTT_SERVER = "<mqtt_smarthome_hostname>"
  9. MQTT_TOPIC = "<mqtt_leyk_topic>"
  10. GEO_POSITION = geo.gps.coordinate(lat=49.519167, lon=9.3672222)
  11. #
  12. # Logging
  13. #
  14. __BASEPATH__ = os.path.abspath(os.path.dirname(__file__))
  15. APP_NAME = "leyk"
  16. LOGTARGET = 'stdout' # possible choices are: 'logfile' or 'stdout'
  17. LOGLVL = 'DEBUG'
  18. LOGHOST = 'cutelog'
  19. LOGPORT = 19996
  20. formatter = report.SHORT_FMT