Compare commits

...

2 Commits

Author SHA1 Message Date
ALIHAN DIKEL
d8795bc1f5 Merge branch 'refactor/v2' of https://gitea.umutalihandikel.com/alihan/tello-commander into refactor/v2 2024-11-16 17:37:18 +03:00
ALIHAN DIKEL
569283ae82 . 2024-11-08 00:53:31 +03:00
2 changed files with 9 additions and 8 deletions

View File

@@ -1,13 +1,13 @@
## Prepare DEV env
### working -> for rpi-tello
* init:
* init
* wifi dongle tak & xiaomi uzatıcı tak
* supervisor server process'i başlatır
* start constant puller:
* on server
* ./scripts/constant_pull.sh
* run to monitor ups battery stats:
* rpi çalıştır
* supervisor tello-server ve puller servisleri başlatır
* open webui
* http://192.168.1.219:8001/ui
* run to monitor ups battery stats: (## TODO: bu stats index.html içerisinde de gelebilir mi)
* on client
* websocat ws://192.168.1.219:8000/ws/stats
* manual video stream forward etmek için:

View File

@@ -9,6 +9,7 @@ def start_video_stream(request: Request):
tello = request.app.state.shared_state["tello"]
tello.streamon()
if tello.stream_on:
logger.debug("streamon command sent to tello")
logger.success("tello stream is on")
except Exception as e:
return {"msg": "error", "reason": "failed to start stream"}
logger.error(f"failed to start stream - {e}")
return {"msg": "error", "reason": f"failed to start stream - {e}"}