parent
7a4d53d221
commit
8421bd2339
@ -11,7 +11,7 @@ $(function() {
|
|||||||
|
|
||||||
self.onToggleRelayEvent = function(){
|
self.onToggleRelayEvent = function(){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: API_BASEURL + "plugin/mystromswitch",
|
url: API_BASEURL + "/api/plugin/mystromswitch",
|
||||||
type: "POST",
|
type: "POST",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
data: JSON.stringify({
|
data: JSON.stringify({
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<div class="sidebar_plugin_mystromswitch">
|
<div class="sidebar_plugin_mystromswitch">
|
||||||
<label class="control-label" id="mystromswitchPowerValue">Powerconsumption 0.0W</label>
|
<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">{{ _('Toggle Relais') }}</button>
|
||||||
<button class="btn btn-primary" data-bind="click: onToggleRelayEvent">{{ _('Go') }}</button>
|
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user