fix
This commit is contained in:
		
							parent
							
								
									2127471310
								
							
						
					
					
						commit
						6725dceef6
					
				@ -48,7 +48,7 @@ end_time = date(2025, 6, 10)
 | 
			
		||||
duration = end_time - start_time 
 | 
			
		||||
print(duration) # Ausgabe: 9 Tage, 2:30:00
 | 
			
		||||
 | 
			
		||||
def init_monitor(topics):
 | 
			
		||||
def init_monitor():
 | 
			
		||||
    
 | 
			
		||||
    logging.info("epd2in13b_V3 Demo")
 | 
			
		||||
 | 
			
		||||
@ -84,7 +84,7 @@ def init_monitor(topics):
 | 
			
		||||
 | 
			
		||||
def run():
 | 
			
		||||
    try:
 | 
			
		||||
        init_monitor(topics)
 | 
			
		||||
        init_monitor()
 | 
			
		||||
 | 
			
		||||
    except IOError as e:
 | 
			
		||||
        logging.info(e)
 | 
			
		||||
@ -93,18 +93,5 @@ def run():
 | 
			
		||||
        logging.info("ctrl + c:")
 | 
			
		||||
        epd2in13b_V3.epdconfig.module_exit()
 | 
			
		||||
        exit()
 | 
			
		||||
    
 | 
			
		||||
    client = connect_mqtt()
 | 
			
		||||
 | 
			
		||||
    for topic_id, topic_info in topics.items():
 | 
			
		||||
        print("\nTopic ID:", topic_id)
 | 
			
		||||
    
 | 
			
		||||
        for key in topic_info:
 | 
			
		||||
            print(key + ':', topic_info[key])
 | 
			
		||||
            topic_info["value"] = subscribe(client, topic_info["topic"])
 | 
			
		||||
            print(topic_info["line"])
 | 
			
		||||
            print(topic_info["value"])
 | 
			
		||||
            drawblack.text((160, int(topic_info["line"])), str(topic_info["value"]), font = font16, fill = 0)
 | 
			
		||||
 | 
			
		||||
if __name__ == '__main__':
 | 
			
		||||
    run()          
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user