From 576a53fad16abce71350d7f48099257e269a7a07 Mon Sep 17 00:00:00 2001 From: David Zingg Date: Sun, 24 Nov 2019 15:45:12 +0100 Subject: [PATCH] #8 Relais ein / ausschalten von Ocotprint aus - url korrigiert --- octoprint_mystromswitch/static/js/mystromswitch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octoprint_mystromswitch/static/js/mystromswitch.js b/octoprint_mystromswitch/static/js/mystromswitch.js index ef37ed7..b38a543 100644 --- a/octoprint_mystromswitch/static/js/mystromswitch.js +++ b/octoprint_mystromswitch/static/js/mystromswitch.js @@ -11,7 +11,7 @@ $(function() { self.onToggleRelayEvent = function(){ $.ajax({ - url: API_BASEURL + "/plugin/mystromswitch", + url: API_BASEURL + "plugin/mystromswitch", type: "POST", dataType: "json", data: JSON.stringify({