Zitat von Max2612
Beitrag anzeigen
Code:
driver_address = "" driver_port = ""
Code:
diff --git a/driver/io_smarthome.py.js b/driver/io_smarthome.py.js
index ebd60ce..66fc792 100755
--- a/driver/io_smarthome.py.js
+++ b/driver/io_smarthome.py.js
@@ -151,6 +151,12 @@ var io = {
// use url of current page if not defined
io.address = location.hostname;
}
+ if (!io.port) {
+ // use port of current page if not defined and needed
+ if ( ! ((location.protocol == 'https' && location.port == '443') || (location.protocol == 'http' && location.port == '80')) ) {
+ io.port = location.port;
+ }
+ }
}
io.socket = new WebSocket(protocol + io.address + ':' + io.port);


Du nutzt also wohl develop.
Kommentar