Merge remote-tracking branch 'rpi/master'

This commit is contained in:
Laila van Reenen 2025-07-03 20:56:59 +02:00
commit 2374365f0e
Signed by: LailaTheElf
GPG Key ID: 8A3EF0226518C12D
2 changed files with 8 additions and 3 deletions

View File

@ -174,7 +174,10 @@
function getBoatLog(e)
{
alert("loggy log");
let cmd = prompt("enter command");
let boat = getDataFomEl(e.target);
console.log("send cmd", boat, cmd);
conn.send(passEl.value + ";sendcmd;" + boat['id'] + ";" + cmd);
}
function reqBoats()
@ -307,4 +310,4 @@
}
</script>
</body>
</html>
</html>

View File

@ -134,8 +134,10 @@ async def sendcmd(data):
if b['id'] == data[2]:
del data[0]
del data[1]
del data[2]
print(data)
data = ";".join(data)
await sendToBoat(b, data)
await sendToBoat(b, data + "\n")
return
async def kick_client(clientId):