|
@@ -3,6 +3,7 @@ import json
|
|
|
import websocket
|
|
import websocket
|
|
|
import sys
|
|
import sys
|
|
|
|
|
|
|
|
|
|
+#example: '{"type":"command","commandtype":"diapo","slide":1,"PDF":"EBA"}'
|
|
|
val=""
|
|
val=""
|
|
|
if not sys.stdin.isatty():
|
|
if not sys.stdin.isatty():
|
|
|
val=sys.stdin.read().rstrip('\n')
|
|
val=sys.stdin.read().rstrip('\n')
|
|
@@ -20,6 +21,7 @@ except:
|
|
|
sys.exit(1)
|
|
sys.exit(1)
|
|
|
|
|
|
|
|
ws = websocket.WebSocket()
|
|
ws = websocket.WebSocket()
|
|
|
-ws.connect("wss://wscasa.especificosba.com.ar")
|
|
|
|
|
|
|
+#ws.connect("wss://wscasa.especificosba.com.ar")
|
|
|
|
|
+ws.connect("ws://192.168.1.208:9001")
|
|
|
ws.send(val)
|
|
ws.send(val)
|
|
|
ws.close()
|
|
ws.close()
|