From 574a89e7f9d6a280f8e15dac3c6f837955f04bfd Mon Sep 17 00:00:00 2001 From: Cort Buffington Date: Sat, 20 Jun 2015 19:57:07 -0500 Subject: [PATCH] Remove JSON Reporting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It has a major problem with byte strings in the dictionaries… this may never work --- dmrlink.py | 6 ++++-- dmrlink_SAMPLE.cfg | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/dmrlink.py b/dmrlink.py index dcfeb21..e1c8609 100755 --- a/dmrlink.py +++ b/dmrlink.py @@ -600,7 +600,9 @@ if REPORTS['REPORT_NETWORKS'] == 'PICKLE': file.close() except IOError as detail: logger.error('I/O Error: %s', detail) - + +''' +JSON DOES NOT WORK, AND MAY NEVER... NEED TO FIX IT OR REMOVE IT elif REPORTS['REPORT_NETWORKS'] == 'JSON': def reporting_loop(): logger.info('Periodic Reporting Loop Started (JSON)') @@ -610,7 +612,7 @@ elif REPORTS['REPORT_NETWORKS'] == 'JSON': file.close() except IOError as detail: logger.error('I/O Error: %s', detail) - +''' elif REPORTS['REPORT_NETWORKS'] == 'REDIS': def reporting_loop(): logger.debug('Periodic Reporting Loop Started (REDIS)') diff --git a/dmrlink_SAMPLE.cfg b/dmrlink_SAMPLE.cfg index 51c2418..d72e88c 100644 --- a/dmrlink_SAMPLE.cfg +++ b/dmrlink_SAMPLE.cfg @@ -17,8 +17,8 @@ PATH: /absolute/path/to/DMRlink # specifiec by "REPORT_INTERVAL" in seconds. Possible values # for "REPORT_NETWORKS" are: # PICKLE - a Python pickle file of the network's data structure -# JSON - a JSON file of the network's data structure -# REDIS - send JSON format data structure to a local|remote +# (JSON DOES NOT WORK RNIGHT NOW) JSON - a JSON file of the network's data structure +# (REDIS DOES NOT WORK RIGHT NOW) REDIS - send JSON format data structure to a local|remote # redis server # PRINT - a pretty print (STDOUT) of the data structure # "PRINT_PEERS_INC_MODE" - Boolean to include mode bits