#21 Add PowerOFF when print is finished
This commit is contained in:
parent
83608fa807
commit
419bac3137
@ -207,7 +207,11 @@ class MyStromSwitchPlugin(octoprint.plugin.SettingsPlugin,
|
||||
return dict(
|
||||
enableRelais=[],
|
||||
disableRelais=[],
|
||||
toggleRelais=[]
|
||||
toggleRelais=[],
|
||||
disableShutdownAfterFinish=[],
|
||||
enableShutdownAfterFinish=[],
|
||||
disablePowerOffAfterFinish=[],
|
||||
enablePowerOffAfterFinish=[]
|
||||
)
|
||||
|
||||
def on_after_startup(self):
|
||||
|
@ -30,7 +30,7 @@ $(function() {
|
||||
|
||||
//self.onOffButtonEnabled.subscribe(self.onmystromswitchEvent, self);
|
||||
|
||||
self.onAutomaticShutdownEnabledChanged = function(){
|
||||
/*self.onAutomaticShutdownEnabledChanged = function(){
|
||||
var cmd = "disableShutdownAfterFinish";
|
||||
if (self.automaticShutdownEnabled()) {
|
||||
var cmd = "enableShutdownAfterFinish";
|
||||
@ -60,7 +60,7 @@ $(function() {
|
||||
}),
|
||||
contentType: "application/json; charset=UTF-8"
|
||||
})
|
||||
}
|
||||
}*/
|
||||
|
||||
//self.automaticShutdownEnabled.subscribe(self.onAutomaticShutdownEnabledChanged,self);
|
||||
//self.automaticPowerOffEnabled.subscribe(self.onAutomaticPowerOffEnabledChanged,self);
|
||||
|
Loading…
Reference in New Issue
Block a user