#21 Add PowerOFF when print is finished
This commit is contained in:
parent
0816056ded
commit
cba3367d2b
@ -2,7 +2,6 @@
|
||||
<project version="4">
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="7e2e0eec-b22e-4d48-8f24-196d1ed9b51a" name="Default Changelist" comment="">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/octoprint_mystromswitch/__init__.py" beforeDir="false" afterPath="$PROJECT_DIR$/octoprint_mystromswitch/__init__.py" afterDir="false" />
|
||||
</list>
|
||||
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
||||
@ -48,13 +47,6 @@
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1574193087583</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00039" summary="#9 Relais ausschalten wenn Octoprint heruntergefahren wird #7 Relais einschalten wenn Octoprint gestartet wurde">
|
||||
<created>1574707411686</created>
|
||||
<option name="number" value="00039" />
|
||||
<option name="presentableId" value="LOCAL-00039" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574707411686</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00040" summary="#9 Relais ausschalten wenn Octoprint heruntergefahren wird #7 Relais einschalten wenn Octoprint gestartet wurde Logging schreibfehler Url Fix für Powercycle">
|
||||
<created>1574707826329</created>
|
||||
<option name="number" value="00040" />
|
||||
@ -391,7 +383,14 @@
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1593627195608</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="88" />
|
||||
<task id="LOCAL-00088" summary="#21 Add PowerOFF when print is finished">
|
||||
<created>1593628251128</created>
|
||||
<option name="number" value="00088" />
|
||||
<option name="presentableId" value="LOCAL-00088" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1593628251128</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="89" />
|
||||
<servers />
|
||||
</component>
|
||||
<component name="UnknownFeatures">
|
||||
|
@ -193,8 +193,8 @@ class MyStromSwitchPlugin(octoprint.plugin.SettingsPlugin,
|
||||
data["automaticShutdownEnabled"] = self.shutdownAfterPrintFinished
|
||||
data["automaticPowerOffEnabled"] = self.powerOffAfterPrintFinished
|
||||
self._plugin_manager.send_plugin_message(self._identifier, data)
|
||||
self._logger.info("automaticShutdownEnabled: %s" % self.automaticShutdownEnabled)
|
||||
self._logger.info("automaticPowerOffEnabled: %s" % self.automaticPowerOffEnabled)
|
||||
self._logger.info("automaticShutdownEnabled: %s" % self.shutdownAfterPrintFinished)
|
||||
self._logger.info("automaticPowerOffEnabled: %s" % self.powerOffAfterPrintFinished)
|
||||
return
|
||||
except (requests.exceptions.ConnectionError, ValueError) as e:
|
||||
self._logger.exception(e)
|
||||
|
Loading…
Reference in New Issue
Block a user