#21 Add PowerOFF when print is finished
This commit is contained in:
@ -64,8 +64,8 @@ $(function() {
|
||||
})
|
||||
}
|
||||
|
||||
self.automaticShutdownEnabled.subscribe(self.onAutomaticShutdownEnabledChanged,self);
|
||||
self.automaticPowerOffEnabled.subscribe(self.onAutomaticPowerOffEnabledChanged,self);
|
||||
self.automaticShutdownEnabled.subscribe(self.onAutomaticShutdownEnabledChanged, self);
|
||||
self.automaticPowerOffEnabled.subscribe(self.onAutomaticPowerOffEnabledChanged, self);
|
||||
|
||||
self.onDataUpdaterPluginMessage = function(plugin, data) {
|
||||
if (plugin != "mystromswitch" && plugin != "octoprint_mystromswitch") {
|
||||
@ -83,8 +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;
|
||||
self.automaticShutdownEnabled(data.automaticShutdownEnabled);
|
||||
self.automaticPowerOffEnabled(data.automaticPowerOffEnabled);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user