#21 Add PowerOFF when print is finished
This commit is contained in:
parent
778821e5e5
commit
5298d96d26
@ -47,13 +47,6 @@
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1574193087583</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00045" summary="#11 Energieverbrauch näherungsweise berechnen">
|
||||
<created>1574712024409</created>
|
||||
<option name="number" value="00045" />
|
||||
<option name="presentableId" value="LOCAL-00045" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574712024409</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00046" summary="#11 Energieverbrauch näherungsweise berechnen">
|
||||
<created>1574712205852</created>
|
||||
<option name="number" value="00046" />
|
||||
@ -390,7 +383,14 @@
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1593629352018</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="94" />
|
||||
<task id="LOCAL-00094" summary="#21 Add PowerOFF when print is finished">
|
||||
<created>1593629491361</created>
|
||||
<option name="number" value="00094" />
|
||||
<option name="presentableId" value="LOCAL-00094" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1593629491361</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="95" />
|
||||
<servers />
|
||||
</component>
|
||||
<component name="UnknownFeatures">
|
||||
|
@ -281,7 +281,6 @@ class MyStromSwitchPlugin(octoprint.plugin.SettingsPlugin,
|
||||
self.lastShutdown = self.shutdownAfterPrintFinished
|
||||
self._settings.set_boolean(["lastShutdown"], self.lastShutdown)
|
||||
self._settings.save()
|
||||
self._logger.info("lastShutdown: %s" % self.lastShutdown)
|
||||
elif command == "disableShutdownAfterFinish":
|
||||
self._logger.info("disableShutdownAfterFinish")
|
||||
self.shutdownAfterPrintFinished = False
|
||||
@ -289,7 +288,6 @@ class MyStromSwitchPlugin(octoprint.plugin.SettingsPlugin,
|
||||
self.lastShutdown = self.shutdownAfterPrintFinished
|
||||
self._settings.set_boolean(["lastShutdown"], self.lastShutdown)
|
||||
self._settings.save()
|
||||
self._logger.info("lastShutdown: %s" % self.lastShutdown)
|
||||
elif command == "enablePowerOffAfterFinish":
|
||||
self._logger.info("enablePowerOffAfterFinish")
|
||||
self.powerOffAfterPrintFinished = True
|
||||
@ -297,7 +295,6 @@ class MyStromSwitchPlugin(octoprint.plugin.SettingsPlugin,
|
||||
self.lastPowerOff = self.powerOffAfterPrintFinished
|
||||
self._settings.set_boolean(["lastPowerOff"], self.lastPowerOff)
|
||||
self._settings.save()
|
||||
self._logger.info("lastPowerOff: %s" % self.lastPowerOff)
|
||||
elif command == "disablePowerOffAfterFinish":
|
||||
self._logger.info("disablePowerOffAfterFinish")
|
||||
self.powerOffAfterPrintFinished = False
|
||||
@ -305,7 +302,6 @@ class MyStromSwitchPlugin(octoprint.plugin.SettingsPlugin,
|
||||
self.lastPowerOff = self.powerOffAfterPrintFinished
|
||||
self._settings.set_boolean(["lastPowerOff"], self.lastPowerOff)
|
||||
self._settings.save()
|
||||
self._logger.info("lastPowerOff: %s" % self.lastPowerOff)
|
||||
|
||||
def get_api_commands(self):
|
||||
return dict(
|
||||
|
Loading…
Reference in New Issue
Block a user