Skip to content

Commit

Permalink
0.9.10
Browse files Browse the repository at this point in the history
  • Loading branch information
jneilliii committed Nov 25, 2018
1 parent c92ae0f commit 28d941c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions octoprint_tplinksmartplug/static/css/tplinksmartplug.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,16 @@ div#tplinksmartplugs div:not(:last-child) {
margin-bottom: 10px;
padding-bottom: 10px;
border-bottom: 1px solid #DDD;
}

#sidebar_plugin_tplinksmartplug > div.accordion-inner > #tplinksmartplugs > div.on {
color: #000;
}

#sidebar_plugin_tplinksmartplug > div.accordion-inner > #tplinksmartplugs > div.off {
color: #AAA;
}

#sidebar_plugin_tplinksmartplug > div.accordion-inner > #tplinksmartplugs > div.unknown {
color: #AAA;
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div id="tplinksmartplugs" class="row-fluid" data-bind="foreach: arrSmartplugs">
<!-- ko if: emeter.get_realtime -->
<div class="row-fluid" data-bind="style: { color: currentState() === 'on' ? '#000' : '#AAA' }">
<div class="row-fluid" data-bind="css: currentState()">
Plug: <strong data-bind="text: label"></strong><br/>
Current Power: <strong data-bind="text: $parent.get_power($data)"></strong> W<br/>
Total Consumption: <strong data-bind="text: $parent.get_kwh($data)"></strong> kWh
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.9.9"
plugin_version = "0.9.10"

# 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 28d941c

Please sign in to comment.