Warning, file /plasma/plasma-bigscreen/bin/mycroft-skill-launcher.py was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 #!/usr/bin/env python3 0002 0003 import sys 0004 import json 0005 from websocket import create_connection 0006 0007 event_type = sys.argv[1] 0008 ws = create_connection("ws://0.0.0.0:8181/core") 0009 msg = {} 0010 msg["type"] = event_type 0011 msg["data"] = {} 0012 msg_request = json.dumps(msg) 0013 ws.send(msg_request) 0014 sys.exit()