diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-10-26 21:06:49 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-10-26 21:06:49 +0300 |
commit | 3346b29044740090d4ecee0056e456e90888c218 (patch) | |
tree | 4392ee4685b21016dd5f4239e652f08ff6300bb7 | |
parent | 4190f15676234358871c694df40a01de5d1570c3 (diff) |
battery status: remove percentage
-rwxr-xr-x | inverter-bot | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/inverter-bot b/inverter-bot index e17e8e1..f41efbe 100755 --- a/inverter-bot +++ b/inverter-bot @@ -172,8 +172,7 @@ def msg_status(update: Update, context: CallbackContext) -> None: gs['battery_discharging_current']['value'], gs['battery_discharging_current']['unit']) html = '<b>Battery:</b> %s %s' % (gs['battery_voltage']['value'], gs['battery_voltage']['unit']) - html += ' (%s%s, ' % (gs['battery_capacity']['value'], gs['battery_capacity']['unit']) - html += '%s%s)' % (power_direction, charging_rate) + html += ' (%s%s)' % (power_direction, charging_rate) html += '\n<b>Load:</b> %s %s' % (gs['ac_output_active_power']['value'], gs['ac_output_active_power']['unit']) html += ' (%s%%)' % (gs['output_load_percent']['value']) |