{"id":28182982,"url":"https://github.com/pors/tello-play","last_synced_at":"2025-05-16T04:15:04.722Z","repository":{"id":290195565,"uuid":"973654513","full_name":"pors/tello-play","owner":"pors","description":"Basic scripts to control the Tello drone with code","archived":false,"fork":false,"pushed_at":"2025-05-06T20:48:46.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-06T21:26:29.123Z","etag":null,"topics":["dji-tello","drones","pygame","robomaster","tello","tello-sdk"],"latest_commit_sha":null,"homepage":"https://dronelab.dev","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pors.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-27T13:07:57.000Z","updated_at":"2025-05-06T20:48:49.000Z","dependencies_parsed_at":"2025-04-27T14:36:55.600Z","dependency_job_id":null,"html_url":"https://github.com/pors/tello-play","commit_stats":null,"previous_names":["pors/tello-play"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pors%2Ftello-play","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pors%2Ftello-play/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pors%2Ftello-play/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pors%2Ftello-play/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pors","download_url":"https://codeload.github.com/pors/tello-play/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254464891,"owners_count":22075572,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dji-tello","drones","pygame","robomaster","tello","tello-sdk"],"created_at":"2025-05-16T04:14:43.514Z","updated_at":"2025-05-16T04:15:04.714Z","avatar_url":"https://github.com/pors.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dronelab.dev: Tello Play\n\nThis repository contains basic scripts to control the Tello drone using Python. It uses the `djitellopy` library to communicate with the Tello drone.\n\nThese scripts accompany the blog posts on [dronelab.dev](https://dronelab.dev).\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Setup](#setup)\n- [How to Run the Scripts](#how-to-run-the-scripts)\n- [Scripts Overview](#scripts-overview)\n- [License](#license)\n\n## Installation\n\nTo get started, you need to install Python and the `djitellopy` library.\n\n1. Clone this repository to your local machine:\n\n   ```bash\n   git clone https://github.com/pors/tello-play.git\n   cd tello-play\n   ```\n\n2. Install the required library `djitellopy` using pip:\n\n   ```bash\n   pip install djitellopy\n   ```\n\n3. Make sure your Python version is 3.7 or higher.\n\n## Setup\n\nDepending on if you use STA/router-mode or AP/direct mode, make sure the `host` field in `tello.Tello(host=\"192.168.1.85\")` is set correctly or omitted.\nFor more information check [Dronelab - Router mode](https://dronelab.dev/posts/crash-the-tello/#using-router-mode).\n\n### Connecting to the Tello Drone\n1. Turn on your Tello drone.\n2. Connect your computer to the Tello drone's Wi-Fi network.\n3. Once connected, you can use the scripts in this repository to control the drone.\n\nNote that if you use STA/router-mode, the Tello and the computer need both the be connected to your router.\n\n## How to Run the Scripts\n\nTo run any of the scripts, use the following command:\n\n```bash\npython \u003cscript_name\u003e.py\n```\n\n## Scripts Overview\n\nHere's a list of all the Python scripts in this repository and what each one does:\n\n- **connected_test.py**: A simple script to check if the Tello drone is connected, displaying battery level and temperature.\n\n- **fly.py**: Basic flight example that connects to the Tello, takes off, performs several simple movements using RC controls, and then lands.\n\n- **gamesirT1d-connect.py**: Script to discover and connect to a GameSir T1d Bluetooth controller, displaying available services and characteristics.\n\n- **gamesirT1d-read.py**: Reads and displays real-time input data from a GameSir T1d controller including joystick positions and button states.\n\n- **gamesir_t1d_pygame.py**: Core implementation of a pygame-compatible interface for the GameSir T1d controller, providing a consistent interface that works with pygame.\n\n- **gamesir_t1d_pygame_example.py**: Example showing how to use the pygame wrapper for the GameSir T1d controller, visualizing joystick movements.\n\n- **image-capture.py**: Streams video from the Tello's camera, displays it in a window, and allows for quitting with the 'q' key.\n\n- **manual-control-pygame.py**: Full-featured script for controlling the Tello drone with keyboard inputs using pygame, displaying video feed with battery status.\n\n- **set-wifi.py**: Utility to configure the Tello to connect to a WiFi network (router mode), accepting SSID and password input.\n\n- **tello_controller_sim.py**: A simulator for testing Tello drone controls without using a physical drone, visualizing drone position and movement.\n\n- **tello_gamesir_controller.py**: Demo script that visualizes the inputs from a GameSir T1d controller without connecting to a drone.\n\nThe repository also includes a `tello_images` directory where screenshots captured from the drone camera are stored.\n\n## License\n\nThis project is licensed under the MIT License. See the `LICENSE` file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpors%2Ftello-play","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpors%2Ftello-play","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpors%2Ftello-play/lists"}