From aeb4bd74d9126a3fec9e58c5fb429361ac4c77bf Mon Sep 17 00:00:00 2001 From: Laurent Date: Wed, 31 Dec 2025 15:17:04 +0100 Subject: [PATCH] Receive form data --- api/mosquitto/data/mosquitto.db | Bin 164 -> 164 bytes rpi/main.py | 16 +++++----------- rpi/services/game_service.py | 16 ++++++++++++++-- 3 files changed, 19 insertions(+), 13 deletions(-) diff --git a/api/mosquitto/data/mosquitto.db b/api/mosquitto/data/mosquitto.db index 68704befe07e37558c971ccd0d04ab68bd3bb55e..de61d7fd72fce45fbf2ac0d65d7583e86156039a 100644 GIT binary patch delta 12 TcmZ3&xP) tuple[bytes, str]: - return self.detection_service.analyze_single_frame() \ No newline at end of file + def make_move(self) -> None: + try : + frame, fen = self.detection_service.analyze_single_frame() + print(fen) + headers = {'Content-Type': 'image/jpeg'} + body = {'frame': frame, 'fen': fen} + response = requests.post( + "https://192.168.15.125:1880/party/image", + data=body, + headers=headers, + verify=False) + print(response.status_code) + except Exception as e: + print(e) \ No newline at end of file