Skip to content

Commit

Permalink
hide cost in power mode
Browse files Browse the repository at this point in the history
  • Loading branch information
TrystanLea committed Nov 13, 2020
1 parent d345c22 commit 2d51198
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/OpenEnergyMonitor/myelectric2/myelectric2.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,8 @@ function updater()
if (viewcostenergy=="energy") {
text = date+"<br>"+(elec_kwh).toFixed(1)+" " + unit;
} else {
text = date+"<br>"+(elec_kwh).toFixed(1)+" " + unit + " ("+config.app.currency.value+(elec_kwh*config.app.unitcost.value).toFixed(2)+")";
text = date+"<br>"+(elec_kwh).toFixed(1)+" " + unit;
if (unit=="kWh") text += " ("+config.app.currency.value+(elec_kwh*config.app.unitcost.value).toFixed(2)+")";
}

tooltip(item.pageX, item.pageY, text, "#fff");
Expand Down

0 comments on commit 2d51198

Please sign in to comment.