{"id":15172716,"url":"https://github.com/raspberrypi/pytrack","last_synced_at":"2025-10-19T16:32:44.035Z","repository":{"id":70953524,"uuid":"78010776","full_name":"raspberrypi/pytrack","owner":"raspberrypi","description":null,"archived":false,"fork":false,"pushed_at":"2018-09-10T20:17:46.000Z","size":714,"stargazers_count":17,"open_issues_count":3,"forks_count":8,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-01-29T22:08:00.819Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/raspberrypi.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}},"created_at":"2017-01-04T11:44:14.000Z","updated_at":"2023-07-30T21:31:27.000Z","dependencies_parsed_at":"2023-02-23T09:45:17.462Z","dependency_job_id":null,"html_url":"https://github.com/raspberrypi/pytrack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raspberrypi%2Fpytrack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raspberrypi%2Fpytrack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raspberrypi%2Fpytrack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raspberrypi%2Fpytrack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raspberrypi","download_url":"https://codeload.github.com/raspberrypi/pytrack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237172227,"owners_count":19266634,"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":[],"created_at":"2024-09-27T10:03:57.107Z","updated_at":"2025-10-19T16:32:43.676Z","avatar_url":"https://github.com/raspberrypi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pytrack - Modular Python HAB tracker\n\nHAB tracker software for the Pi In The Sky board and LoRa expansion board.\n\n\nThe pytrack package and its Python dependencies, can be installed on a Raspberry Pi with:\n\n  ```bash\n  sudo apt update\n  sudo apt install python3-pytrack\n  ```\n\n## Raspbian Configuration\n\nEnable the following with raspi-config:\n\n\tInterfacing Options --\u003e Camera --\u003e Yes\n\tInterfacing Options --\u003e SPI --\u003e Yes\n\tInterfacing Options --\u003e Serial --\u003e No (enable login) --\u003e Yes (enable hardware)\n\tInterfacing Options --\u003e 1-Wire --\u003e Yes\n\n### Additional step for Raspberry Pi 3\nIn order to use the PITs board with the Raspberry Pi 3 you will need to carry out some additional steps to disable the bluetooth (which conflicts with PITs)\n\n  - Edit your */boot/config.txt* by typing `sudo nano /boot/config.txt`\n\t- Add `dtoverlay=pi3-disable-bt` to the very bottom of the file to disable bluetooth.\n\t- Press `Ctrl + x` then `Enter` to save and exit.\n\t- Finally type `sudo systemctl disable hciuart` followed by `sudo reboot`\n\n## Usage\n\nBefore running the tracker, it is necessary to start the pigpio daemon, with:\n\n\tsudo pigpiod\n\nYou can then create you own tracker program in python using the pytrack module, here's a simple example:\n\n```\nfrom pytrack.tracker import *\nfrom time import sleep\n\n# Creates a tracker object to control the PITs board\nmytracker = Tracker()\n\n# Set rtty payload name, transmission details image frequency\nmytracker.set_rtty(payload_id='name1', frequency=434.250, baud_rate=300)\nmytracker.add_rtty_camera_schedule('images/RTTY', period=60)\n\n# Set Lora payload name, transmission details and image frequency\nmytracker.set_lora(payload_id='name2', channel=0, frequency=434.150, mode=1)\nmytracker.add_lora_camera_schedule('images/LORA', period=60)\n\n# Set how frequently to capture and store an image at Maximum resolution\nmytracker.add_full_camera_schedule('images/FULL', period=60)\n\n# Start the tracker\nmytracker.start()\n\nwhile True:\n\tsleep(1)\n```\nTo run the tracker type `python3 your_file_name.py`\n\n## Auto Startup\n\nAdd the following lines to the file **/etc/rc.local**, before the **exit 0** line:\n\n```bash\npigpiod\nsu pi -c \"python3 /home/pi/your_file_name.py\" \u0026\n```\n\n## Documentation\n\nYou can find more information about the component libraries and their usage in the [Documentation](docs/)\t\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraspberrypi%2Fpytrack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraspberrypi%2Fpytrack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraspberrypi%2Fpytrack/lists"}