CarbonTracker Wear OS is the smartwatch companion of the CarbonTracker mobile application. It lets users record fitness activities directly from their wrist and syncs them with the mobile app.
The app follows a local-first and privacy-focused approach. Activity data is stored on the watch and is never sent to any of our servers.
- Record fitness activities from your watch
- Choose from a list of supported activities
- Track activity time with a built-in stopwatch
- Activity tracking powered by the Health Services API
- Automatic sync with the CarbonTracker mobile app via the Wear OS Data Layer API
- Local storage on the watch using Room so no data is lost
- No data stored on external servers
- Kotlin
- Room
- Health Services API
- Wear OS Data Layer API
- The mobile app (if applicable):
- has an About page containing the Aossie's logo and pointing to the social media accounts of the Aossie.
- is available for download as a release in this repo.
- is available in the relevant app stores.
flowchart TD
A[Wear OS UI] --> B[Device Integrations]
A --> C[Local Room Database]
B --> B1[Health Services API]
C --> D[Wear OS Data Layer API]
D --> E[CarbonTracker Mobile App]
flowchart TD
A[Open Watch App] --> B[Onboarding Page]
B --> C[Tap Record Button]
C --> D[Supported Activities]
D --> E[Select an Activity]
E --> F[Stopwatch Page]
F --> G[Activity Tracked via Health Services API]
G --> H[Stop Activity]
H --> I[Saved Locally in Room]
I --> J[Synced to Mobile App via Data Layer API]
J --> B
-
Starting an Activity
- User opens the app and lands on the onboarding page
- Taps the record button
- Picks one of the supported activities
- Lands on the stopwatch page and the activity begins
-
Tracking an Activity
- Stopwatch runs while the activity is tracked using the Health Services API
- User stops the activity when finished
-
Syncing with the Mobile App
- Activities are saved locally on the watch in Room database.
- Activities are synced to the CarbonTracker mobile app via the Wear OS Data Layer API
- No data is stored on our servers
Before setting up CarbonTracker Wear OS, make sure you have the following installed:
- Android Studio
- Android SDK (installed via Android Studio)
- JDK (bundled with Android Studio)
- A Wear OS emulator or a physical Wear OS device
Kotlin is included with Android Studio, so no separate installation is needed.
git clone https://github.com/AOSSIE-Org/CarbonTracker-WatchCompanionApp.git
cd CarbonTracker-WatchCompanionAppOpen the wear folder in Android Studio (File > Open) and let Gradle finish syncing.
From the wear folder, build the debug APK:
cd wear
./gradlew assembleDebugFirst, check that your Wear OS device or emulator is detected:
adb devicesThen either select your Wear OS device or emulator in Android Studio and click Run, or install from the command line:
./gradlew installDebugThe project doesn't have automated tests yet.
Until tests are added, verify changes manually on a Wear OS emulator or physical device:
- Start an activity from the onboarding page and confirm the stopwatch runs.
- Stop the activity and confirm it is saved locally.
- With the CarbonTracker mobile app paired, confirm the activity syncs.
Sensor data from Health Services is most reliable on a physical watch, so use one when testing activity tracking.
To check code quality before opening a PR, run:
./gradlew lint⭐ Don't forget to star this repository if you find it useful! ⭐
Thank you for considering contributing to this project! Contributions are highly appreciated and welcomed. To ensure smooth collaboration, please refer to our Contribution Guidelines.
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.
Thanks a lot for spending your time helping CarbonTracker grow. Keep rocking 🥂
© 2026 AOSSIE