Question: Is it possible to expose the HRM to Apps like OpenTracks (Like Huami devices on Gadgetbridge) #6700
Replies: 1 comment
-
Posted at 2023-05-31 by @andresdju
I was going to ask exactly the same question. I assume it cannot be done right now, as Banglejs's version of Gadgetbridge doesn't show the Sports Activities tab when connected to a Bangle.js 2. For now I'm downloading the gpx files from the Recorder download option and opening it with an external app (like osmAnd+). Posted at 2023-06-04 by @thyttan
I started work on this here. Please help with code or insight if you can. Attachments: Posted at 2023-06-04 by AnotherStranger My idea was to scan for the log files of the recorder app and parse them into activities. For this to work, gadgetbridge would need to pull and parse these files from the watch. However, I have no experience with Banglejs programming, so I don't know whether that's possible. Another alternative would be to expose the HRM sensor as smart Heart rate measurement device. Posted at 2023-06-04 by @thyttan
Do you know how to do the part on the Gadgetbridge side though? If so I wouldn't have to do as much trial and error maybe :p
Same for this, do you know how - even if just on Gadgetbridge side? @gfwilliams has added this commented code when integrating Bangle.js and Gadgetbridge:
But that's probably not really the same thing you're talking about. Posted at 2023-06-04 by @andresdju
Yes, as I understand, this is how Sport Activities work for Huami devices, it can even export gps logs as gpx files (for that format recorder already has code to export to). It uses a different tab for sport activities than regular activities (more focused on all day activity as walking, resting, sleeping... like a healthy life monitor/adviser). For sport training there are some analysis that we would like to have, like distance, pace, HR zones, slope, maps... that are not interesting for just healthy activities.
That would require a smartphone or other device for tracking the activity and I suspect that this can already be done (or done with very little effort). In my case I want the watch to track the activity because I don't run with the phone. Posted at 2023-06-04 by @thyttan Also regarding the title:
Someone asked something similar on the Bangle.js subreddit. Posted at 2023-06-04 by AnotherStranger Yeah, I found this one, too. Posted at 2023-06-05 by @gfwilliams Interesting - you could definitely show recorded tracks in Gadgetbridge, that might be neat. Regarding:
You could make Bangle.js advertise as a standard Bluetooth HRM device (as @AnotherStranger showed in https://forum.espruino.com/comments/17004362/), and then yes that should work fine - but whether it would work at the same time as Gadgetbridge I'm not sure! Posted at 2023-06-05 by @gfwilliams One more mention: I'm considering making the Recorder app use the current date in the filename instead of a number. That might make things a lot easier... Also as of 2v18 for the new HRM algorithm, we detect if we think we're running/doing sports or not using the amount of movement. I guess there's a possibility that could be exposed Posted at 2023-06-05 by @andresdju
Yes please, that would make more sense. Something with the date and time would be better, because several tracks can be generated the same date. Track-yyyymmddhhmmss ? Posted at 2023-06-06 by @gfwilliams We only have (iirc) 28 chars for the filename, so I couldn't make it do that without changing the filename (eg to use Just merged in my changes to the dev app loader Posted at 2023-06-09 by Mi Thanks, will try. I really like that. Posted at 2023-06-09 by Mi -How do I activate this? Posted at 2023-06-09 by @gfwilliams It should work alongside numbered recordings - however I just realised that the first recording always ends up being edit: I just added 0.27 to the dev app loader that should have that fixed
Can you just download it with the app loader? https://banglejs.com/apps/?q=recorder That should be better Posted at 2023-06-09 by Mi Thanks a lot!
Pretty happy to get dates instead of numbers here. Posted at 2023-06-10 by @thyttan
I can think of two solutions, the simplest being to introduce a new setting for this. The other one being to have the selection be made by doing single/multiple HW button presses. Posted at 2023-06-10 by @thyttan
Just a note to say I don't really have the motivation myself to implement this given that it feels too involved/hard for me to be able to understand and work out within reasonable time. So I stopped working on it for now if anyone else wants to give it a try. EDIT: Nevermind - I can't help myself. Trying some right now.. Posted at 2023-06-12 by @gfwilliams Yes, I'm not that big a fan of the selection window either. I guess one easy option is just to turn it into a scrollable menu, that would make changing the setting a bit easier? Posted at 2023-07-07 by @thyttan @AnotherStranger @andresdju :) Posted at 2023-12-12 by @thyttan A new status update on Gadgetbride Activity Tracks: Since last time parsing, analyzing and display of more statistics have been added. Posted at 2024-03-22 by @thyttan @AnotherStranger @andresdju @gfwilliams activity tracks support is merged into master! 🫡📣🍾 https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/3153 Posted at 2024-03-22 by @gfwilliams Great! Thanks for your work on this! I've finally managed to push an update to the Play Store, but the build was from before this was merged in. ... but I'll try and do another update in a week or so |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-05-31 by AnotherStranger
Hello there,
I've recently gotten my hands on a BangleJs 2 smartwatch and have been thoroughly enjoying exploring its cool features. However, I have a couple of questions that I'm hoping the knowledgeable folks in this community can help me with.
First off, I'm curious to know if it's possible to tap into the heart rate monitor (HRM) sensor data on the BangleJs 2 smartwatch via apps like OpenTracks using Gadgetbridge. Having access to this data within external applications would be super handy for tracking and monitoring my physical activities.
On another note, I'd love to know if the BangleJs 2 smartwatch plays nice with displaying recorded activities within Gadgetbridge. Specifically, I'm eager to find out if I can view and analyze my sports activities or workouts right within the Gadgetbridge interface. I stumbled upon this link (https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/Sports-Activities-Workouts) which provides some interesting insights into the sports activities and workouts features in Gadgetbridge. If the BangleJs 2 smartwatch can seamlessly integrate with Gadgetbridge for these features, it would be an absolute game-changer, offering me a convenient and comprehensive overview of my progress.
Any input on how I can achieve this goal or get similar results is highly appreciated ;-).
Thank you very much!
Beta Was this translation helpful? Give feedback.
All reactions