Fitness tracking stats #1558
Replies: 10 comments
-
So from what I quickly gathered, this can be achieved with the RSCS BLE spec. A companion app would need to support sending the information via RSCS, and then we could collect it. From the supported features, I think interesting is total distance and instantaneous speed are the only really interesting ones for us. Sadly I didn't find anything related to total duration or average speed. But I'm not sure, if this is actually the correct spec for this. Edit: oh yeah that's the wrong spec. I guess PAMS (Service UUID 0x183E) is the right one. |
Beta Was this translation helpful? Give feedback.
-
Hi and thanks for your feature request! By reading the description, I'm not sure if you want the PineTime to acquire fitness value and send them to a companion app (running on a smartphone) over BLE, or if you want the PineTime to connect to another device (activity tracker) and display data from this device on the activity tracker. The good new is that both should be possible to implement. If you want to send fitness values to a smartphone, you'll have to acquire them (using the HR sensor, motion sensor,... and send them to a companion app. You can check with Amazfish and Gadgetbridge, 2 open-source companion apps that support InfiniTime. If you want the PineTime to connect to another BLE device, you'll need to work a bit more on the BLE side. For now, InfiniTime waits for a device to connect to it. In this case, you want InfiniTime to actually connect to another device. I know that NimBLE (the open-source BLE stack InfiniTime is based on) supports that mode, but there is no similar use case for now. |
Beta Was this translation helpful? Give feedback.
-
The later one. Basically the phone tracks your speed via GPS, and the watch shows you this information. I think the Bluetooth PAMS spec should provide this (I quickly skimed through the spec from https://www.bluetooth.com/specifications/specs/).
Hm, can't the fitness app connect to the watch? I'm not an expert, but I guess the initial setup would work similar to CTS and ANS. |
Beta Was this translation helpful? Give feedback.
-
The FOSS Android App Fitotrack (on Fdroid) has quite a set of metrics it tracks. Via Gadgetbridge you're supposed to be able to connect to the heart rate sensor of infinitime via gadgetbridge. Maybe this would allow sending metrics the other way around as well. Fitotrack has intervals as well, which are interesting for running. |
Beta Was this translation helpful? Give feedback.
-
This is the thread fitotrack thread https://codeberg.org/jannis/FitoTrack/issues/170 with some more information. |
Beta Was this translation helpful? Give feedback.
-
I posed this in item #383 but it may be applicable here too. One possible phone app to pull from that I have used is an open source tracker, OpenTracks that is available on Fdroid. It captures much of the information you are looking for and can show it via notifications on the phone. I'm not sure if it has a way to pull the data from the app itself but if the PineTime could snoop the notification it may be able to display the data (and maybe stop the notification from showing up in the notification area of the watch, which this app inundates). |
Beta Was this translation helpful? Give feedback.
-
I don't think this a good idea, since this would need to be done individually for every app. It makes way more sense to implement a proper bluetooth interface, in particular the Physical Activity Monitor Service (PAMS spec) and the Physical Activity Monitor Profile (PAMP spec). Quoting from the PAMP spec:
In this case, the fitness app is the Monitor and the PineTime is the Collector. |
Beta Was this translation helpful? Give feedback.
-
@stephanlachnit I agree this is probably a terrible idea. I have lots of those and silly ones as well. 😜 Asking out of ignorance, but seeking to understand, is the PAMP spec generally supported by many apps such that just by implementing that standard we could readily send/receive data? Are there certain things we should look for in apps that would allow the PineTime to be a collector, or would a phone app need to enable this specifically? I read through parts of the PAMP spec but the answer wasn't clear to me based on my very limited understanding. |
Beta Was this translation helpful? Give feedback.
-
I'm certainly not am expert here, but I think the app needs to implement it specifically. And I'm not aware of any app supporting this configuration yet. |
Beta Was this translation helpful? Give feedback.
-
BLE spec seams to be a good idea. Il should be possible to make a compagnon app to send phone sensor data to the watch |
Beta Was this translation helpful? Give feedback.
-
It would be cool if the watch could show activity stats when a fitness tracker is active, for example duration, distance, avg pace, etc.
I would like to contribute, and while I do have some C/C++ experience, I have no clue about BLE or anything InfiniTime related. I guess the first thing to do would be to know if there is something about this in the BLE spec.
Beta Was this translation helpful? Give feedback.
All reactions