mirror of
				https://github.com/Tediore/battery2mqtt.git
				synced 2025-11-04 12:46:36 +01:00 
			
		
		
		
	add time remaining calculation
This commit is contained in:
		@@ -53,6 +53,7 @@ services:
 | 
				
			|||||||
| `INTERVAL` | `60` | How often (in seconds) battery2mqtt polls for battery info. |
 | 
					| `INTERVAL` | `60` | How often (in seconds) battery2mqtt polls for battery info. |
 | 
				
			||||||
| `MONITORED_CONDITIONS` | (See below) | Battery properties to send to MQTT (must be a comma-separated string.) |
 | 
					| `MONITORED_CONDITIONS` | (See below) | Battery properties to send to MQTT (must be a comma-separated string.) |
 | 
				
			||||||
| `BATTERY_HEALTH` | 1 | Set to 1 to enable battery health percentage calculation or 0 to disable. |
 | 
					| `BATTERY_HEALTH` | 1 | Set to 1 to enable battery health percentage calculation or 0 to disable. |
 | 
				
			||||||
 | 
					| `TIME_REMAINING` | 1 | Set to 1 to enable time remaining estimate (in hours) or 0 to disable. |
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Monitored conditions
 | 
					# Monitored conditions
 | 
				
			||||||
You can specify only those conditions that you'd like to track. The default is to track `alarm, capacity, capacity_level, present, status, and voltage_now`. You can add more conditions (found at `/sys/class/power_supply/$NAME`) or choose only those you want to track. The variable in your `docker-compose.yaml` must follow this format:
 | 
					You can specify only those conditions that you'd like to track. The default is to track `alarm, capacity, capacity_level, present, status, and voltage_now`. You can add more conditions (found at `/sys/class/power_supply/$NAME`) or choose only those you want to track. The variable in your `docker-compose.yaml` must follow this format:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user