22 lines
		
	
	
	
		
			761 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			761 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| files = {
 | |
|     '/opt/tasmota-charge': {
 | |
|         'owner': 'tasmota-charge',
 | |
|         'mode': '0550',
 | |
|         'content_type': 'mako',
 | |
|         'context': {
 | |
|             'phone_ip': node.metadata.get('tasmota-charge/phone/ip'),
 | |
|             'phone_user': node.metadata.get('tasmota-charge/phone/user'),
 | |
|             'plug_ip': node.metadata.get('tasmota-charge/plug/ip'),
 | |
|             'min': node.metadata.get('tasmota-charge/plug/min'),
 | |
|             'max': node.metadata.get('tasmota-charge/plug/max'),
 | |
|         }
 | |
|     },
 | |
|     '/usr/local/share/telegraf/tasmota_charge': {
 | |
|         'content_type': 'mako',
 | |
|         'source': 'telegraf-plugin',
 | |
|         'mode': '0755',
 | |
|         'context': {
 | |
|             'plug_ip': node.metadata.get('tasmota-charge/plug/ip'),
 | |
|         }
 | |
|     },
 | |
| }
 | 
