#8 Relais ein / ausschalten von Ocotprint aus

This commit is contained in:
David Zingg 2019-11-24 15:38:12 +01:00
parent 8421bd2339
commit 0cab5c3bc6

View File

@ -11,7 +11,7 @@ $(function() {
self.onToggleRelayEvent = function(){ self.onToggleRelayEvent = function(){
$.ajax({ $.ajax({
url: API_BASEURL + "/api/plugin/mystromswitch", url: API_BASEURL + "/plugin/mystromswitch",
type: "POST", type: "POST",
dataType: "json", dataType: "json",
data: JSON.stringify({ data: JSON.stringify({