From 0d51a4bb4961ff5985d38828b0246d0d3f0c977b Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sun, 27 Jan 2019 10:46:54 +0100 Subject: [PATCH] change ETA to HH:MM:SS --- octoprint_hd44780/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octoprint_hd44780/__init__.py b/octoprint_hd44780/__init__.py index 60d21ca..38ac9e5 100644 --- a/octoprint_hd44780/__init__.py +++ b/octoprint_hd44780/__init__.py @@ -191,7 +191,7 @@ class LCD_HD44780(octoprint.plugin.StartupPlugin, self._line3 = '{:6.2f}'.format(data['progress']['completion']) + '%' if data['progress']['printTimeLeft'] is not None: - self._line3 += ' ~' + '{:1.0f}:{:02.0f}'.format(data['progress']['printTimeLeft']/60, data['progress']['printTimeLeft']%60) + 'min ' + self._line3 += ' ~' + '{:1.0f}:{:02.0f}:{:02.0f}'.format(data['progress']['printTimeLeft']/3600, data['progress']['printTimeLeft']%3600/60, data['progress']['printTimeLeft']%60) else: self._line3 = '' else: