{"id":18011528,"url":"https://github.com/leoluk/dft200-go","last_synced_at":"2025-03-26T16:30:27.893Z","repository":{"id":57628957,"uuid":"183279893","full_name":"leoluk/dft200-go","owner":"leoluk","description":"Linux Go CLI for the DFT200 desk treadmill","archived":false,"fork":false,"pushed_at":"2023-02-25T06:25:51.000Z","size":19,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T05:08:54.215Z","etag":null,"topics":["bluetooth","bluez","bluez-dbus"],"latest_commit_sha":null,"homepage":"","language":"Go","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/leoluk.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":"2019-04-24T17:53:12.000Z","updated_at":"2024-03-17T20:49:16.000Z","dependencies_parsed_at":"2024-06-20T04:22:11.544Z","dependency_job_id":"c9b3bba5-211e-4bcc-8623-606bd0ccc8f9","html_url":"https://github.com/leoluk/dft200-go","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/leoluk%2Fdft200-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoluk%2Fdft200-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoluk%2Fdft200-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoluk%2Fdft200-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leoluk","download_url":"https://codeload.github.com/leoluk/dft200-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222155811,"owners_count":16940424,"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":["bluetooth","bluez","bluez-dbus"],"created_at":"2024-10-30T03:11:10.312Z","updated_at":"2024-10-30T03:11:10.954Z","avatar_url":"https://github.com/leoluk.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dft200-go\n\nQuick and dirty Go CLI for the Sportstech DFT200 standing desk treadmill.\n\nRequires a running bluetoothd and Go 1.11+.\n\nInspired by https://github.com/machinekoder/deskfit.\n\n## Disclaimer\n\nThis is an unofficial hobby project with no warranties or liability, implied or otherwise.\n\nUsing a treadmill is dangerous. A few notes by a fellow DFT200 owner:\n\n- The Bluetooth feature is unauthenticated. Anyone in range can control your treadmill.\n\n- I haven't figured out the right command for emergency stop, and I found no references\n  while reverse engineering the Android application. **Always keep the hardware remote control close to you**,\n  especially at higher speeds - pressing the start button *twice* will trigger an emergency stop.\n  \n- Be careful when playing with the Bluetooth interface, you might brick your treadmill.\n  There are commands for reading and (presumably) writing the EEPROM.\n  \n- Do not install the Android application - it requests tons of dangerous permissions for no\n  good reason, and at least one variant of it is packed by a APK packer commonly used by malware.\n  The DFT200 manual recommends to install the APK from their website,\n  which is generally a bad idea™.\n\n## Setup \n\nInstall bluetoothd via your distro package manager and start it:\n\n    systemctl enable bluetooth.service\n    systemctl start bluetooth.service\n\nFind MAC address using `bluetoothctl`:\n\n    scan on\n    devices\n    connect \u003cmac\u003e\n    \nAlternatively, you can use a bluetoothd GUI like Gnome's native applet, blueberry (GTK) or bluedevil (KDE).\n\nInstall to `$GOPATH/bin`:\n\n    go install github.com/leoluk/dft200-go/cmd/dft-cli\n\n## Usage\n\nStart treadmill (or continue, if paused):\n\n    dft-cli -addr \u003cmac\u003e -start\n    \nPause treadmill:\n\n    dft-cli -addr \u003cmac\u003e -pause\n    \nStop treadmill (you don't usually need this, \nit will stop after you leave it paused for a few minutes):\n\n    dft-cli -addr \u003cmac\u003e -stop\n\nSet speed (10-80 for levels 1-8):\n\n    dft-cli -addr \u003cmac\u003e -speed \u003cn\u003e\n\n## Example i3 config\n\n```\nset $tmMac \u003cmac\u003e\n\nbindsym $mod+Ctrl+1 exec ~/go/bin/dft-cli -addr $tmMac -speed 10\nbindsym $mod+Ctrl+2 exec ~/go/bin/dft-cli -addr $tmMac -speed 20\nbindsym $mod+Ctrl+3 exec ~/go/bin/dft-cli -addr $tmMac -speed 30\nbindsym $mod+Ctrl+4 exec ~/go/bin/dft-cli -addr $tmMac -speed 40\nbindsym $mod+Ctrl+5 exec ~/go/bin/dft-cli -addr $tmMac -speed 50\nbindsym $mod+Ctrl+6 exec ~/go/bin/dft-cli -addr $tmMac -speed 60\nbindsym $mod+Ctrl+7 exec ~/go/bin/dft-cli -addr $tmMac -speed 70\nbindsym $mod+Ctrl+8 exec ~/go/bin/dft-cli -addr $tmMac -speed 80\nbindsym $mod+Ctrl+BackSpace exec ~/go/bin/dft-cli -addr $tmMac -pause\nbindsym $mod+Ctrl+Return exec ~/go/bin/dft-cli -addr $tmMac -start\n```\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleoluk%2Fdft200-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleoluk%2Fdft200-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleoluk%2Fdft200-go/lists"}