This feels huge. Super impressive. Thanks for pushing this platform so much @david
Can’t wait to see the use cases people develop. Man I need to learn to code!
This feels huge. Super impressive. Thanks for pushing this platform so much @david
Can’t wait to see the use cases people develop. Man I need to learn to code!
This is awesome. Are computed field then available in a downloaded FIT file?
And once again a new Playground
This is way more then expected and extends the possibilities by a giant leap.
Hi! Amazing work! I’ve added a few public fields for measuring core temperature. Although, they work fine in the activity field creator window but does not return any value in the view for the workout.
Definitively a game changing upgrade!!!
Many thanks.
@david I wonder if you plan to extend this to charts. It would be awesome to allow plotting processed data series (X, Y) in the current custom charts
I have documented the data model (sort of … needs more comments):
Yes I am going to do that.
You need to re-analyse the activity to compute values for newly added fields. Did you do that?
I just added that.
Yes, many times! No changes
Curious… these computed values in the FIT file, what are they stored as? Developer Fields?
Can you point me at one of your activities with core temp data so I can have a look. Tx.
Curious… these computed values in the FIT file, what are they stored as? Developer Fields?
Yes developer fields. The name matches code of the field and they are float32’s or string’s.
Can you check this activity? It seems like it does only calculate one of the custom fields. If I change the script to so it looks exactly like another one, the field will calculate that already has a “0” in it.
Tx. I know whats wrong and am working on a fix. The scripts for an activity all run in the same sandbox instance so if you declare a variable with “let” and another script does the same, the 2nd script fails. You can workaround this by removing let:
temp_threshold = 38.4
Instead of: let temp_threshold = 38.4
This is brilliant, thanks so much. I’ve added in running cadence (just a 2x of average_cadence) and running efficiency index (metres per minute per watt) as public.
Excited to see these added to fitness charts as well, I’ve actually been hacking the running efficiency index via wellness metrics
Also wondering – and this may already be true – will it be possible to write data to the stream as well? This would allow charting within the activity, which would be amazing.
Tx. I am going to be extending this to all parts of Intervals.icu including custom streams as soon as I can. I will be sorting out plotting custom activity fields on the fitness and compare pages today.
If anyone does want to declare stuff in the script wrap the body in a block:
{
let factor = 2
activity.average_stride * factor
}
This functionality has been extended to interval fields:
Intervals.icu now supports custom fields for intervals. You can enter the values manually (e.g. from a test of some kind) or compute them using JavaScript code. Click “Fields” on the activity timeline page and then “Add Field” to create a new field or search for an existing field: [Screen Shot 2022-12-26 at 15.44.04] Note that the fields are specific to the athlete being edited. So if you are coaching people, create fields for yourself and then use the search button to add copies to your athl…
You can now plot custom activity fields on the fitness and compare pages. If there are multiple activities on the same day then values are combined according to the aggregate setting on the description tab:
Choose sum, min, max or average.
How can we add these custom fields in the fitness page? When I try to add a plot I can’t find any custom fields
They are showing up for me at the bottom of the list. Remember that if you are viewing another athlete you need to add your fields to them first by going to one of their activities, clicking “Custom” and using the search button.
The script can also update many fields on the activity which are also saved (e.g. icu_training_load for a custom load calc).
Apparently, it is not possible to update the activity streams currently. Being able to do that would enable a calculation of virtual power for runners based on pace