2019-11-19 21:29:32 +01:00
<form class="form-horizontal">
<h4>General</h4>
<hr>
<h5>Mode GCODE</h5>
<div class="control-group">
<div class="controls">
<label class="checkbox">
2019-11-19 21:55:31 +01:00
<input type="checkbox" id="mystromswitch_mode_shutdown_gcode" data-bind="checked: settings.plugins.mystromswitch._mode_shutdown_gcode">activate this mode
2019-11-19 21:29:32 +01:00
</label>
</div>
</div>
<div class="control-group">
<label class="control-label">{{ _('GCODE') }}</label>
<div class="controls">
2019-11-19 21:55:31 +01:00
<input type="text" class="input-block-level" data-bind="value: settings.plugins.mystromswitch.gcode">
2019-11-19 21:29:32 +01:00
</div>
</div>
<div class="control-group">
<label class="control-label">{{ _('Parameter (IP or other)') }}</label>
<div class="controls">
2019-11-19 21:55:31 +01:00
<input type="text" class="input-block-level" data-bind="value: settings.plugins.mystromswitch.url">
2019-11-19 21:29:32 +01:00
</div>
</div>
<div class="control-group">
<div class="controls">
2019-11-19 21:55:31 +01:00
<button id="tester_mystromswitch_gcode" type="button" class="btn btn-primary pull-right"><i class="fa fa-spinner fa-spin" data-bind="visible: sending" style="display: none;"></i>Test</button>
2019-11-19 21:29:32 +01:00
</div>
</div>
<hr>
<h5>Mode API</h5>
<div class="control-group">
<div class="controls">
<label class="checkbox">
2019-11-19 21:55:31 +01:00
<input type="checkbox" id="mystromswitch_mode_shutdown_api" data-bind="checked: settings.plugins.mystromswitch._mode_shutdown_api">activate this mode
2019-11-19 21:29:32 +01:00
</label>
</div>
</div>
<div class="control-group">
<label class="control-label">{{ _('api key (key octoprint)') }}</label>
<div class="controls">
<div class="input-append">
2019-11-19 21:55:31 +01:00
<input type="text" class="input" data-bind="value: settings.plugins.mystromswitch.api_key_plugin">
2019-11-19 21:29:32 +01:00
</div>
</div>
</div>
<div class="control-group">
<label class="control-label">{{ _('Plugin ID') }}</label>
<div class="controls">
<div class="input-append">
2019-11-19 21:55:31 +01:00
<input type="text" class="input" data-bind="value: settings.plugins.mystromswitch.api_plugin_name">
2019-11-19 21:29:32 +01:00
</div>
</div>
</div>
<div class="control-group">
<label class="control-label">{{ _('Port') }}</label>
<div class="controls">
<div class="input-append">
2019-11-19 21:55:31 +01:00
<input type="number" min='0' class="input-mini text-right" data-bind="value: settings.plugins.mystromswitch.api_plugin_port">
2019-11-19 21:29:32 +01:00
</div>
</div>
</div>
<div class="control-group">
<label class="control-label">JSON</label>
<div class="controls">
2019-11-19 21:55:31 +01:00
<textarea rows="4" class="block" data-bind="value: settings.plugins.mystromswitch.api_json_command"></textarea>
2019-11-19 21:29:32 +01:00
</div>
</div>
<div class="control-group">
<div class="controls">
2019-11-19 21:55:31 +01:00
<button id="tester_mystromswitch_api" type="button" class="btn btn-primary pull-right"><i class="fa fa-spinner fa-spin" data-bind="visible: sending" style="display: none;"></i>Test</button>
2019-11-19 21:29:32 +01:00
</div>
</div>
<hr>
<h5>Mode API Custom</h5>
<div class="control-group">
<div class="controls">
<label class="checkbox">
2019-11-19 21:55:31 +01:00
<input type="checkbox" id="mystromswitch_mode_shutdown_api_custom" data-bind="checked: settings.plugins.mystromswitch._mode_shutdown_api_custom">activate this mode
2019-11-19 21:29:32 +01:00
</label>
</div>
</div>
<div class="control-group">
<div class="controls">
<label class="checkbox">
2019-11-19 21:55:31 +01:00
<input type="checkbox" id="mystromswitch_api_custom_GET" data-bind="checked: settings.plugins.mystromswitch.api_custom_GET">GET
2019-11-19 21:29:32 +01:00
</label>
<label class="checkbox">
2019-11-19 21:55:31 +01:00
<input type="checkbox" id="mystromswitch_api_custom_POST" data-bind="checked: settings.plugins.mystromswitch.api_custom_POST">POST
2019-11-19 21:29:32 +01:00
</label>
<label class="checkbox">
2019-11-19 21:55:31 +01:00
<input type="checkbox" id="mystromswitch_api_custom_PUT" data-bind="checked: settings.plugins.mystromswitch.api_custom_PUT">PUT
2019-11-19 21:29:32 +01:00
</label>
</div>
</div>
<div class="control-group">
<label class="control-label">{{ _('URL') }}</label>
<div class="controls">
2019-11-19 21:55:31 +01:00
<input type="text" class="input-block-level" data-bind="value: settings.plugins.mystromswitch.api_custom_url">
2019-11-19 21:29:32 +01:00
</div>
</div>
<div class="control-group">
<label class="control-label">header (json format)</label>
<div class="controls">
2019-11-19 21:55:31 +01:00
<textarea rows="4" class="block" data-bind="value: settings.plugins.mystromswitch.api_custom_json_header"></textarea>
2019-11-19 21:29:32 +01:00
</div>
</div>
<div class="control-group">
<label class="control-label">body</label>
<div class="controls">
2019-11-19 21:55:31 +01:00
<textarea rows="4" class="block" data-bind="value: settings.plugins.mystromswitch.api_custom_body"></textarea>
2019-11-19 21:29:32 +01:00
</div>
</div>
<div class="control-group">
<div class="controls">
2019-11-19 21:55:31 +01:00
<button id="tester_mystromswitch_api_custom" type="button" class="btn btn-primary pull-right"><i class="fa fa-spinner fa-spin" data-bind="visible: sending" style="display: none;"></i>Test</button>
2019-11-19 21:29:32 +01:00
</div>
</div>
<hr>
<h5>Common options</h5>
<div class="control-group">
<label class="control-label">Abort Timeout</label>
<div class="controls">
<div class="input-append">
2019-11-19 21:55:31 +01:00
<input type="number" class="input-mini text-right" data-bind="value: settings.plugins.mystromswitch.abortTimeout">
2019-11-19 21:29:32 +01:00
<span class="add-on">sec</span>
</div>
</div>
</div>
<div class="control-group">
<div class="controls">
<label class="checkbox">
2019-11-19 21:55:31 +01:00
<input type="checkbox" data-bind="checked: settings.plugins.mystromswitch.rememberCheckBox"> Remember the value of "Shutdown Printer after print finishes"
2019-11-19 21:29:32 +01:00
</label>
</div>
</div>
<hr>
<h4>Events catch</h4>
<div class="control-group">
<div class="controls">
<label class="checkbox">
2019-11-19 21:55:31 +01:00
<input type="checkbox" data-bind="checked: settings.plugins.mystromswitch.printFailed"> Event print failed
2019-11-19 21:29:32 +01:00
</label>
</div>
</div>
<div class="control-group">
<div class="controls">
<label class="checkbox">
2019-11-19 21:55:31 +01:00
<input type="checkbox" data-bind="checked: settings.plugins.mystromswitch.printCancelled"> Event print cancelled
2019-11-19 21:29:32 +01:00
</label>
</div>
</div>
<hr>
<h4>Nozzle temperature target</h4>
<div class="control-group">
<div class="controls">
<label class="checkbox">
2019-11-19 21:55:31 +01:00
<input type="checkbox" mystromswitchTemperatureTarget="true" data-bind="checked: settings.plugins.mystromswitch.temperatureTarget"> Enable temperature target
2019-11-19 21:29:32 +01:00
</label>
</div>
</div>
<h4>Extra command/script</h4>
<div class="control-group">
<div class="controls">
<label class="checkbox">
2019-11-19 21:55:31 +01:00
<input type="text" class="input" data-bind="value: settings.plugins.mystromswitch.extraCommand">
2019-11-19 21:29:32 +01:00
</label>
</div>
</div>
<div class="control-group">
<label class="control-label">{{ _('Temperature') }}</label>
<div class="controls">
<div class="input-append">
2019-11-19 21:55:31 +01:00
<input type="number" min='0' class="input-mini text-right" data-bind="value: settings.plugins.mystromswitch.temperatureValue">
2019-11-19 21:29:32 +01:00
<span class="add-on">°C</span>
</div>
</div>
</div>
</form>