From 22721bbfa26bd917710ac6a098a8ab67c82df941 Mon Sep 17 00:00:00 2001 From: jneilliii Date: Wed, 6 Sep 2017 23:56:43 -0400 Subject: [PATCH 1/2] Added error notification popup on unknown status. --- octoprint_tplinksmartplug/static/js/tplinksmartplug.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/octoprint_tplinksmartplug/static/js/tplinksmartplug.js b/octoprint_tplinksmartplug/static/js/tplinksmartplug.js index 97ea328..0a6461b 100644 --- a/octoprint_tplinksmartplug/static/js/tplinksmartplug.js +++ b/octoprint_tplinksmartplug/static/js/tplinksmartplug.js @@ -72,7 +72,12 @@ $(function() { self.turnOn(); break; default: - console.log(self.currentState()); + new PNotify({ + title: 'TP-Link Smartplug Error', + text: 'Status ' + self.currentState() + '. Double check ip address in TPLinkSmartplug Settings.', + type: 'error', + hide: false + }); } } From df887a56f566703b41981da8dbd136981d4cea4d Mon Sep 17 00:00:00 2001 From: jneilliii Date: Thu, 7 Sep 2017 00:01:30 -0400 Subject: [PATCH 2/2] increment version. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index d452832..3e85f77 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ plugin_name = "OctoPrint-TPLinkSmartplug" # The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module -plugin_version = "0.1.0" +plugin_version = "0.2.0" # The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin # module