Simple battery level datafield, plain look, with FIT file logging.
Program potrebuje dostop do:
Will Corbett
17. december 2022 |
Različica 53f9b0f
Works amazing. Surprised Garmin doesn’t come with it. One question though. My watch tells me I have 100% when the data field says I have 97% does that mean the data field is saying I have a max capacity of 97%?
Odgovor razvijalca
17. december 2022,
Balto
Hey hi thanks! Yeah I also think it should be a standard feature, hope Garmin will pick it up eventually. :-) About the battery level close to 100% with the datafield reporting less, the API documentation mention that the watch keeps displaying 100% even though the charger has been disabled and the battery may have discharged slightly, the datafield is the actual level. See https://developer.garmin.com/connect-iq/api-docs/Toybox/System/Stats.html#battery-var, nothing to worry about.
Chris Crawford
17. september 2022 |
Različica 3cf3ed2
Absolutely a wonderful data field! The Connect App graph is really a big help in seeing my 955 Solar's battery drain during a workout. Two questions: 1) Do you know if the 955 naively writes the battery drain information to the FIT file and if so where might I find it in the file? 2) When I look in the FIT files after having installed your data field, the battery percentage appears to move around from Field23 to Field26. Is this normal or might this be a function of converting the FIT file to a CSV format? Thank you for creating this great data field -- it is exactly what I needed. Chris
Odgovor razvijalca
18. september 2022,
Balto
Hey thanks! Yeah I think most Garmin devices writes the battery drain in the fit file (my old 230 had it as well), but it's not in the "record" message (the one with the gps data, speed etc...), it's on a separate "battery" record that gets recorded every 5 minutes. I use https://github.com/mrihtar/Garmin-FIT to decode fit files, it should show up with that. As for the field number, developer data gets appended at the end of the standard record after the standard ones. I never used a CSV decoder but I would not be surprised if the field move around depending on what else is configured in the activity (extra sensors etc). Does the converter give you a field header to map the field to something known? Either way I would suggest using a fit decoder library directly instead of going through the CSV.
Sebastian
13. julij 2022 |
Različica 3cf3ed2
David Brewin
26. marec 2021 |
Različica 9a6a87e
Spot On and exactly what I was looking for. Simple & functional. Will be a great analytical tool both on the run and in Garmin Connect
Ki Tat Chung
01. marec 2021 |
Različica 9a6a87e
Fantastic simple app, does what it says on the label. Great for tracking how much battery is used by your devices after the fact. Would be nice if there was a feature to record sensor battery life as well.
Odgovor razvijalca
03. marec 2021,
Balto
Hey thanks! The problem with sensors is that there's no generic way of getting a reliable battery level indication. For BLE, you just can't with the current API, for ANT+ you may be able to get either a battery voltage, operating time or a status level. The voltage and operating time are sensor specific (if they are even reported), and the status is fairly coarse, just new/good/ok/low/critical, so not too interesting to log. The status is pretty much for the "low sensor battery" warning, that I think all device already implement.
Andy Byers
29. september 2020 |
Različica 9a6a87e
Works well on several of my GPSr - Just wish output to GPX files also! Will give 5-star when it does!
Odgovor razvijalca
29. september 2020,
Balto
Hey Andy, sadly that is not possible with the current APIs, the only supported way of recording extra data is through FIT developer field extensions. Most CIQ devices don't even record GPX files natively, and when you export one from Connect the conversion from the FIT file happens server side, so I don't see that happening in the future. I'm not even aware of an existing tool that does that so if you need that you'll have write your own. If it helps, the library I use for inspecting FIT files is this one: https://github.com/mrihtar/Garmin-FIT.git, and it's good enough to extract the data, including developer extensions.