1234567891011121314151617181920212223 |
- import config
- import logging
- import report
- import socket
- import subprocess
- import time
- import piface_function
-
- try:
- from config import APP_NAME as ROOT_LOGGER_NAME
- except ImportError:
- ROOT_LOGGER_NAME = 'root'
- logger = logging.getLogger(ROOT_LOGGER_NAME).getChild('main')
-
-
- if __name__ == '__main__':
- report.appLoggingConfigure(config.__BASEPATH__, config.LOGTARGET, ((config.APP_NAME, config.LOGLVL), ), fmt=config.formatter, host=config.LOGHOST, port=config.LOGPORT)
- #
- l = piface_function.leyk()
-
- while True:
- time.sleep(30)
- l.publish_states()
|