Loading client.conf +1 −1 Original line number Diff line number Diff line [ZeroMQQueueServer] ServerIP = 134.82.132.36 ServerIP = amm-csr2 ServerPort = 5555 [ZeroMQClient] Loading examples/API/Put.pyc −165 B (1.68 KiB) File changed.No diff preview for this file type. View original file View changed file examples/API/Query.pyc −297 B (3.18 KiB) File changed.No diff preview for this file type. View original file View changed file examples/API/QueryLast.pyc −132 B (903 B) File changed.No diff preview for this file type. View original file View changed file examples/API/SensorAPI.py +4 −3 Original line number Diff line number Diff line Loading @@ -16,9 +16,9 @@ class _ClientConf(object): def __init__(self): self.conf = ConfigParser.ConfigParser() hasFile = False if os.path.isfile("client.conf"): self.conf.read("client.conf") logging.info("Using configuration file at client.conf") if os.path.isfile("./client.conf"): self.conf.read("./client.conf") logging.info("Using configuration file at {}/client.conf".format(os.getcwd())) hasFile = True else: logging.warn("Could not find client.conf. Use default setting now") Loading Loading @@ -68,6 +68,7 @@ class SensorAPI(ZeroMQClient.Client): datas = [] self.logger.info("Put data count: {0}".format(len(putDatas))) # too much log if self.logger.isEnabledFor(logging.DEBUG): for data in putDatas: self.logger.debug("PutData: {0}".format(data)) Loading Loading
client.conf +1 −1 Original line number Diff line number Diff line [ZeroMQQueueServer] ServerIP = 134.82.132.36 ServerIP = amm-csr2 ServerPort = 5555 [ZeroMQClient] Loading
examples/API/Put.pyc −165 B (1.68 KiB) File changed.No diff preview for this file type. View original file View changed file
examples/API/Query.pyc −297 B (3.18 KiB) File changed.No diff preview for this file type. View original file View changed file
examples/API/QueryLast.pyc −132 B (903 B) File changed.No diff preview for this file type. View original file View changed file
examples/API/SensorAPI.py +4 −3 Original line number Diff line number Diff line Loading @@ -16,9 +16,9 @@ class _ClientConf(object): def __init__(self): self.conf = ConfigParser.ConfigParser() hasFile = False if os.path.isfile("client.conf"): self.conf.read("client.conf") logging.info("Using configuration file at client.conf") if os.path.isfile("./client.conf"): self.conf.read("./client.conf") logging.info("Using configuration file at {}/client.conf".format(os.getcwd())) hasFile = True else: logging.warn("Could not find client.conf. Use default setting now") Loading Loading @@ -68,6 +68,7 @@ class SensorAPI(ZeroMQClient.Client): datas = [] self.logger.info("Put data count: {0}".format(len(putDatas))) # too much log if self.logger.isEnabledFor(logging.DEBUG): for data in putDatas: self.logger.debug("PutData: {0}".format(data)) Loading