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 + }); } } 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