OctoPrint-MyStromSwitch/octoprint_mystromswitch/templates/mystromswitch_settings.jinja2

112 lines
5.6 KiB
Plaintext
Raw Normal View History

2019-11-19 21:29:32 +01:00
<form class="form-horizontal">
<h4>General</h4>
<div class="control-group">
<label class="control-label">{{ _('URL or IP-Address of your switch (without http)') }}</label>
2019-11-19 21:29:32 +01:00
<div class="controls">
<input type="text" class="input-block-level" data-bind="value: settings.plugins.mystromswitch.ip">
2019-11-19 21:29:32 +01:00
</div>
</div>
2020-07-01 21:10:50 +02:00
<div class="control-group">
<label class="control-label">{{ _('API Token') }}</label>
<div class="controls">
<input type="text" class="input-block-level" data-bind="value: settings.plugins.mystromswitch.token">
</div>
</div>
2019-11-19 21:29:32 +01:00
<div class="control-group">
<label class="control-label">Refresh Intervall</label>
2019-11-19 21:29:32 +01:00
<div class="controls">
<div class="input-append">
<input type="number" class="input-mini text-right" data-bind="value: settings.plugins.mystromswitch.intervall">
2019-11-27 17:56:30 +01:00
<span class="add-on">seconds</span>
2019-11-19 21:29:32 +01:00
</div>
2020-11-08 15:28:23 +01:00
<span class="help-block"><small>{{ _('Interval in seconds where relays state, power and energy consumption are refreshed.') }}</small></span>
2019-11-19 21:29:32 +01:00
</div>
</div>
2019-11-27 17:56:30 +01:00
<hr>
<h4>Octoprint Hardware (Raspberry Pi) is not switched on/off by the relais</h4>
<div class="control-group">
<div class="controls">
<label class="checkbox">
<input type="checkbox" data-bind="checked: settings.plugins.mystromswitch.onOffButtonEnabled">Toggle Button Enabled
</label>
2020-11-08 15:28:23 +01:00
<span class="help-block"><small>{{ _('Shows an on/off button on the left side to switch the relays on or off. This setting is only recommended if only your printer is switched on/off.') }}</small></span>
</div>
</div>
<div class="control-group">
<div class="controls">
<label class="checkbox">
2020-11-08 15:28:23 +01:00
<input type="checkbox" data-bind="checked: settings.plugins.mystromswitch.powerOnOnStart">Turn relay ON on Octoprint start
</label>
2020-11-08 15:28:23 +01:00
<span class="help-block"><small>{{ _('This setting switches your mySwitch on if Octoprint is starting up. Turn relays OFF on Octoprint shutdown could also be interesting for you.') }}</small></span>
</div>
</div>
2019-11-27 17:56:30 +01:00
<hr>
<h4>Octoprint Hardware (Raspberry Pi) is switched on/off by the relais</h4>
<div class="control-group">
<div class="controls">
<label class="checkbox">
2020-11-08 15:28:23 +01:00
<input type="checkbox" data-bind="checked: settings.plugins.mystromswitch.powerOffOnShutdown">Turn relay OFF on Octoprint shutdown
</label>
<span class="help-block"><small>{{ _('This setting switches your mySwitch off if Octoprint is shutting down. If your Raspberry Pi is also switched by the relays its recommended to use an turn relay off delay of 60 seconds or more. Keep in mind this switches also off if you restart Octoprint service!') }}</small></span>
</div>
</div>
<div class="control-group">
2020-11-08 15:28:23 +01:00
<label class="control-label">{{ _('Turn Relay Off Delay') }}</label>
<div class="controls">
2019-11-27 17:56:30 +01:00
<div class="input-append">
<input type="number" class="input-block-level" data-bind="value: settings.plugins.mystromswitch.powerOffDelay">
<span class="add-on">seconds</span>
</div>
2020-11-08 15:28:23 +01:00
<span class="help-block"><small>{{ _('Delay in seconds after octoprint is shut down to switch off relays. This setting is recommended to make sure that Raspberry Pi is completely shut down when you switch power off. Switching power off while your Raspberry Pi is running could lead to irrepairable damage to your SD Card!') }}</small></span>
</div>
</div>
<h4>Automatic Power Off Features</h4>
<div class="control-group">
<div class="controls">
<label class="checkbox">
2020-11-08 15:28:23 +01:00
<input type="checkbox" data-bind="checked: settings.plugins.mystromswitch.rememberShutdown">Remember Shutdown
</label>
<span class="help-block"><small>{{ _('Remember state of the checkboxes after reboot') }}</small></span>
</div>
</div>
<div class="control-group">
<div class="controls">
<label class="checkbox">
2020-11-08 15:28:23 +01:00
<input type="checkbox" data-bind="checked: settings.plugins.mystromswitch.showShutdownOctopiOption">Show option to automatically shutdown Octoprint after print is finished
</label>
2020-11-08 15:28:23 +01:00
<span class="help-block"><small>{{ _('This setting shows the option to shut down Octoprint and switch your mySwitch off after your print is finished. Use the "Delay after print is finished" option to set after how many seconds Octoprint will be shut down. After this use "Turn Relay Off Delay" to determine after how many seconds the relay will be switched off') }}</small></span>
</div>
</div>
<div class="control-group">
<div class="controls">
<label class="checkbox">
2020-11-08 15:28:23 +01:00
<input type="checkbox" data-bind="checked: settings.plugins.mystromswitch.showPowerOffPrintFinishOption">Show option to turn off relay after print is finished.
</label>
2020-11-08 15:28:23 +01:00
<span class="help-block"><small>{{ _('This setting shows the option to only switch your mySwitch off after your print is finished. Use the "Delay after print is finished" Option to determine after how many seconds the relay will switch off') }}</small></span>
</div>
</div>
<div class="control-group">
<label class="control-label">{{ _('Delay after print is finished') }}</label>
<div class="controls">
<div class="input-append">
<input type="number" class="input-block-level" data-bind="value: settings.plugins.mystromswitch.shutdownDelay">
<span class="add-on">seconds</span>
</div>
<span class="help-block"><small>{{ _('Delay in seconds after after print is finished') }}</small></span>
</div>
</div>
2019-11-19 21:29:32 +01:00
</form>