Skip to content

Commit

Permalink
Merge pull request #2 from jneilliii/dev
Browse files Browse the repository at this point in the history
Added error popup
  • Loading branch information
jneilliii authored Sep 7, 2017
2 parents 997ce74 + df887a5 commit 962881e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion octoprint_tplinksmartplug/static/js/tplinksmartplug.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
}
}

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 962881e

Please sign in to comment.