#21 Add PowerOFF when print is finished

This commit is contained in:
David Zingg
2020-06-28 14:36:14 +02:00
parent 42f80d831c
commit c624769e9d
4 changed files with 25 additions and 18 deletions

View File

@ -9,6 +9,8 @@ $(function() {
self.onOffButtonEnabled = ko.observable();
self.showShutdownOctopiOption = ko.observable();
self.showPowerOffPrintFinishOption = ko.observable();
self.automaticPowerOffEnabled = ko.observable();
self.automaticShutdownEnabled = ko.observable();
self.mystromswitchPowerValue = document.getElementById("mystromswitchPowerValue")
self.mystromswitchEnergyValue = document.getElementById("mystromswitchEnergyValue")
@ -81,6 +83,8 @@ $(function() {
self.mystromswitchPowerValue.innerHTML = "myStrom switch not reachable"
self.mystromswitchEnergyValue.innerHTML = "Check url in Plugin Settings"
}
self.automaticShutdownEnabled = data.automaticShutdownEnabled;
self.automaticPowerOffEnabled = data.automaticPowerOffEnabled;
}
}