Sorry but I didn’t know where else to go to ask this question.
I came to Intervals from an Apple Numbers workbook that I used for 5 years after giving up on other apps.
I am hoping to mimic my wellness data entry form on Google and link to Intervals via the API to upload my daily wellness info. Is this possible? It would save me from entering twice every day.
The best option would be the ability to re-arrange the wellness data entry order so that it matches my data. This would make entry much easier and get me to my goal of having all data in one place. So far, your app is the closest thing to my spreadsheet.
If you can build your own tool, there shouldn’t be a problem sending the data over the API.
I do that from an Excell file and use curl to send JSON formatted data to the API.
Here is an example of such a JSON string that is preformatted in Excell. A macro with a curl command takes the string as an argument and sends it to Intervals API.
Depending on your knowledge/willingness to learn the use of API, curl and their respective syntaxes, this can be considered easy/complex/impossible…
I can’t for example give you an exact curl command or JSON string that will work on your system because the curl syntax is different in between Windows and iOS. But it shouldn’t be that hard to get it right if you Google curl manual for iOS…
I am having issues trying to do date comparisons for the events case, as dates come in a local time, instead of using “Z time” or “Zulu Time”, would it be possible to update the API to also return the start_date and the end_date in a standardised Z time?
As temporally workaround, should I need to fetch the timezone from the http://intervals.icu/api/v1/athlete/XXXX endpoint?
…but it seems to be a bit of an awful patch for it
You should be able to just use the _local dates for comparisons between activities and events. Note that events don’t have time (i.e. time is T00:00:00) if no time has been captured.
Hey @david, you are right about the comparisons, but I think there might be another issue which is how the end_date_local is stored in those cases where the time is not selected, and the default T00:00:00 is applied.
If you check this example, the “Sick” event is added to the calendar from “2023-11-23” to “2023-12-01” (3 days), but fetching the events endpoint from the API, it returns this data:
As you can see end_date_local is registering the date as 02 of December (2023-12-02T00:00:00), when probably it should be 2023-12-01T23:59:59 to make sure that events is not populated or adjusted to the day 02.
If on the other hand, this is an expected behavior, then I will deal with them locally
All day events always to to the next day, at least in RFC5545. So an end timestamp of 2023-12-02T00:00:00 for an event lasting the whole 1st of December sounds right to me.
Hi @david . I’m trying to use https://intervals.icu/api/v1/athlete/{id}/athletes to get a list of coached athletes and the athlete tags in powerquery/powerbi. ‘Shared folders’ appears in the data table which i believe its where the ‘icu_tags’ is found. However the shared folders is empty… any ideas on this please? I want the call to return at least athlete id + the associated tags shown on intervals.
Okay, I tried this and didn’t get it to work for me. Me for sure.
Is it possible to do from Dropbox? I am an Apple guy and trying to use Google sheets is a pain to me. Don’t think that I can send it from Apple. I don’t mind manual but I signed up for EF coaching and they use T’sP so now I am doing double entry.
BTW I created a Google sheet version of my Numbers data and tried to use the Intervals PUT you supplied me with no luck. Is this where? Sorry to be so much trouble.