OctoPrint-MyStromSwitch/octoprint_mystromswitch/templates/mystromswitch_sidebar.jinja2
David Zingg 7a4d53d221 #8 Relais ein / ausschalten von Ocotprint aus
- Button Style auf default geändert
- get_api_commands implementiert
2019-11-24 15:29:45 +01:00

6 lines
343 B
Django/Jinja

<div class="sidebar_plugin_mystromswitch">
<label class="control-label" id="mystromswitchPowerValue">Powerconsumption 0.0W</label>
<span id="myStromRelaisToggleButton" type="button" class="mystromToggleButton">Toggle Relais</span>
<button class="btn btn-primary" data-bind="click: onToggleRelayEvent">{{ _('Go') }}</button>
</div>