emtb icon indicating copy to clipboard operation
emtb copied to clipboard

Storing the activity data

Open makebit opened this issue 3 years ago • 12 comments

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

makebit avatar Aug 20 '21 12:08 makebit

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

markdotai avatar Aug 21 '21 16:08 markdotai

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 avatar Aug 23 '21 12:08 NicholasRasi

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?

NicholasRasi avatar Aug 27 '21 15:08 NicholasRasi

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!

markdotai avatar Aug 27 '21 17:08 markdotai

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

-H

hrissanen avatar Jan 21 '22 14:01 hrissanen

@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

NicholasRasi avatar Mar 11 '22 11:03 NicholasRasi

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. 

seppal123 avatar Oct 16 '23 18:10 seppal123

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 avatar Oct 16 '23 18:10 markdotai

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.

markdotai avatar Oct 16 '23 18:10 markdotai

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 avatar Oct 16 '23 18:10 seppal123

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

seppal123 avatar Oct 16 '23 19:10 seppal123

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.

markdotai avatar Oct 16 '23 19:10 markdotai