Custom interval fields

Just Activity Reanalyze

Hi, thanks for the suggestion!

Apologies if I’m being dense, but I’ve tried re-analyzing and re-processing the activity (with the Processes fit file messages checkbox both ticked and unticked – not sure how messages are different from other info in the FIT file) and still the same result: a blank GCT field in interval list data and the TypeError: Cannot read property "data" from null error when testing the script in the edit field dialog.

I’m curious if @david or others have any input? Thanks much!

Did you create a “GCT” custom stream, based on FIT file record message “stance_time”?

Ah, thanks for the tip! No, I did not realize that was necessary. I’m searching through the forum posts for how to create a custom stream and am not finding that info. Is there a step-by-step guide somewhere?

Activity>>Charts>>Custom Streams choose as exemple Garmin GCT, or others

1 Like

Yes, that was it! I added the custom stream and re-processed the activity and the GCT values have shown up. I did finally find some posts on Custom Streams (eg this one) but the relationship between the Interval Field and the Activity>>Charts>>Custom Streams wasn’t clear to me. Thanks again for the help @pepe :pray:

Keep in mind that Garmin FIT files have the following messages (beside others):

Session messages: Totals and Averages for the Activity
Lap messages: Totals and Averages
Record messages: 1s Stream Metrics and elapsed time metrics

1 Like

@david , excuse me if this question has been asked (my search yielded zero)….

I created new custom activity and interval fields that only relies on work and cadence (no zone, ftp, etc. metrics), but noticed they only are calculating/displaying for activities on and after the date I created these custom fields.

I have notice they will calculate/display for a previous workout if I open the workout, open the custom field editor, and close the editor by saving; however, it only calculates/displays for that specific workout and not to those workouts that follow.

Is there a way to apply my new fields to calculate/display for all of my previous workouts without updating all of my other zone and other fitness metric information? Thx in advance!

1 Like

Goto Calendar and switch to activity list. Tick all activities, then edit, analyse again, and it will calculate your custom fields.

2 Likes

Thank you! I’m not sure why I didn’t think of that….I appreciate your help…worked like a charm,

Can’t figure out a way to do this and did not show up in the search for public custom fields: The interval table shows an intensity column, that is the percentage of FTP power for a given interval.
I would like to calculate and show the percentage of the MMP for the specific duration of the interval: for instance for the 4m intervals at 312W it should show 84% (given my 4m MMP from power duration curve being 368W)
Is there a way to do that? (for activities in the past it should ideally use MMP at the time of the activity)

Should be possible to create an field with this:

2 Likes

General question about fields:
Understand there are different categories of fields like, interval, activity, wellness, etc. Are there also fields for a single day? Struggling with situations where there are multiple activities logged on one day, and would like to calculate for example the load accumulated for a specific day.

For custom activity fields you can control how values from multiple activities are aggregated for the /fitness page on the description tab:

Custom wellness fields calculated using Javascript is on the todo list. There are lots of performance implications. Right now I am busy making Intervals.icu more efficient in this area to reduce the load on the db and thats just for the built in Java calculated fields.

3 Likes

Awesome, had missed that! Thank you David!
Attempting to calculate a fitness chart that includes a load estimation for non-logged activities. There is evidence that total daily active energy is a better predictor of fitness and VO2max than training load. It feels strange to focus completely on the training window and ignore the rest of the day. Imported Active Energy from Apple Health and playing with custom fields.

1 Like

If I want to calculate (for example) average power for the whole activity I would use:

watts = streams.get(“fixed_watts”).data

and then operate on that.
Now if I want to calculate average power for a given interval, how do I get “stream” but not for the whole activity but for the chosen interval? In general: how do I get data but only for the interval not the whole activity?

1 Like

Just replace the temperature with fixed_watts

1 Like

Thanks, interval_start_index and interval_end_index is what I was looking for.

Is there a way to display custom fields in list view of activities (adding them to columns displayed)? That would make comparing values calculated for them easier. If that’s not possible, what about adding 2-3 default generic empty fields one could use to overwrite from custom field code?

You can show custom activity fields in the list view (they are towards the end of the list) but not custom interval fields. To show custom interval fields you need to add an activity field that aggregates the values of the interval fields some how.

1 Like