Module to run and control leyk lightning
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.

config.py 474B

12345678910111213141516171819202122232425
  1. #!/usr/bin/env python
  2. # -*- coding: UTF-8 -*-
  3. import geo
  4. import os
  5. import report
  6. MQTT_USER = "user"
  7. MQTT_PASS = "password"
  8. MQTT_SERVER = "host"
  9. MQTT_TOPIC = "leyk"
  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