#17 Logging zur Fehleranalyse eingebaut
This commit is contained in:
parent
ccc58f9301
commit
a0a7b51a66
@ -1,12 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="7e2e0eec-b22e-4d48-8f24-196d1ed9b51a" name="Default Changelist" comment="">
|
||||
<list default="true" id="7e2e0eec-b22e-4d48-8f24-196d1ed9b51a" name="Default Changelist" comment="#17 Logging zur Fehleranalyse eingebaut">
|
||||
<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" />
|
||||
<change beforePath="$PROJECT_DIR$/octoprint_mystromswitch/static/css/shutdownprinter.css" beforeDir="false" afterPath="$PROJECT_DIR$/octoprint_mystromswitch/static/css/mystromswitch.css" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/octoprint_mystromswitch/static/js/shutdownprinter.js" beforeDir="false" afterPath="$PROJECT_DIR$/octoprint_mystromswitch/static/js/mystromswitch.js" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/octoprint_mystromswitch/templates/shutdownprinter_settings.jinja2" beforeDir="false" afterPath="$PROJECT_DIR$/octoprint_mystromswitch/templates/mystromswitch_settings.jinja2" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/octoprint_mystromswitch/templates/shutdownprinter_sidebar.jinja2" beforeDir="false" afterPath="$PROJECT_DIR$/octoprint_mystromswitch/templates/mystromswitch_sidebar.jinja2" afterDir="false" />
|
||||
</list>
|
||||
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
@ -15,12 +12,18 @@
|
||||
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||
</component>
|
||||
<component name="Git.Settings">
|
||||
<option name="RECENT_BRANCH_BY_REPOSITORY">
|
||||
<map>
|
||||
<entry key="$PROJECT_DIR$" value="master" />
|
||||
</map>
|
||||
</option>
|
||||
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
||||
</component>
|
||||
<component name="ProjectId" id="1TqgYXT1S9U5eM0eUvs1YarA1ll" />
|
||||
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
|
||||
<component name="PropertiesComponent">
|
||||
<property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
|
||||
<property name="last_opened_file_path" value="$PROJECT_DIR$/../LEDStrip/RaspberryPi/Python" />
|
||||
</component>
|
||||
<component name="RunDashboard">
|
||||
<option name="ruleStates">
|
||||
@ -45,17 +48,401 @@
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1574193087583</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00004" summary="#5 Rest Api integration - Nullpointer fix">
|
||||
<created>1574277496115</created>
|
||||
<option name="number" value="00004" />
|
||||
<option name="presentableId" value="LOCAL-00004" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574277496115</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00005" summary="#6 UI Updates senden und anzeigen - unnötigen Code entfernen, erster Versuch">
|
||||
<created>1574279164975</created>
|
||||
<option name="number" value="00005" />
|
||||
<option name="presentableId" value="LOCAL-00005" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574279164975</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00006" summary="#6 UI Updates senden und anzeigen">
|
||||
<created>1574279821388</created>
|
||||
<option name="number" value="00006" />
|
||||
<option name="presentableId" value="LOCAL-00006" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574279821388</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00007" summary="Revert "#6 UI Updates senden und anzeigen" This reverts commit f83d4259">
|
||||
<created>1574280075129</created>
|
||||
<option name="number" value="00007" />
|
||||
<option name="presentableId" value="LOCAL-00007" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574280075129</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00008" summary="#6 UI Updates senden und anzeigen">
|
||||
<created>1574280301030</created>
|
||||
<option name="number" value="00008" />
|
||||
<option name="presentableId" value="LOCAL-00008" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574280301030</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00009" summary="#6 UI Updates senden und anzeigen">
|
||||
<created>1574280534955</created>
|
||||
<option name="number" value="00009" />
|
||||
<option name="presentableId" value="LOCAL-00009" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574280534955</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00010" summary="#6 UI Updates senden und anzeigen">
|
||||
<created>1574280753494</created>
|
||||
<option name="number" value="00010" />
|
||||
<option name="presentableId" value="LOCAL-00010" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574280753494</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00011" summary="#6 UI Updates senden und anzeigen">
|
||||
<created>1574280882951</created>
|
||||
<option name="number" value="00011" />
|
||||
<option name="presentableId" value="LOCAL-00011" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574280882951</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00012" summary="#6 UI Updates senden und anzeigen">
|
||||
<created>1574281255732</created>
|
||||
<option name="number" value="00012" />
|
||||
<option name="presentableId" value="LOCAL-00012" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574281255732</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00013" summary="#6 UI Updates senden und anzeigen">
|
||||
<created>1574281522356</created>
|
||||
<option name="number" value="00013" />
|
||||
<option name="presentableId" value="LOCAL-00013" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574281522356</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00014" summary="#6 UI Updates senden und anzeigen">
|
||||
<created>1574281964923</created>
|
||||
<option name="number" value="00014" />
|
||||
<option name="presentableId" value="LOCAL-00014" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574281964923</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00015" summary="#6 UI Updates senden und anzeigen">
|
||||
<created>1574282183896</created>
|
||||
<option name="number" value="00015" />
|
||||
<option name="presentableId" value="LOCAL-00015" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574282183896</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00016" summary="#6 UI Updates senden und anzeigen">
|
||||
<created>1574282504648</created>
|
||||
<option name="number" value="00016" />
|
||||
<option name="presentableId" value="LOCAL-00016" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574282504648</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00017" summary="#6 UI Updates senden und anzeigen">
|
||||
<created>1574282834574</created>
|
||||
<option name="number" value="00017" />
|
||||
<option name="presentableId" value="LOCAL-00017" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574282834574</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00018" summary="#6 UI Updates senden und anzeigen">
|
||||
<created>1574283002922</created>
|
||||
<option name="number" value="00018" />
|
||||
<option name="presentableId" value="LOCAL-00018" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574283002922</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00019" summary="#6 UI Updates senden und anzeigen">
|
||||
<created>1574283107060</created>
|
||||
<option name="number" value="00019" />
|
||||
<option name="presentableId" value="LOCAL-00019" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574283107060</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00020" summary="#6 UI Updates senden und anzeigen">
|
||||
<created>1574283263948</created>
|
||||
<option name="number" value="00020" />
|
||||
<option name="presentableId" value="LOCAL-00020" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574283263948</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00021" summary="#6 UI Updates senden und anzeigen">
|
||||
<created>1574283721587</created>
|
||||
<option name="number" value="00021" />
|
||||
<option name="presentableId" value="LOCAL-00021" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574283721587</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00022" summary="#6 UI Updates senden und anzeigen">
|
||||
<created>1574284067356</created>
|
||||
<option name="number" value="00022" />
|
||||
<option name="presentableId" value="LOCAL-00022" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574284067356</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00023" summary="#6 UI Updates senden und anzeigen">
|
||||
<created>1574284365024</created>
|
||||
<option name="number" value="00023" />
|
||||
<option name="presentableId" value="LOCAL-00023" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574284365024</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00024" summary="#6 UI Updates senden und anzeigen">
|
||||
<created>1574284478325</created>
|
||||
<option name="number" value="00024" />
|
||||
<option name="presentableId" value="LOCAL-00024" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574284478325</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00025" summary="#6 UI Updates senden und anzeigen logs entfernt">
|
||||
<created>1574284617102</created>
|
||||
<option name="number" value="00025" />
|
||||
<option name="presentableId" value="LOCAL-00025" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574284617102</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00026" summary="#8 Relais ein / ausschalten von Ocotprint aus - Toggle Button anzeigen und Events eingebaut - Api funktionen für Relais ein / aus und toggle implementiert">
|
||||
<created>1574604851601</created>
|
||||
<option name="number" value="00026" />
|
||||
<option name="presentableId" value="LOCAL-00026" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574604851601</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00027" summary="#8 Relais ein / ausschalten von Ocotprint aus - Button Style auf default geändert - get_api_commands implementiert">
|
||||
<created>1574605785309</created>
|
||||
<option name="number" value="00027" />
|
||||
<option name="presentableId" value="LOCAL-00027" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574605785309</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00028" summary="#8 Relais ein / ausschalten von Ocotprint aus - url korrigiert">
|
||||
<created>1574606064523</created>
|
||||
<option name="number" value="00028" />
|
||||
<option name="presentableId" value="LOCAL-00028" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574606064523</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00029" summary="#8 Relais ein / ausschalten von Ocotprint aus">
|
||||
<created>1574606292074</created>
|
||||
<option name="number" value="00029" />
|
||||
<option name="presentableId" value="LOCAL-00029" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574606292074</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00030" summary="#8 Relais ein / ausschalten von Ocotprint aus - url korrigiert">
|
||||
<created>1574606712347</created>
|
||||
<option name="number" value="00030" />
|
||||
<option name="presentableId" value="LOCAL-00030" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574606712347</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00031" summary="#8 Relais ein / ausschalten von Ocotprint aus - Toggle Button enable / disable in Einstellunge - Databinding von Button">
|
||||
<created>1574607577396</created>
|
||||
<option name="number" value="00031" />
|
||||
<option name="presentableId" value="LOCAL-00031" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574607577396</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00032" summary="#8 Relais ein / ausschalten von Ocotprint aus">
|
||||
<created>1574607723126</created>
|
||||
<option name="number" value="00032" />
|
||||
<option name="presentableId" value="LOCAL-00032" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574607723126</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00033" summary="#8 Relais ein / ausschalten von Ocotprint aus">
|
||||
<created>1574608168544</created>
|
||||
<option name="number" value="00033" />
|
||||
<option name="presentableId" value="LOCAL-00033" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574608168544</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00034" summary="#8 Relais ein / ausschalten von Ocotprint aus">
|
||||
<created>1574608700412</created>
|
||||
<option name="number" value="00034" />
|
||||
<option name="presentableId" value="LOCAL-00034" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574608700412</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00035" summary="#8 Relais ein / ausschalten von Ocotprint aus">
|
||||
<created>1574609194050</created>
|
||||
<option name="number" value="00035" />
|
||||
<option name="presentableId" value="LOCAL-00035" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574609194050</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00036" summary="#8 Relais ein / ausschalten von Ocotprint aus">
|
||||
<created>1574609901438</created>
|
||||
<option name="number" value="00036" />
|
||||
<option name="presentableId" value="LOCAL-00036" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574609901438</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00037" summary="#8 Relais ein / ausschalten von Ocotprint aus">
|
||||
<created>1574610253466</created>
|
||||
<option name="number" value="00037" />
|
||||
<option name="presentableId" value="LOCAL-00037" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574610253466</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00038" summary="#9 Relais ausschalten wenn Octoprint heruntergefahren wird #7 Relais einschalten wenn Octoprint gestartet wurde">
|
||||
<created>1574707150761</created>
|
||||
<option name="number" value="00038" />
|
||||
<option name="presentableId" value="LOCAL-00038" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574707150761</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" />
|
||||
<option name="presentableId" value="LOCAL-00040" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574707826329</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00041" summary="#9 Relais ausschalten wenn Octoprint heruntergefahren wird #7 Relais einschalten wenn Octoprint gestartet wurde">
|
||||
<created>1574708023156</created>
|
||||
<option name="number" value="00041" />
|
||||
<option name="presentableId" value="LOCAL-00041" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574708023156</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00042" summary="#9 Relais ausschalten wenn Octoprint heruntergefahren wird #7 Relais einschalten wenn Octoprint gestartet wurde Api call fix">
|
||||
<created>1574708245896</created>
|
||||
<option name="number" value="00042" />
|
||||
<option name="presentableId" value="LOCAL-00042" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574708245896</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00043" summary="#9 Relais ausschalten wenn Octoprint heruntergefahren wird #7 Relais einschalten wenn Octoprint gestartet wurde Api call fix">
|
||||
<created>1574708497039</created>
|
||||
<option name="number" value="00043" />
|
||||
<option name="presentableId" value="LOCAL-00043" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574708497039</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00044" summary="#13 Wenn Request fehlschägt max. 3x versuchen">
|
||||
<created>1574710870028</created>
|
||||
<option name="number" value="00044" />
|
||||
<option name="presentableId" value="LOCAL-00044" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574710870028</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" />
|
||||
<option name="presentableId" value="LOCAL-00046" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574712205852</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00047" summary="#14 Einstellungen reorganisieren">
|
||||
<created>1574873790898</created>
|
||||
<option name="number" value="00047" />
|
||||
<option name="presentableId" value="LOCAL-00047" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574873790898</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00048" summary="#14 Einstellungen reorganisieren">
|
||||
<created>1574873809876</created>
|
||||
<option name="number" value="00048" />
|
||||
<option name="presentableId" value="LOCAL-00048" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574873809876</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00049" summary="#14 Einstellungen reorganisieren - Beschreibungen angepasst">
|
||||
<created>1574874286229</created>
|
||||
<option name="number" value="00049" />
|
||||
<option name="presentableId" value="LOCAL-00049" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574874286229</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00050" summary="#15 Beschreibung erstellen">
|
||||
<created>1574876224274</created>
|
||||
<option name="number" value="00050" />
|
||||
<option name="presentableId" value="LOCAL-00050" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574876224274</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00051" summary="#15 Beschreibung erstellen">
|
||||
<created>1574876349466</created>
|
||||
<option name="number" value="00051" />
|
||||
<option name="presentableId" value="LOCAL-00051" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1574876349466</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00052" summary="#16 Codereview Octoprint Plugin Repo">
|
||||
<created>1575192543311</created>
|
||||
<option name="number" value="00052" />
|
||||
<option name="presentableId" value="LOCAL-00052" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1575192543311</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="53" />
|
||||
<servers />
|
||||
</component>
|
||||
<component name="UnknownFeatures">
|
||||
<option featureType="com.intellij.fileTypeFactory" implementationName="*.js" />
|
||||
</component>
|
||||
<component name="Vcs.Log.History.Properties">
|
||||
<option name="COLUMN_ORDER">
|
||||
<list>
|
||||
<option value="0" />
|
||||
<option value="2" />
|
||||
<option value="3" />
|
||||
<option value="1" />
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="Vcs.Log.Tabs.Properties">
|
||||
<option name="TAB_STATES">
|
||||
<map>
|
||||
<entry key="MAIN">
|
||||
<value>
|
||||
<State />
|
||||
<State>
|
||||
<option name="COLUMN_ORDER" />
|
||||
</State>
|
||||
</value>
|
||||
</entry>
|
||||
</map>
|
||||
</option>
|
||||
</component>
|
||||
<component name="VcsManagerConfiguration">
|
||||
<MESSAGE value="#2 Einstellungen für IP Adresse von Switch #3 Einstellung für Abfrageintervall" />
|
||||
<MESSAGE value="#5 Rest Api integration" />
|
||||
<MESSAGE value="#5 Rest Api integration - Bugfix plugin_requires" />
|
||||
<MESSAGE value="#5 Rest Api integration - Nullpointer fix" />
|
||||
<MESSAGE value="#6 UI Updates senden und anzeigen - unnötigen Code entfernen, erster Versuch" />
|
||||
<MESSAGE value="Revert "#6 UI Updates senden und anzeigen" This reverts commit f83d4259" />
|
||||
<MESSAGE value="#6 UI Updates senden und anzeigen" />
|
||||
<MESSAGE value="#6 UI Updates senden und anzeigen logs entfernt" />
|
||||
<MESSAGE value="#8 Relais ein / ausschalten von Ocotprint aus - Toggle Button anzeigen und Events eingebaut - Api funktionen für Relais ein / aus und toggle implementiert" />
|
||||
<MESSAGE value="#8 Relais ein / ausschalten von Ocotprint aus - Button Style auf default geändert - get_api_commands implementiert" />
|
||||
<MESSAGE value="#8 Relais ein / ausschalten von Ocotprint aus - url korrigiert" />
|
||||
<MESSAGE value="#8 Relais ein / ausschalten von Ocotprint aus - Toggle Button enable / disable in Einstellunge - Databinding von Button" />
|
||||
<MESSAGE value="#8 Relais ein / ausschalten von Ocotprint aus" />
|
||||
<MESSAGE value="#9 Relais ausschalten wenn Octoprint heruntergefahren wird #7 Relais einschalten wenn Octoprint gestartet wurde Logging schreibfehler Url Fix für Powercycle" />
|
||||
<MESSAGE value="#9 Relais ausschalten wenn Octoprint heruntergefahren wird #7 Relais einschalten wenn Octoprint gestartet wurde" />
|
||||
<MESSAGE value="#9 Relais ausschalten wenn Octoprint heruntergefahren wird #7 Relais einschalten wenn Octoprint gestartet wurde Api call fix" />
|
||||
<MESSAGE value="#13 Wenn Request fehlschägt max. 3x versuchen" />
|
||||
<MESSAGE value="#11 Energieverbrauch näherungsweise berechnen" />
|
||||
<MESSAGE value="#14 Einstellungen reorganisieren" />
|
||||
<MESSAGE value="#14 Einstellungen reorganisieren - Beschreibungen angepasst" />
|
||||
<MESSAGE value="#15 Beschreibung erstellen" />
|
||||
<MESSAGE value="#16 Codereview Octoprint Plugin Repo" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="#16 Codereview Octoprint Plugin Repo" />
|
||||
</component>
|
||||
</project>
|
@ -79,13 +79,16 @@ class MyStromSwitchPlugin(octoprint.plugin.SettingsPlugin,
|
||||
try:
|
||||
request = requests.get(
|
||||
'http://{}/report'.format(self.ip), timeout=1)
|
||||
self._logger.info("request finish")
|
||||
if request.status_code == 200:
|
||||
self._logger.info("request OK")
|
||||
timestamp = time.time()
|
||||
data = request.json()
|
||||
if not self.lastTimeStamp == 0:
|
||||
intervall = timestamp - self.lastTimeStamp
|
||||
# Energy in Wh
|
||||
self.energy = self.energy + (intervall * data["power"] / 3600)
|
||||
self._logger.info("Energy: " + self.energy)
|
||||
self.lastTimeStamp = timestamp
|
||||
data["energy"] = self.energy
|
||||
data["onOffButtonEnabled"] = self.onOffButtonEnabled
|
||||
@ -123,14 +126,20 @@ class MyStromSwitchPlugin(octoprint.plugin.SettingsPlugin,
|
||||
value = 'off'
|
||||
while nbRetry < 3:
|
||||
try:
|
||||
request = requests.post(
|
||||
'http://{}/timer'.format(self.ip), params={'mode': value, 'time': time}, timeout=1)
|
||||
if request.status_code == 200:
|
||||
return
|
||||
else:
|
||||
self._logger.info("Could not powerCycle Relais, Http Status Code: {}".format(request.status_code))
|
||||
except requests.exceptions.ConnectionError:
|
||||
self._logger.info("Error during powerCycle Relais")
|
||||
try:
|
||||
self._logger.info("try to send Powercycle Request")
|
||||
request = requests.post(
|
||||
'http://{}/timer'.format(self.ip), params={'mode': value, 'time': time}, timeout=1)
|
||||
self._logger.info("powerCycle Request Status: " + request.status_code)
|
||||
if request.status_code == 200:
|
||||
return
|
||||
else:
|
||||
self._logger.info(
|
||||
"Could not powerCycle Relais, Http Status Code: {}".format(request.status_code))
|
||||
except requests.exceptions.ConnectionError as e:
|
||||
self._logger.info("Error during powerCycle Relais: " + e.message)
|
||||
except Exception as exp:
|
||||
self._logger.info("Exception aufgetreten: " + exp.message)
|
||||
nbRetry = nbRetry + 1
|
||||
|
||||
def _toggleRelay(self):
|
||||
@ -171,6 +180,7 @@ class MyStromSwitchPlugin(octoprint.plugin.SettingsPlugin,
|
||||
self._setRelaisState(True)
|
||||
|
||||
def on_shutdown(self):
|
||||
self._logger.info("on_shutdown_event")
|
||||
if self.powerOffOnShutdown:
|
||||
if self.powerOffDelay <= 0:
|
||||
self._logger.info("Turn on Relais off Shutdown")
|
||||
|
Loading…
Reference in New Issue
Block a user