Remove JSON Reporting
It has a major problem with byte strings in the dictionaries… this may never work
This commit is contained in:
		
							parent
							
								
									31223a846d
								
							
						
					
					
						commit
						574a89e7f9
					
				@ -601,6 +601,8 @@ if REPORTS['REPORT_NETWORKS'] == 'PICKLE':
 | 
				
			|||||||
        except IOError as detail:
 | 
					        except IOError as detail:
 | 
				
			||||||
            logger.error('I/O Error: %s', 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':
 | 
					elif REPORTS['REPORT_NETWORKS'] == 'JSON':
 | 
				
			||||||
    def reporting_loop():
 | 
					    def reporting_loop():
 | 
				
			||||||
        logger.info('Periodic Reporting Loop Started (JSON)')
 | 
					        logger.info('Periodic Reporting Loop Started (JSON)')
 | 
				
			||||||
@ -610,7 +612,7 @@ elif REPORTS['REPORT_NETWORKS'] == 'JSON':
 | 
				
			|||||||
                file.close()
 | 
					                file.close()
 | 
				
			||||||
        except IOError as detail:
 | 
					        except IOError as detail:
 | 
				
			||||||
            logger.error('I/O Error: %s', detail)
 | 
					            logger.error('I/O Error: %s', detail)
 | 
				
			||||||
 | 
					'''
 | 
				
			||||||
elif REPORTS['REPORT_NETWORKS'] == 'REDIS':
 | 
					elif REPORTS['REPORT_NETWORKS'] == 'REDIS':
 | 
				
			||||||
    def reporting_loop():  
 | 
					    def reporting_loop():  
 | 
				
			||||||
        logger.debug('Periodic Reporting Loop Started (REDIS)')
 | 
					        logger.debug('Periodic Reporting Loop Started (REDIS)')
 | 
				
			||||||
 | 
				
			|||||||
@ -17,8 +17,8 @@ PATH: /absolute/path/to/DMRlink
 | 
				
			|||||||
#   specifiec by "REPORT_INTERVAL" in seconds. Possible values
 | 
					#   specifiec by "REPORT_INTERVAL" in seconds. Possible values
 | 
				
			||||||
#   for "REPORT_NETWORKS" are:
 | 
					#   for "REPORT_NETWORKS" are:
 | 
				
			||||||
#       PICKLE - a Python pickle file of the network's data structure
 | 
					#       PICKLE - a Python pickle file of the network's data structure
 | 
				
			||||||
#       JSON - a JSON file of the network's data structure
 | 
					#       (JSON DOES NOT WORK RNIGHT NOW) JSON - a JSON file of the network's data structure
 | 
				
			||||||
#       REDIS - send JSON format data structure to a local|remote
 | 
					#       (REDIS DOES NOT WORK RIGHT NOW) REDIS - send JSON format data structure to a local|remote
 | 
				
			||||||
#               redis server
 | 
					#               redis server
 | 
				
			||||||
#       PRINT - a pretty print (STDOUT) of the data structure
 | 
					#       PRINT - a pretty print (STDOUT) of the data structure
 | 
				
			||||||
#           "PRINT_PEERS_INC_MODE" - Boolean to include mode bits
 | 
					#           "PRINT_PEERS_INC_MODE" - Boolean to include mode bits
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user