markdotai / emtb

A data field allowing Garmin watches to show information about a Shimano STEPS e-bike.
https://apps.garmin.com/en-US/apps/461743f9-b350-486f-bd87-613c7b0bab90#0
MIT License
31 stars 8 forks source link

Storing the activity data #1

Open makebit opened 3 years ago

makebit commented 3 years ago

Hello and thank you for the data field. Do you think it is possible to record and store the displayed values such that they can be viewed after the activity?

Thank you

markdotai commented 3 years ago

Hi 😊

It is definitely possible to record and store data values in CIQ – and then they can be viewed later on Garmin Connect. But it’s not something I have time to try out currently unfortunately ☹

If you or someone else wanted to look into it, then I think it would use the ActivityRecording and FitContributor parts of the CIQ libraries:

But I’ve never tried to use those ones, so I don’t know if that is correct!

Although it doesn’t look like there are that many functions … so I might give it a go if I get a chance …

Thanks, Mark

NicholasRasi commented 3 years ago

Hi Mark, I can try to implement this feature, because in my opinion it would be useful. However, do you think that the data field should record only the displayed fields or all the available ones?

Thanks, Nik

NicholasRasi commented 3 years ago

Hi @markdotai, I figured out how to store the values in the activity. In my opinion, in order to simplify the development of this feature we could select a subset of the available values. I think that, it would be nice if we store these values: available battery, cadence and assistance level.

What do you think?

markdotai commented 3 years ago

Nice work again :) Those 3 values sound like the best ones to store - I think it will be very useful to everyone, and much appreciated!

I've been very busy all week, but I'll add in your new data display changes this weekend, and make a new version. Plus check your other comments :)

Thanks for your great work on this!

hrissanen commented 2 years ago

@NicholasRasi It would be very nice if you can make store these values: available battery, cadence and assistance level.

-H

NicholasRasi commented 2 years ago

@NicholasRasi It would be very nice if you can make store these values: available battery, cadence and assistance level.

-H

Hi @hrissanen, I proposed a new version in #4

seppal123 commented 1 year ago

Hi Everone As i´m not an programmer, could someone please confirm that the master code can be compiled ? When i try to run the code, i get the following Errors (See below). Am i doing something wrong, could someone guide me ?

thank you Alessandro

*  Executing task in folder emtb-master: C:\Program Files\Java\jre-1.8\bin\java.exe -Xms1g -Dfile.encoding=UTF-8 -Dapple.awt.UIElement=true -jar c:\Users\sandro\AppData\Roaming\Garmin\ConnectIQ\Sdks\connectiq-sdk-win-6.3.1-2023-09-25-47b193194\bin\monkeybrains.jar -o bin\emtbmaster.prg -f c:\Users\sandro\E-Bike-App\emtb-master\monkey.jungle -y c:\Users\sandro\E-Bike-App\developer_key -d fr255m_sim -w 

WARNING: fr255m: The launcher icon (30x30) isn't compatible with the specified launcher icon size of the device 'fr255m' (40x40). Image will be scaled to the target size.
ERROR: fr255m: C:\Users\sandro\E-Bike-App\emtb-master\source\emtbFitContributor.mc:14: Cannot resolve type 'Boolean'.
ERROR: fr255m: C:\Users\sandro\E-Bike-App\emtb-master\source\emtbFitContributor.mc:86: Cannot resolve type 'Boolean'.
ERROR: fr255m: C:\Users\sandro\E-Bike-App\emtb-master\source\emtbView.mc:271: Cannot resolve type 'Activity.Info'.
ERROR: fr255m: C:\Users\sandro\E-Bike-App\emtb-master\source\emtbView.mc:345: Cannot resolve type 'Dc'.
ERROR: fr255m: C:\Users\sandro\E-Bike-App\emtb-master\source\emtbView.mc:372: Cannot resolve type 'Dc'.
ERROR: fr255m: C:\Users\sandro\E-Bike-App\emtb-master\source\emtbView.mc:372: Cannot resolve type 'Lang.String'.
ERROR: fr255m: C:\Users\sandro\E-Bike-App\emtb-master\source\emtbView.mc:414: Cannot resolve type 'Dc'.

 *  The terminal process "C:\Program Files\Java\jre-1.8\bin\java.exe '-Xms1g', '-Dfile.encoding=UTF-8', '-Dapple.awt.UIElement=true', '-jar', 'c:\Users\sandro\AppData\Roaming\Garmin\ConnectIQ\Sdks\connectiq-sdk-win-6.3.1-2023-09-25-47b193194\bin\monkeybrains.jar', '-o', 'bin\emtbmaster.prg', '-f', 'c:\Users\sandro\E-Bike-App\emtb-master\monkey.jungle', '-y', 'c:\Users\sandro\E-Bike-App\developer_key', '-d', 'fr255m_sim', '-w'" terminated with exit code: 100. 
 *  Terminal will be reused by tasks, press any key to close it. 
markdotai commented 1 year ago

Which version of the Garmin CIQ SDK are you using @seppal123 ? Things have changed a lot since these revisions were made, and I know I have had to fix things on other apps for version 4+

markdotai commented 1 year ago

The master-release branch has the latest version that matches the Garmin store - but even that is 5 months old and probably only compiles with the CIQ SDK 3 versions.

seppal123 commented 1 year ago

Which version of the Garmin CIQ SDK are you using @seppal123 ? Things have changed a lot since these revisions were made, and I know I have had to fix things on other apps for version 4+

Ok i have downloaded the latest Version Connect IQ 6.3.1. Will try to use a version 3, will report if this works.

Thank you Alessandro

seppal123 commented 1 year ago

OK latest Version, which works correctly for compiling is 4.0.10. (tried this with forerunner 245m) Badly my watch (Forerunner 255 Music) requires at least 4.2.2 and higher, so this is not going to work :-(
Any chance that you update this for a newer SDK Version?

Thank you so far Alessandro

markdotai commented 1 year ago

I just don't have time at the moment sorry :( Too busy with work ... The master-release branch may work with that SDK version if you want to try that one.