I was using the activities endpoint that gives a list, but on playing around a bit more I figured out that I missed the nullable aspect of the field, so when there are no tags defined, the field does not exist and so my json parser in rust crashed
All works as planned as long as I declare the String as nullable.
isn’t populated on the initial activity custom fields calculation? If I select Action → Reprocess File, this field is blank, but afterward Action → Analyse, will populate this field.
Is:
wellness.sportInfo[0].eftp
basically the same thing the the correct way to access this information?
Thanks, Andre
That field is calculated asynchronously after the activity has been analysed. A lot of rows need to be updated so it is done separately. The wellness.sportInfo[0].eftp field will contain old data when a new activity is analysed and is updated as part of the activity.icu_rolling_ftp calculation.
Hi, I am struggling with time units in my custom field. I would like to have a field with time in mm:ss.1 (like 02:11.3) manually entered. All I could get to is entering it in seconds and using the conversion, but that means I have to first convert my time to seconds (which is kind of annoying) and enter it in seconds - to see it converted in the end.
I couldn’t find any other way to work it around.
Any ideas?
Thank you very much! This custom fields idea are really great!
What settings for that would you recommend?
I even tried entering the value in the hh:mm:ss format (as set in the conversion) but that didn’t work (but I did expect that it wouldn’t)
I see what you want to do now. You want to enter the custom field as a Time format and display it in the same way.
Not sure how to do that. But if you enter the time in secs, the field does display that value in the correct Time format.
It should be possible to do what you want if a script can be run on the manually entered value. Parsing the values for hours, minutes, seconds.
Edit: It should equally be possible if it were possible to define the input type as a time format but at this moment only Numeric, Text or Select are available as input formats.
Can these custom activity fields also be displayed in calendar view? For runners it would be really great to have a way of storing our lactate measurements.
Not directly (yet). However you can display the value from any /fitness page plot on the calendar. And you can plot custom activity fields on the /fitness page.
I am using a custom field on the whole activity by taking power (for cycling) via:
streams.get(“fixed_watts”).data
This works but it would be very nice to have the value calculated for a chosen part of the ride as well (when I mark part of the activity). This works for a default field “Average power” for example.
It’s probably very basic question, I could answer it myself if there was a way to see the code used to calculate default fields. Is that possible? It would make tinkering with things easier as one could just copy-paste the code and then edit it for their needs.
The default fields are all calculated in Java (very fast) whereas the custom ones are done in Javascript running in a sandbox (much slower but safe to run untrusted code). I can post Java fragments of specific things.
You can create custom interval fields to compute things for parts of an activity. These are also computed when you zoom on the timeline chart and displayed top left. So that might handle your “part of the activity” requirement.
Could it be a feature request to add a field for lacate? Most runners I know take a lactate measurement during each workout, which for many translates to 3-6 workouts a week besides long/easy running. Having the lacate displayed on the calendar view like pace, GAP, etc. would be a great enhancement for runners. It could be something as simple as the feel parameter, where you just input “x.xx”, and at which interval you measured it.
It should be related to the activity imo. You can also take multiple readings in one workout. Would also be great in compare view for the same workouts. For many runners lactate is a much more important measurement compared to for example HR. The norwegian model for example soley base itself on lactate readings. Most of the runners I know/follow take a picture of the lactate reading and post it on strava to log the measurements. If intervals.icu would support logging and displaying it, that would be extremely useful.
I have “editable sparse custom activity streams” on the todo list. Like the current custom streams but supporting sparse streams (only a few points) with UI to edit for manual capture (+ CSV upload and so on).
Sounds great. Considering how wildy used it is I would consider adding it as a “standard” field for all users, but as long as I can record it I am happy
Hello!
I created 6 custom fields to calculate the work done in each zones; but in the custom chart the “100% stacked bar chart” isn’t displayed. for sure i’m missing something.
Here the code for Z1:
pData = streams.get(“fixed_watts”).data;
ftp=activity.icu_ftp
pZones = activity.icu_power_zones;
z1min = 0
z1max = ftp*(pZones[0]/100);
joules = 0;
for (let w of pData) {
if (w >= z1min && w < z1max) {
joules += w;
}
}
joules / 1000;