„examples/solar-monitoring.py“ ändern
This commit is contained in:
		
							parent
							
								
									fe4b0a0313
								
							
						
					
					
						commit
						e265e36025
					
				@ -133,7 +133,15 @@ def run():
 | 
				
			|||||||
    logging.info("house power: " + str(house_power))
 | 
					    logging.info("house power: " + str(house_power))
 | 
				
			||||||
    logging.info("car soc: " + str(car_soc))
 | 
					    logging.info("car soc: " + str(car_soc))
 | 
				
			||||||
    logging.info("charge point power: " + str(charge_point_power))
 | 
					    logging.info("charge point power: " + str(charge_point_power))
 | 
				
			||||||
 | 
					    try:
 | 
				
			||||||
        monitor(charge_point_power)
 | 
					        monitor(charge_point_power)
 | 
				
			||||||
 | 
					    except IOError as e:
 | 
				
			||||||
 | 
					        logging.info(e)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    except KeyboardInterrupt:    
 | 
				
			||||||
 | 
					        logging.info("ctrl + c:")
 | 
				
			||||||
 | 
					        epd2in13b_V3.epdconfig.module_exit()
 | 
				
			||||||
 | 
					        exit()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if __name__ == '__main__':
 | 
					if __name__ == '__main__':
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user