primedeviation / tread Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
This is a bare-bones treadmill app prototype that connects to an under-desk treadmill and displays simple controls and treadmill state, session info, and session history. The app has three tabs: Connect, Sessions, and Current Session. The connect tab allows Bluetooth scan and connect to treadmill devices, the session tab displays a list of past sessions with duration and distance metrics, and the current session tab allows a user to create a new session, start/stop the treadmill, + and - speed, and displays the total distance traveled and current speed of the treadmill.
For testing the app we can use the following treadmill Address and UUID info:
TREADMILL_ADDRESS = "4F:98:56:B5:52:5B"
Here are the complete Service and Characteristic UUID features:
Service: 00001800-0000-1000-8000-00805f9b34fb (Generic Access)
Characteristic: 00002a00-0000-1000-8000-00805f9b34fb (Device Name)
Service: 0000180a-0000-1000-8000-00805f9b34fb (Device Information)
Characteristic: 00002a51-0000-1000-8000-00805f9b34fb (Serial Number String)
Characteristic: 00002a5d-0000-1000-8000-00805f9b34fb (IEEE 11073-20601 Regulatory Certification Data List)
Characteristic: 00002a25-0000-1000-8000-00805f9b34fb (Serial Number String)
Characteristic: 00002a23-0000-1000-8000-00805f9b34fb (System ID)
Characteristic: 00002a29-0000-1000-8000-00805f9b34fb (Manufacturer Name String)
Characteristic: 00002a24-0000-1000-8000-00805f9b34fb (Model Number String)
Characteristic: 00002a27-0000-1000-8000-00805f9b34fb (Hardware Revision String)
Characteristic: 00002a28-0000-1000-8000-00805f9b34fb (Software Revision String)
Service: 0000fff0-0000-1000-8000-00805f9b34fb (Unknown vendor-specific service)
Characteristic: 0000fff1-0000-1000-8000-00805f9b34fb (Unknown vendor-specific characteristic)
Characteristic: 0000fff2-0000-1000-8000-00805f9b34fb (Unknown vendor-specific characteristic)
Service: 00001826-0000-1000-8000-00805f9b34fb (Fitness Machine)
Characteristic: 00002acc-0000-1000-8000-00805f9b34fb (Fitness Machine Feature)
Characteristic: 00002acd-0000-1000-8000-00805f9b34fb (Treadmill Data)
Characteristic: 00002ad3-0000-1000-8000-00805f9b34fb (Training Status)
Characteristic: 00002ada-0000-1000-8000-00805f9b34fb (Supported Speed Range)
Characteristic: 00002ad9-0000-1000-8000-00805f9b34fb (Supported Inclination Range)
Characteristic: 00002ad4-0000-1000-8000-00805f9b34fb (Supported Resistance Level Range)
Characteristic: 00002ad5-0000-1000-8000-00805f9b34fb (Supported Heart Rate Range)
Characteristic: 00002ad6-0000-1000-8000-00805f9b34fb (Supported Power Range)
Characteristic: 00002ad8-0000-1000-8000-00805f9b34fb (Supported Step Rate Range)
This is a python app running on windows 10 pro, Automatically scan for devices, but also provide a scan button in case the device was not ready for the autoscan, display, and increment the speed in MPH 0.1 increments
This is a bare-bones treadmill app prototype that connects to an under-desk treadmill and displays simple controls and treadmill state, session info, and session history. The app has three tabs: Connect, Sessions, and Current Session. The connect tab allows Bluetooth scan and connect to treadmill devices, the session tab displays a list of past sessions with duration and distance metrics, and the current session tab allows a user to create a new session, start/stop the treadmill, + and - speed, and displays the total distance traveled and current speed of the treadmill. This is the initial commit for the project, so your commit should include any dependencies in a requirements.txt file (bleak for example). Make an attempt at complete functionality in this initial commit.
For testing the app we can use the following treadmill Address and UUID info:
TREADMILL_ADDRESS = "4F:98:56:B5:52:5B"
Characteristic UUIDs TREADMILL_DATA_UUID = "00002acd-0000-1000-8000-00805f9b34fb"
TRAINING_STATUS_UUID = "00002ad3-0000-1000-8000-00805f9b34fb"
SPEED_RANGE_UUID = "00002ada-0000-1000-8000-00805f9b34fb"
Here are the complete Service and Characteristic UUID features:
Service: 00001800-0000-1000-8000-00805f9b34fb (Generic Access)
Characteristic: 00002a00-0000-1000-8000-00805f9b34fb (Device Name)
Service: 0000180a-0000-1000-8000-00805f9b34fb (Device Information)
Characteristic: 00002a51-0000-1000-8000-00805f9b34fb (Serial Number String)
Characteristic: 00002a5d-0000-1000-8000-00805f9b34fb (IEEE 11073-20601 Regulatory Certification Data List)
Characteristic: 00002a25-0000-1000-8000-00805f9b34fb (Serial Number String)
Characteristic: 00002a23-0000-1000-8000-00805f9b34fb (System ID)
Characteristic: 00002a29-0000-1000-8000-00805f9b34fb (Manufacturer Name String)
Characteristic: 00002a24-0000-1000-8000-00805f9b34fb (Model Number String)
Characteristic: 00002a27-0000-1000-8000-00805f9b34fb (Hardware Revision String)
Characteristic: 00002a28-0000-1000-8000-00805f9b34fb (Software Revision String)
Service: 0000fff0-0000-1000-8000-00805f9b34fb (Unknown vendor-specific service)
Characteristic: 0000fff1-0000-1000-8000-00805f9b34fb (Unknown vendor-specific characteristic)
Characteristic: 0000fff2-0000-1000-8000-00805f9b34fb (Unknown vendor-specific characteristic)
Service: 00001826-0000-1000-8000-00805f9b34fb (Fitness Machine)
Characteristic: 00002acc-0000-1000-8000-00805f9b34fb (Fitness Machine Feature)
Characteristic: 00002acd-0000-1000-8000-00805f9b34fb (Treadmill Data)
Characteristic: 00002ad3-0000-1000-8000-00805f9b34fb (Training Status)
Characteristic: 00002ada-0000-1000-8000-00805f9b34fb (Supported Speed Range)
Characteristic: 00002ad9-0000-1000-8000-00805f9b34fb (Supported Inclination Range)
Characteristic: 00002ad4-0000-1000-8000-00805f9b34fb (Supported Resistance Level Range)
Characteristic: 00002ad5-0000-1000-8000-00805f9b34fb (Supported Heart Rate Range)
Characteristic: 00002ad6-0000-1000-8000-00805f9b34fb (Supported Power Range)
Characteristic: 00002ad8-0000-1000-8000-00805f9b34fb (Supported Step Rate Range)
This is a python app running on windows 10 pro, Automatically scan for devices, but also provide a scan button in case the device was not ready for the autoscan, display, and increment the speed in MPH 0.1 increments
This is a bare-bones treadmill app prototype that connects to an under-desk treadmill and displays simple controls and treadmill state, session info, and session history. The app has three tabs: Connect, Sessions, and Current Session. The connect tab allows Bluetooth scan and connect to treadmill devices, the session tab displays a list of past sessions with duration and distance metrics, and the current session tab allows a user to create a new session, start/stop the treadmill, + and - speed, and displays the total distance traveled and current speed of the treadmill. This is the initial commit for the project, so your commit should include any dependencies in a requirements.txt file (bleak for example). Make an attempt at complete functionality in this initial commit.
For testing the app we can use the following treadmill Address and UUID info:
TREADMILL_ADDRESS = "4F:98:56:B5:52:5B"
Characteristic UUIDs TREADMILL_DATA_UUID = "00002acd-0000-1000-8000-00805f9b34fb"
TRAINING_STATUS_UUID = "00002ad3-0000-1000-8000-00805f9b34fb"
SPEED_RANGE_UUID = "00002ada-0000-1000-8000-00805f9b34fb"
Here are the complete Service and Characteristic UUID features:
Service: 00001800-0000-1000-8000-00805f9b34fb (Generic Access)
Characteristic: 00002a00-0000-1000-8000-00805f9b34fb (Device Name)
Service: 0000180a-0000-1000-8000-00805f9b34fb (Device Information)
Characteristic: 00002a51-0000-1000-8000-00805f9b34fb (Serial Number String)
Characteristic: 00002a5d-0000-1000-8000-00805f9b34fb (IEEE 11073-20601 Regulatory Certification Data List)
Characteristic: 00002a25-0000-1000-8000-00805f9b34fb (Serial Number String)
Characteristic: 00002a23-0000-1000-8000-00805f9b34fb (System ID)
Characteristic: 00002a29-0000-1000-8000-00805f9b34fb (Manufacturer Name String)
Characteristic: 00002a24-0000-1000-8000-00805f9b34fb (Model Number String)
Characteristic: 00002a27-0000-1000-8000-00805f9b34fb (Hardware Revision String)
Characteristic: 00002a28-0000-1000-8000-00805f9b34fb (Software Revision String)
Service: 0000fff0-0000-1000-8000-00805f9b34fb (Unknown vendor-specific service)
Characteristic: 0000fff1-0000-1000-8000-00805f9b34fb (Unknown vendor-specific characteristic)
Characteristic: 0000fff2-0000-1000-8000-00805f9b34fb (Unknown vendor-specific characteristic)
Service: 00001826-0000-1000-8000-00805f9b34fb (Fitness Machine)
Characteristic: 00002acc-0000-1000-8000-00805f9b34fb (Fitness Machine Feature)
Characteristic: 00002acd-0000-1000-8000-00805f9b34fb (Treadmill Data)
Characteristic: 00002ad3-0000-1000-8000-00805f9b34fb (Training Status)
Characteristic: 00002ada-0000-1000-8000-00805f9b34fb (Supported Speed Range)
Characteristic: 00002ad9-0000-1000-8000-00805f9b34fb (Supported Inclination Range)
Characteristic: 00002ad4-0000-1000-8000-00805f9b34fb (Supported Resistance Level Range)
Characteristic: 00002ad5-0000-1000-8000-00805f9b34fb (Supported Heart Rate Range)
Characteristic: 00002ad6-0000-1000-8000-00805f9b34fb (Supported Power Range)
Characteristic: 00002ad8-0000-1000-8000-00805f9b34fb (Supported Step Rate Range)
This is a python app running on windows 10 pro, Automatically scan for devices, but also provide a scan button in case the device was not ready for the autoscan, display, and increment the speed in MPH 0.1 increments
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.