MarvinAPI icon indicating copy to clipboard operation
MarvinAPI copied to clipboard

[REQUEST] Start-only action for tracking API (for multitasking tracking)

Open jbriales opened this issue 2 years ago • 1 comments

I have my own client where I do some experiments around Marvin for enabling strategies I cannot do with the official Marvin.

For a while, I have been thinking about ways to enable "multitasking-tracking" within Marvin. I'd like to track (and later analyze) my time trends as I often can do or achieve several tasks overlapping at the same time. E.g. while I'm cleaning the house (start-tracking cleaning) I could be listening to some audio-course A (start-tracking course-A), finish that (stop-tracking course-A), continue with another course B (start-tracking course-B) and finally stop both cleaning and course-B when I'm done cleaning for the day and I'm going back to work or sth else. Same goes e.g. when watching TV on the night and using that time to do sth else in parallel.

In general, I find it useful to be able to track multiple times that are happening in parallel towards eventually being able to keep separate (and accurate) time statistics on all of those.

From a technical point of view, I think the only missing piece for implementing this kind of solution from the API side is a "START-ONLY" action (besides the current "START") which would NOT imply stopping the previous ongoing tracking. It would be the client's responsibility then to call STOP explicitly when appropriate.

jbriales avatar Mar 13 '22 08:03 jbriales

The problem with this is there are a bunch of sanity checks in the server that are assuming that only one item at a time can be tracked.

It would be possible to do the time tracking yourself and then just update the times and duration fields in a task. You could then use /api/retime to update the server-side tracking data.

amazingmarvin avatar Sep 12 '22 08:09 amazingmarvin