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.

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