Looking for a Caldav tool to sum the time used per day
from lascapi@jlai.lu to selfhosted@lemmy.world on 14 Apr 08:07
https://jlai.lu/post/36040081

Hi there, I’m looking for a tool to create reports for a self-hosted Caldav calendar, or even a client-side tool.

Here is what I want to achieve:

That’s all.

Do you know of a tool, script or service that can do this?

Thank you!

#selfhosted

threaded - newest

trougnouf@lemmy.world on 14 Apr 09:19 next collapse

Not exactly that but Cfait (which I develop) is a CalDAV task manager (which has an option to create calendar events). I added a time tracking feature so you can add / manage sessions (which show up in the calendar if you chose to activate it) and you do get a total time.

lascapi@jlai.lu on 14 Apr 11:50 collapse

Do you mean this one? codeberg.org/trougnouf/cfait

Very nice project! 🤠

trougnouf@lemmy.world on 14 Apr 12:24 collapse

Yes :-) thank you!

Zwuzelmaus@feddit.org on 14 Apr 09:38 next collapse

sum the time used per day

Once when I was young, I have tried this, too. It turned out that all days used 24 hours, more or less exactly. After a while I found it too boring and let it be…

/s

lascapi@jlai.lu on 14 Apr 11:44 collapse

Ahah !! 😂 so true !

erkan@slrpnk.net on 14 Apr 10:07 next collapse

timewarrior.net

Not CalDav but timewarrior does exactly what you describe.

lascapi@jlai.lu on 14 Apr 11:52 collapse

Very nice, indeed, but I use caldav to book all my stuff. That’s hard to replace.

Tiritibambix@lemmy.ml on 14 Apr 11:24 next collapse

No caldav option that I know of, but several time tracking options.

  • Kimai

  • Solidtime

  • TimeTagger

  • Traggo

  • ActivityWatch

lascapi@jlai.lu on 14 Apr 11:55 collapse

Thanks, but I’m looking specially for a tool to ‘extract’ information from a caldav agenda.

The main point is that I use it to book my meetings and so on. And I don’t want to have to track my time in another app. :)

RheumatoidArthritis@mander.xyz on 14 Apr 13:17 next collapse

Well, you have already written the prompt 🪄

HelloRoot@lemy.lol on 14 Apr 13:24 next collapse

I searched around a bit and found github.com/dreiekk/calcdav

not sure if it still works, last commit was 3 years ago (on the other hand, there was no AI vibecoding back then, so thats a plus), but it looks like it might do exactly what you’re looking for

lascapi@jlai.lu on 14 Apr 14:30 collapse

Ohh!! nice, I didn’t see it when I searched.

I’m trying to install it on linux, that’s not working so far, but I keep it in mind. :)

walden@wetshav.ing on 14 Apr 14:49 collapse

This might be a little overkill, but Home Assistant can do this.

  1. Add the calendar to Home Assistant. You don’t have to manage it there, but it’ll have access.
  2. Under Settings - > Devices & services -> Helpers add a helper of the type History Stats.
  3. For the Entity, select the calendar you want to track, and the Type would be Time.
  4. Next it’ll ask you which State to track. Depending on the specifics, you’ll probably want to track if the calendar is On, meaning there’s something on the calendar. You can track multiple States, but you probably only need On.
  5. On the last page of the wizard you’ll put start and end times. If you want to track from Midnight until Now, here’s what it would look like:

Start: {{ now().replace(hour=0, minute=0, second=0) }} End: {{ now() }}

You can probably adjust the end time to 23:59 if you want to see what’s in store for the day looking ahead, but I haven’t tried it.

lascapi@jlai.lu on 14 Apr 18:20 collapse

A bit overkill, right. But that’s nice to know there is a way.

I have a raspberry pi zero at home, maybe I can try that at some point. 😊