Sync: Complete project state with all MEGA SPRINT V1-V3 features and Codex stubs
This commit is contained in:
32
disable_record_temp.py
Normal file
32
disable_record_temp.py
Normal file
@@ -0,0 +1,32 @@
|
||||
import socket
|
||||
import json
|
||||
|
||||
HOST = "127.0.0.1"
|
||||
PORT = 9877
|
||||
|
||||
try:
|
||||
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
sock.settimeout(5.0)
|
||||
sock.connect((HOST, PORT))
|
||||
|
||||
command = json.dumps({
|
||||
"type": "set_record_mode",
|
||||
"params": {"enabled": False}
|
||||
})
|
||||
|
||||
sock.sendall((command + "\n").encode('utf-8'))
|
||||
|
||||
response = b""
|
||||
while True:
|
||||
chunk = sock.recv(4096)
|
||||
if not chunk:
|
||||
break
|
||||
response += chunk
|
||||
if b"\n" in chunk:
|
||||
break
|
||||
|
||||
print("Response:", response.decode('utf-8'))
|
||||
sock.close()
|
||||
|
||||
except Exception as e:
|
||||
print("Error:", str(e))
|
||||
Reference in New Issue
Block a user