wether station gui client
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 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/usr/bin/env python
  2. # -*- coding: UTF-8 -*-
  3. import report
  4. FULL_SCREEN = False
  5. # TCP-Server
  6. #
  7. server_out_secret = None # or set a secret to require client authentification: b'give_a_secret_string_here'
  8. server_out_ip = '192.168.0.121'
  9. server_out_port = 37000
  10. server_in_secret = None # or set a secret to require client authentification: b'give_a_secret_string_here'
  11. server_in_ip = '192.168.0.120'
  12. server_in_port = 37000
  13. server_garage_secret = None # or set a secret to require client authentification: b'give_a_secret_string_here'
  14. server_garage_ip = '192.168.0.13'
  15. server_garage_port = 10000
  16. # Logging
  17. #
  18. LOGTARGET = 'stdout' # possible choices are: 'logfile' or 'stdout'
  19. SHORT_FMT = "%(asctime)s: %(levelname)-7s - %(message)s"
  20. """ A short formatter including the most important information"""
  21. LONG_FMT = """~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  22. File "%(pathname)s", line %(lineno)d, in %(funcName)s
  23. %(asctime)s: %(levelname)-7s - %(message)s"""
  24. """ A long formatter which results in links to the source code inside Eclipse"""
  25. # Logging
  26. #
  27. APP_NAME = 'smarthome'
  28. LOGTARGET = 'stdout' # possible choices are: 'logfile' or 'stdout'
  29. LOGHOST = 'localhost'
  30. LOGPORT = 19996
  31. formatter = report.LONG_FMT