#21 Add PowerOFF when print is finished

This commit is contained in:
David Zingg
2020-02-29 17:21:57 +01:00
parent 8b963a5cbb
commit 055e8c4e25
2 changed files with 40 additions and 40 deletions

View File

@ -70,8 +70,8 @@ $(function() {
return;
}
self.onOffButtonEnabled(data.onOffButtonEnabled);
//self.showShutdownOctopiOption(data.showShutdownOctopiOption);
//self.showPowerOffPrintFinishOption(data.showPowerOffPrintFinishOption);
self.showShutdownOctopiOption(data.showShutdownOctopiOption);
self.showPowerOffPrintFinishOption(data.showPowerOffPrintFinishOption);
self.mystromswitchEnergyValue.innerHTML = "Energy: "+data.energy.toFixed(1)+"Wh"
if(data.relay == false){
self.mystromswitchPowerValue.innerHTML = "Relay is off";