{"id":16790300,"url":"https://github.com/cdgriffith/pymote_control","last_synced_at":"2026-01-03T09:11:12.754Z","repository":{"id":66133619,"uuid":"102147517","full_name":"cdgriffith/pymote_control","owner":"cdgriffith","description":null,"archived":false,"fork":false,"pushed_at":"2017-09-22T15:13:21.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"development","last_synced_at":"2025-01-23T01:39:17.421Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cdgriffith.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-09-01T19:44:14.000Z","updated_at":"2020-05-04T22:35:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"3a9ad0a0-6a41-471a-86f9-4cd1c58d6b02","html_url":"https://github.com/cdgriffith/pymote_control","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/cdgriffith%2Fpymote_control","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdgriffith%2Fpymote_control/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdgriffith%2Fpymote_control/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdgriffith%2Fpymote_control/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdgriffith","download_url":"https://codeload.github.com/cdgriffith/pymote_control/tar.gz/refs/heads/development","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243955700,"owners_count":20374373,"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-10-13T08:29:25.366Z","updated_at":"2026-01-03T09:11:12.716Z","avatar_url":"https://github.com/cdgriffith.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pymote Control Center \n\n```\n__________________________\n|        .::::::::.       |\n|        :::  :::::       |\n|        ```````:::       |\n|    .::::::::::::: ii,   |\n|  :::::::::::::::: iiii  |\n|  ::::: ,,,,,,,,,,iiiii  |\n|    `:: iiiiiiiiiiii`    |\n|        iii,,,,,,,       |\n|        iiiii  iii       |\n|        `iiiiiiii`       |\n|                         |\n|  (PWR)                  |\n|                         |\n|  ( 1 )   ( 2 )   ( 3 )  |\n|                         |\n|  ( 4 )   ( 5 )   ( 6 )  |\n|                         |\n|  ( 7 )   ( 8 )   ( 9 )  |\n|                         |\n|          ( 0 )          |\n|                         |\n|_________________________|\n\n```\n\n## Install \n\nRequires: \n\n* Python 3.6+ \n* Linux (might work with Windows, untested)\n\nRemotely execute and check on commands. Start it up with `python3.6 pymote_control.py`\nafter installing everything in `requirements.txt`\n\nTo install, download as a zip file and move to a perminiate directory \nof your choice, in this example we will use `/opt/pymote_control`.\nYou **must** be `root` to install. \n\n```bash\nmkdir -p /opt/pymote_control\ncd /opt/pymote_control\nwget https://github.com/cdgriffith/pymote_control/archive/master.zip\nunzip master.zip \npython3.6 setup.py install \n```\n\n## Example \n\n```python\nimport time \nimport requests \n\nreq = requests.post(\"http://localhost:8000/v1/program/\", json={\"command\": \"sleep 10; echo 'hi'\"})\nprint(req.json())\n{'pid': '7659'}\n\nprint(requests.get(f\"http://localhost:8000/v1/program/{req.json()['pid']}\").json())\n{'stdout': '', 'stderr': '', 'finished': False, 'return_code': None}\n\ntime.sleep(10)\n\nprint(requests.get(f\"http://localhost:8000/v1/program/{req.json()['pid']}\").json())\n{'stdout': 'hi\\n', 'stderr': '', 'finished': True, 'return_code': 0}\n```\n\nEndpoints: \n\n* POST   /v1/program/            | New command\n* GET    /v1/program/\u003cpid\u003e       | View the logs\n* POST   /v1/program/\u003cpid\u003e/stop  | terminate a program\n* DELETE /v1/program/\u003cpid\u003e       | terminate and delete all files\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdgriffith%2Fpymote_control","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdgriffith%2Fpymote_control","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdgriffith%2Fpymote_control/lists"}