Add host/port to top config
This commit is contained in:
		
							parent
							
								
									a804818792
								
							
						
					
					
						commit
						bd6b57d1ed
					
				@ -12,6 +12,9 @@ site_id = 4143190
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
inverter = '7B0E5700-E0'
 | 
					inverter = '7B0E5700-E0'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					listen = 'localhost'
 | 
				
			||||||
 | 
					port = 9150
 | 
				
			||||||
 | 
					
 | 
				
			||||||
endpoint = "https://monitoringapi.solaredge.com/"
 | 
					endpoint = "https://monitoringapi.solaredge.com/"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
query_delta = datetime.timedelta(minutes=20)
 | 
					query_delta = datetime.timedelta(minutes=20)
 | 
				
			||||||
@ -172,7 +175,7 @@ def metrics():
 | 
				
			|||||||
    return format_metrics(collect())
 | 
					    return format_metrics(collect())
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def main():
 | 
					def main():
 | 
				
			||||||
    bottle.run(host='localhost', port=9150)
 | 
					    bottle.run(host=listen, port=port)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if __name__ == '__main__':
 | 
					if __name__ == '__main__':
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user